Skip to content

Commit 87dc581

Browse files
committed
Land rapid7#2583 - Report creds to db
2 parents 69823be + 9276a83 commit 87dc581

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/auxiliary/admin/mysql/mysql_enum.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
class Metasploit3 < Msf::Auxiliary
99

10+
include Msf::Auxiliary::Report
1011
include Msf::Exploit::Remote::MYSQL
1112

1213
def initialize(info = {})
@@ -85,6 +86,15 @@ def run
8586
print_status("\tList of Accounts with Password Hashes:")
8687
res.each do |row|
8788
print_status("\t\tUser: #{row[0]} Host: #{row[1]} Password Hash: #{row[2]}")
89+
report_auth_info({
90+
:host => rhost,
91+
:port => rport,
92+
:user => row[0],
93+
:pass => row[2],
94+
:type => "hash",
95+
:sname => "mysql",
96+
:active => true
97+
})
8898
end
8999
end
90100
# Only list accounts that can log in with SSL if SSL is enabled

0 commit comments

Comments
 (0)