forked from p15670423/monkey
Island: Fix mypy issues in cred_exploit.py
This commit is contained in:
parent
ed5773878e
commit
7013963d59
|
@ -16,12 +16,12 @@ class CredExploitProcessor:
|
||||||
if attempt["result"]:
|
if attempt["result"]:
|
||||||
exploit_info.username = attempt["user"]
|
exploit_info.username = attempt["user"]
|
||||||
if attempt["password"]:
|
if attempt["password"]:
|
||||||
exploit_info.credential_type = CredentialType.PASSWORD.value
|
exploit_info.credential_type = CredentialType.PASSWORD
|
||||||
exploit_info.password = attempt["password"]
|
exploit_info.password = attempt["password"]
|
||||||
elif attempt["ssh_key"]:
|
elif attempt["ssh_key"]:
|
||||||
exploit_info.credential_type = CredentialType.KEY.value
|
exploit_info.credential_type = CredentialType.KEY
|
||||||
exploit_info.ssh_key = attempt["ssh_key"]
|
exploit_info.ssh_key = attempt["ssh_key"]
|
||||||
else:
|
else:
|
||||||
exploit_info.credential_type = CredentialType.HASH.value
|
exploit_info.credential_type = CredentialType.HASH
|
||||||
return exploit_info
|
return exploit_info
|
||||||
return exploit_info
|
return exploit_info
|
||||||
|
|
Loading…
Reference in New Issue