Island: Fix mypy issues in cred_exploit.py

This commit is contained in:
Kekoa Kaaikala 2022-09-21 18:22:20 +00:00
parent ed5773878e
commit 7013963d59
1 changed files with 3 additions and 3 deletions

View File

@ -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