We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7604f8 commit 4d5a7a3Copy full SHA for 4d5a7a3
modules/auxiliary/scanner/mysql/mysql_file_enum.rb
@@ -44,7 +44,16 @@ def run_host(ip)
44
return
45
end
46
47
- mysql_query("USE " + datastore['DATABASE_NAME'])
+ begin
48
+ mysql_query_no_handle("USE " + datastore['DATABASE_NAME'])
49
+ rescue ::RbMysql::Error => e
50
+ print_error("MySQL Error: #{e.class} #{e.to_s}")
51
+ return
52
+ rescue Rex::ConnectionTimeout => e
53
+ print_error("Timeout: #{e.message}")
54
55
+ end
56
+
57
res = mysql_query("SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA = '" + datastore['DATABASE_NAME'] + "' AND TABLE_NAME = '" + datastore['TABLE_NAME'] + "';")
58
table_exists = (res.size == 1)
59
0 commit comments