Finish auth

This commit is contained in:
Cole Deck 2022-10-11 20:47:12 -05:00
parent a374ec73b4
commit 5c7cd9b0a5
3 changed files with 3812 additions and 2 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ admin-key.ppk
token.txt
*.zip
output.log
output.log

View File

@ -24,5 +24,10 @@ def login(config, user, password, sysid):
else:
return False
else:
fprint(type(output))
if str(output).find("admin") >= 0 or str(output).find("Admin") >= 0:
fprint("Authorized as admin!")
return True
fprint(output)
else:
fprint("Not admin")
return False

3804
output.log

File diff suppressed because it is too large Load Diff