Skip to content

Commit 824bd84

Browse files
committed
I forgot to add this exception
1 parent 5bc1066 commit 824bd84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/msf/core/exploit/mysql.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ def mysql_login(user='root', pass='', db=nil)
6060
rescue Errno::ETIMEDOUT
6161
vprint_error("Operation timedout")
6262
return false
63+
rescue RbMysql::HostNotPrivileged
64+
vprint_error("Unable to login from this host due to policy")
65+
return false
6366
rescue RbMysql::AccessDeniedError
6467
vprint_error("Access denied")
6568
return false

0 commit comments

Comments
 (0)