From 74cbca5809fe53d57a6f4339bef36ac43c5d42d1 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Sun, 17 Jun 2012 13:19:53 +0200 Subject: [PATCH 1/2] Print out successful mysql connection URI --- modules/auxiliary/scanner/mysql/mysql_authbypass_hashdump.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auxiliary/scanner/mysql/mysql_authbypass_hashdump.rb b/modules/auxiliary/scanner/mysql/mysql_authbypass_hashdump.rb index b1f460bce7..7df0a63d32 100644 --- a/modules/auxiliary/scanner/mysql/mysql_authbypass_hashdump.rb +++ b/modules/auxiliary/scanner/mysql/mysql_authbypass_hashdump.rb @@ -130,7 +130,7 @@ class Metasploit3 < Msf::Auxiliary :socket => s, :db => nil }) - print_status "#{rhost}:#{rport} Successfully bypassed authentication after #{count} attempts" + print_status "mysql://#{username}:#{password}@#{rhost}:#{rport} Successfully bypassed authentication after #{count} attempts" results << x rescue RbMysql::AccessDeniedError rescue Exception => e From 78876b74ddf81250e4aab8f67c8b4638050c8bdf Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Sun, 17 Jun 2012 20:09:01 +0200 Subject: [PATCH 2/2] Maintain scanner module standard --- modules/auxiliary/scanner/mysql/mysql_authbypass_hashdump.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auxiliary/scanner/mysql/mysql_authbypass_hashdump.rb b/modules/auxiliary/scanner/mysql/mysql_authbypass_hashdump.rb index 7df0a63d32..91f9e347c6 100644 --- a/modules/auxiliary/scanner/mysql/mysql_authbypass_hashdump.rb +++ b/modules/auxiliary/scanner/mysql/mysql_authbypass_hashdump.rb @@ -130,7 +130,7 @@ class Metasploit3 < Msf::Auxiliary :socket => s, :db => nil }) - print_status "mysql://#{username}:#{password}@#{rhost}:#{rport} Successfully bypassed authentication after #{count} attempts" + print_status "#{rhost}:#{rport} Successfully bypassed authentication after #{count} attempts. URI: mysql://#{username}:#{password}@#{rhost}:#{rport}" results << x rescue RbMysql::AccessDeniedError rescue Exception => e