better error handling for the user

bug/bundler_fix
Brandon Perry 2014-03-19 18:46:57 -05:00
parent 2ef2f9b47c
commit ab42cb1bff
1 changed files with 8 additions and 0 deletions

View File

@ -62,6 +62,10 @@ class Metasploit3 < Msf::Auxiliary
return Exploit::CheckCode::Safe
end
if resp.body =~ /404<\/span> Category not found/
return Exploit::CheckCode::Unknown
end
version = /#{front_marker}(.*)#{back_marker}/.match(resp.body)
if !version
@ -95,6 +99,10 @@ class Metasploit3 < Msf::Auxiliary
fail_with("Server did not respond in an expected way. Verify the IP address.")
end
if resp.body =~ /404<\/span> Category not found/
fail_with("The category ID was invalid. Please try again with a valid category ID")
end
file = /#{front_marker}(.*)#{back_marker}/.match(resp.body)
if !file