Created
May 23, 2020 09:16
-
-
Save cimi/98af8d4f3ae504e3755953720e3747c9 to your computer and use it in GitHub Desktop.
Hackasat - solve intro
This file contains hidden or 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
from pwn import * | |
TICKET="ticket{charlie13078november:GKoPacNtB4q3dptlAjUMQlHHdNvsJxdmyjs1ABiR05oAFVa8guB34bd-hSYtx0glKQ}" | |
HOST="intro2.satellitesabove.me" | |
PORT=5001 | |
ANSWER="1789224188" | |
p = remote(HOST, PORT) | |
print(p.recvuntil("Ticket please:").decode("utf-8")) | |
print("-> " + TICKET) | |
p.send(TICKET + "\n") | |
problem = p.recvuntil("?").decode("utf-8") | |
print(problem) | |
p.send(ANSWER + "\n") | |
print("-> " + ANSWER) | |
print(p.recvall().decode('utf-8')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment