island: Check if credential in exploit telemetry is `None` before processing it
This commit is contained in:
parent
1da79f78bf
commit
876cdbeffa
|
@ -74,5 +74,6 @@ def encrypt_exploit_creds(telemetry_json):
|
|||
for i in range(len(attempts)):
|
||||
for field in ["password", "lm_hash", "ntlm_hash"]:
|
||||
credential = attempts[i][field]
|
||||
if credential: # PowerShell exploiter's telem may have `None` here
|
||||
if len(credential) > 0:
|
||||
attempts[i][field] = get_encryptor().enc(credential)
|
||||
|
|
Loading…
Reference in New Issue