Add a check for Custom404
parent
66703bfe5a
commit
acf02647fb
|
@ -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
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue