Hackergame 2021 writeup code
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 | |
cookies = dict(session="", | |
PHPSESSID="") | |
def crack(questions, answers): | |
data = {"q1": "20150504", "q2": "1", "q3": "Development Team of Library", "q4": "1", "q5": "/dev/null"} | |
for index, question in enumerate(questions): | |
data[question] = answers[index] | |
r = requests.post("http://202.38.93.111:10001/", data=data, cookies=cookies) | |
if "flag{" in r.text: | |
print(r.text) | |
exit() | |
for i in range(1, 10 + 1): | |
for j in range(1, 20): | |
print(i, j) | |
crack(["q2", "q4"], [str(i), str(j)]) |
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 | |
cookies = dict( | |
session="", | |
PHPSESSID="" | |
) | |
def crack(): | |
data = {"b6": "0", "b9": "5944674407370955162", "submit": "操作!"} | |
r = requests.post("http://202.38.93.111:15003/", data=data, | |
cookies=cookies) | |
data = {"b6": "0", "b9": "204240283865562228", "submit": "操作!"} | |
r = requests.post("http://202.38.93.111:15003/", data=data, | |
cookies=cookies) | |
print(r.text) | |
crack() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment