From 5fa0981026534d98f694fcbcd23580db813f47c7 Mon Sep 17 00:00:00 2001 From: William Vu Date: Tue, 1 Jul 2014 17:48:42 -0500 Subject: [PATCH] Add login and move print_status --- modules/auxiliary/scanner/oracle/oracle_hashdump.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/auxiliary/scanner/oracle/oracle_hashdump.rb b/modules/auxiliary/scanner/oracle/oracle_hashdump.rb index 85ff27f6b7..49385c5aef 100644 --- a/modules/auxiliary/scanner/oracle/oracle_hashdump.rb +++ b/modules/auxiliary/scanner/oracle/oracle_hashdump.rb @@ -122,9 +122,17 @@ class Metasploit3 < Msf::Auxiliary jtr_format: jtr_format } - create_credential(credential_data.merge(service_data)) - print_status("Hash Table has been saved") + credential_core = create_credential(credential_data.merge(service_data)) + + login_data = { + core: credential_core, + access_level: "User", + status: Metasploit::Credential::Login::Status::UNTRIED + } + + create_credential_login(login_data.merge(service_data)) end + print_status("Hash Table has been saved") end