From ff4cdbc1dcd013cfc2f8a3898f7a08820eef6677 Mon Sep 17 00:00:00 2001 From: Pure-L0G1C Date: Thu, 17 Jan 2019 18:10:14 -0500 Subject: [PATCH] reduces bad proxies amount --- lib/bruter.py | 7 ++----- lib/const.py | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/bruter.py b/lib/bruter.py index 064d608..7432c20 100644 --- a/lib/bruter.py +++ b/lib/bruter.py @@ -78,10 +78,7 @@ def browser_manager(self): if browser.start_time: if time() - browser.start_time >= max_time_to_wait: browser.is_active = False - - with self.lock: - self.proxy_manager.bad_proxy(browser.proxy) - + def remove_browser(self, browser): if browser in self.browsers: with self.lock: @@ -164,7 +161,7 @@ def start(self): sleep(1.5) continue - for browser in self.browsers: + for browser in self.browsers: self.display.stats(browser.password, self.password_manager.attempts, len(self.browsers)) last_attempt = self.password_manager.attempts diff --git a/lib/const.py b/lib/const.py index bfb8c65..87dec64 100644 --- a/lib/const.py +++ b/lib/const.py @@ -29,8 +29,8 @@ response_codes = { 'succeed': 0, 'failed': 1, 'locked': -1 } # Limits -max_bad_proxies = 256 -max_time_to_wait = 10 +max_bad_proxies = 128 +max_time_to_wait = 25 max_bots_per_proxy = 16 # Misc