Better logging when exploit gets 401

This commit is contained in:
Jon Hart
2015-11-16 10:41:48 -08:00
parent c4ffd7ae36
commit ee5d91faab
+1 -1
View File
@@ -217,7 +217,7 @@ class Metasploit3 < Msf::Exploit::Remote
if res && res.code == 500 && res.body =~ /path is empty/
return Exploit::CheckCode::Appears
elsif res && res.code == 401
print_error('401 Unauthorized')
print_warning("HTTP/#{res.proto} #{res.status} #{res.message} -- incorrect USERNAME or PASSWORD?")
return Exploit::CheckCode::Unknown
else
return Exploit::CheckCode::Safe