Finish auth

This commit is contained in:
2022-10-11 20:47:12 -05:00
parent a374ec73b4
commit 5c7cd9b0a5
3 changed files with 3812 additions and 2 deletions
+1
View File
@@ -6,3 +6,4 @@ admin-key.ppk
token.txt
*.zip
output.log
output.log
+7 -2
View File
@@ -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
+3804
View File
File diff suppressed because it is too large Load Diff