from pwn import *


elf = ELF('./a.out')
#rop = ROP(elf)
libc = ELF("/lib/i386-linux-gnu/libc.so.6")

printf_system_offset = libc.symbols['printf'] - libc.symbols['system']

 

printf_plt = elf.plt['printf']
printf_got = elf.got['printf']

write_plt = elf.plt['write']
write_got = elf.got['write']

 

libc_start_main = elf.plt['__libc_start_main']



'프로그래밍 > python' 카테고리의 다른 글

python 에서 pid 구하기  (0) 2016.11.25
subprocess.popen  (0) 2016.10.19

+ Recent posts