Last active
November 9, 2016 06:14
-
-
Save quandqn/1e6d24ec85028a410537845549b04733 to your computer and use it in GitHub Desktop.
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
import requests | |
url = "http://128.199.226.92:31333/login/" | |
wanted = '{"user":"admin"}' | |
payload = "" | |
sig = "Expecting property name" | |
for i in range(15): | |
for j in range(0xff): | |
r = requests.get(url + payload.encode("hex") + "%02x" % j + (30-2*len(payload)) * "a") | |
if sig in r.text: | |
payload+= chr(j ^ ord("{") ^ 0x20) | |
break | |
payload = "".join([chr(ord(x) ^ ord(y) ^ 0x20) for x, y in zip(payload, wanted)]) | |
for i in range(0xff): | |
r = requests.get(url + payload.encode("hex") + "%02x" % i) | |
if "SVATTT" in r.text: | |
print r.text | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment