From e42bf7fd7c5fcd1e676b2c5364e41e55cc9e2e0e Mon Sep 17 00:00:00 2001 From: erwanlr Date: Wed, 1 Apr 2015 09:25:17 +0100 Subject: [PATCH] Consider the target down after 30 requests timed out requests instead of 10 - Fixes 790 --- lib/wpscan/wpscan_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wpscan/wpscan_helper.rb b/lib/wpscan/wpscan_helper.rb index 709733c8..9968aa32 100644 --- a/lib/wpscan/wpscan_helper.rb +++ b/lib/wpscan/wpscan_helper.rb @@ -113,7 +113,7 @@ end # Hook to check if the target if down during the scan # And have the number of requests performed to display at the end of the scan -# The target is considered down after 10 requests with status = 0 +# The target is considered down after 30 requests with status = 0 down = 0 @total_requests_done = 0 @@ -121,5 +121,5 @@ Typhoeus.on_complete do |response| down += 1 if response.code == 0 @total_requests_done += 1 - fail 'The target seems to be down' if down >= 10 + fail 'The target seems to be down' if down >= 30 end