Skip to content

Commit 6490af7

Browse files
committed
Make failures more verbose so people know what's going on
1 parent 824bd84 commit 6490af7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/msf/core/exploit/mysql.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,19 @@ def mysql_login(user='root', pass='', db=nil)
5252
:db => db
5353
})
5454
rescue Errno::ECONNREFUSED
55-
vprint_error("Connection refused")
55+
print_error("Connection refused")
5656
return false
5757
rescue RbMysql::ClientError
58-
vprint_error("Connection timedout")
58+
print_error("Connection timedout")
5959
return false
6060
rescue Errno::ETIMEDOUT
61-
vprint_error("Operation timedout")
61+
print_error("Operation timedout")
6262
return false
6363
rescue RbMysql::HostNotPrivileged
64-
vprint_error("Unable to login from this host due to policy")
64+
print_error("Unable to login from this host due to policy")
6565
return false
6666
rescue RbMysql::AccessDeniedError
67-
vprint_error("Access denied")
67+
print_error("Access denied")
6868
return false
6969
end
7070

0 commit comments

Comments
 (0)