Commit 66bdaefa by fwkz

Optimizing performance of creds/http_basic_default

parent 9e2ed38c
...@@ -70,7 +70,7 @@ class Exploit(exploits.Exploit): ...@@ -70,7 +70,7 @@ class Exploit(exploits.Exploit):
with ThreadPoolExecutor(self.threads) as executor: with ThreadPoolExecutor(self.threads) as executor:
for record in defaults: for record in defaults:
username, password = record.split(':') username, password = record.split(':')
executor.submit(self.target_function, username, password) executor.submit(self.target_function, url, username, password)
if self.credentials: if self.credentials:
print_success("Credentials found!") print_success("Credentials found!")
...@@ -81,9 +81,8 @@ class Exploit(exploits.Exploit): ...@@ -81,9 +81,8 @@ class Exploit(exploits.Exploit):
defaults.close() defaults.close()
def target_function(self, user, password): def target_function(self, url, user, password):
name = threading.current_thread().name name = threading.current_thread().name
url = "{}:{}{}".format(self.target, self.port, self.path)
user = user.encode('utf-8').strip() user = user.encode('utf-8').strip()
password = password.encode('utf-8').strip() password = password.encode('utf-8').strip()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment