Finish auth

formac 1665539241
Cole Deck 2 years ago
parent a374ec73b4
commit 5c7cd9b0a5

1
.gitignore vendored

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

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

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save