Add a check for Custom404

bug/bundler_fix
sinn3r 2015-01-27 20:18:10 -06:00
parent 66703bfe5a
commit acf02647fb
1 changed files with 8 additions and 0 deletions

View File

@ -95,6 +95,14 @@ module Msf
], Exploit::Remote::BrowserExploitServer) ], Exploit::Remote::BrowserExploitServer)
end end
def setup
custom_404 = get_custom_404_url
if !custom_404.blank? && custom_404 !~ /^http/i
raise Msf::OptionValidateError.new(['Custom404 (must begin with http or https)'])
end
super
end
# #
# Returns the custom 404 URL set by the user # Returns the custom 404 URL set by the user
# #