From 580303a1502ab936da1253535060dc67ba59c3d4 Mon Sep 17 00:00:00 2001 From: Bucky Wilson Date: Tue, 28 Nov 2017 14:08:30 +1000 Subject: [PATCH] Undo 'fix' rate limiting the routing. As per comments - rate limiting at this point, rate limites everything, and can raise suspiscions. --- core/main/router/router.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/main/router/router.rb b/core/main/router/router.rb index 6dac7ab6f..d7f6050bf 100644 --- a/core/main/router/router.rb +++ b/core/main/router/router.rb @@ -17,8 +17,6 @@ module BeEF set :show_exceptions, false end - last_attempt_time = Time.new - # @note Override default 404 HTTP response not_found do if config.get("beef.http.web_server_imitation.enable") @@ -90,12 +88,6 @@ module BeEF end before do - # Rate limit calls to 1 in beef.restrictions.api_attempt_delay seconds - halt 401 if not BeEF::Core::Rest.timeout?('beef.restrictions.api_attempt_delay', - last_attempt_time, - lambda { |time| time = time}) - last_attempt_time = Time.now # set the time of the last successful response - # @note Override Server HTTP response header if config.get("beef.http.web_server_imitation.enable") type = config.get("beef.http.web_server_imitation.type")