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 token.txt
*.zip *.zip
output.log output.log
output.log

@ -24,5 +24,10 @@ def login(config, user, password, sysid):
else: else:
return False return False
else: else:
return True fprint(type(output))
fprint(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