Skip to content

Commit afa442a

Browse files
author
HD Moore
committed
Fix a stack trace with ipmi_dumphashes when no database was configured.
1 parent 3c16f8d commit afa442a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/ipmi/ipmi_dumphashes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def report_hash(user, hash)
270270
}.merge(service_data)
271271

272272
cl = create_credential_login(login_data)
273-
cl.core_id
273+
cl ? cl.core_id : nil
274274
end
275275

276276
def report_cracked_cred(user, password, core_id)

0 commit comments

Comments
 (0)