From ca9f579f51eb287ec4d83d874a1d69622d0d5915 Mon Sep 17 00:00:00 2001 From: errorxyz Date: Sat, 23 Sep 2023 23:16:39 +0530 Subject: [PATCH] Update deprecated method call in lotus_domino_hashes module --- .../scanner/lotus/lotus_domino_hashes.rb | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/auxiliary/scanner/lotus/lotus_domino_hashes.rb b/modules/auxiliary/scanner/lotus/lotus_domino_hashes.rb index 63c995a4fe07..655b325a546e 100644 --- a/modules/auxiliary/scanner/lotus/lotus_domino_hashes.rb +++ b/modules/auxiliary/scanner/lotus/lotus_domino_hashes.rb @@ -174,18 +174,18 @@ def dump_hashes(view_id, cookie, uri) :port => rport, :name => (ssl ? 'https' : 'http') ) - report_auth_info( - :host => rhost, - :port => rport, - :sname => (ssl ? 'https' : 'http'), - :user => short_name, - :pass => pass_hash, - :ptype => 'domino_hash', - :source_id => domino_svc&.id, - :source_type => 'service', - :proof => "WEBAPP=\"Lotus Domino\", USER_MAIL=#{user_mail}, HASH=#{pass_hash}, VHOST=#{vhost}", - :active => true - ) + + connection_details = { + module_fullname: self.fullname, + username: short_name, + private_data: pass_hash, + private_type: :nonreplayable_hash, + jtr_format: 'dominosec', + workspace_id: myworkspace_id, + proof: "WEBAPP=\"Lotus Domino\", USER_MAIL=#{user_mail}, HASH=#{pass_hash}, VHOST=#{vhost}", + status: Metasploit::Model::Login::Status::UNTRIED + }.merge(service_details) + create_credential_and_login(connection_details) end end