diff --git a/lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb b/lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb index b92781342c..b12d2e5830 100644 --- a/lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb +++ b/lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb @@ -38,6 +38,16 @@ class Console::CommandDispatcher::Priv::Passwd def cmd_hashdump(*args) client.priv.sam_hashes.each { |user| print_line("#{user}") + returned_hash = user.to_s.split(":") + client.framework.db.report_auth_info( + :host => client.sock.peerhost, + :port => 445, + :sname => 'smb', + :user => returned_hash[0], + :pass => returned_hash[2] +":"+ returned_hash[3], + :type => "smb_hash" + ) + } return true