Fix #105 Proxy error checked before scanning

This commit is contained in:
erwanlr
2013-01-11 17:10:49 +01:00
parent 91a38b6a11
commit 6d3e2af067

View File

@@ -54,6 +54,14 @@ begin
raise "The WordPress URL supplied '#{wp_target.uri}' seems to be down." raise "The WordPress URL supplied '#{wp_target.uri}' seems to be down."
end end
if wpscan_options.proxy
proxy_reponse = Browser.instance.get(wp_target.url)
unless WpTarget::valid_response_codes.include?(proxy_reponse.code)
raise "Proxy Error :\r\n#{proxy_reponse.headers}"
end
end
redirection = wp_target.redirection redirection = wp_target.redirection
if redirection if redirection
if wpscan_options.follow_redirection if wpscan_options.follow_redirection