From 7804aad77603bad004831507c77f6beb9dbb7f99 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Wed, 7 Oct 2015 22:09:23 +0100 Subject: [PATCH] Removes useless stuff & update the --throttle options text --- lib/common/browser/options.rb | 4 ---- lib/wpscan/wpscan_helper.rb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/common/browser/options.rb b/lib/common/browser/options.rb index f1355735..28032351 100644 --- a/lib/common/browser/options.rb +++ b/lib/common/browser/options.rb @@ -98,10 +98,6 @@ class Browser @throttle = throttle.to_i.abs / 1000.0 end - def throttle! - sleep @throttle if @throttle > 0 - end - protected def invalid_proxy_auth_format diff --git a/lib/wpscan/wpscan_helper.rb b/lib/wpscan/wpscan_helper.rb index 74c592f5..635852b9 100644 --- a/lib/wpscan/wpscan_helper.rb +++ b/lib/wpscan/wpscan_helper.rb @@ -105,7 +105,7 @@ def help puts '--request-timeout Request Timeout.' puts '--connect-timeout Connect Timeout.' puts '--max-threads Maximum Threads.' - puts '--throttle Milliseconds to wait before doing another web request. If used, the --max-threads will have no effect and should be assumed to be 1.' + puts '--throttle Milliseconds to wait before doing another web request. If used, the --threads should be set to 1.' puts '--help | -h This help screen.' puts '--verbose | -v Verbose output.' puts '--version Output the current version and exit.'