Fix creds crashing when deleting multiple ntlm hashes

This commit is contained in:
sjanusz 2021-12-09 14:25:32 +00:00
parent 4696418089
commit acd55ea24f
No known key found for this signature in database
GPG Key ID: 62086A0F9E2BB842
1 changed files with 2 additions and 2 deletions

View File

@ -276,7 +276,7 @@ class Creds
data[:private_data] = params['postgres']
data[:jtr_format] = 'postgres'
else
print_error("Postgres MD5 hashes should start wtih 'md5'")
print_error("Postgres MD5 hashes should start with 'md5'")
end
end
@ -495,7 +495,7 @@ class Creds
end
if mode == :delete
result = framework.db.delete_credentials(ids: matched_cred_ids)
result = framework.db.delete_credentials(ids: matched_cred_ids.uniq)
delete_count = result.size
end