Finish auth
This commit is contained in:
parent
a374ec73b4
commit
5c7cd9b0a5
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@ admin-key.ppk
|
|||||||
token.txt
|
token.txt
|
||||||
*.zip
|
*.zip
|
||||||
output.log
|
output.log
|
||||||
|
output.log
|
||||||
|
7
auth.py
7
auth.py
@ -24,5 +24,10 @@ def login(config, user, password, sysid):
|
|||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
fprint(type(output))
|
||||||
|
if str(output).find("admin") >= 0 or str(output).find("Admin") >= 0:
|
||||||
|
fprint("Authorized as admin!")
|
||||||
return True
|
return True
|
||||||
fprint(output)
|
else:
|
||||||
|
fprint("Not admin")
|
||||||
|
return False
|
3804
output.log
3804
output.log
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user