[테스트 코드]
from pwn import *
printf_system_offset = libc.symbols['printf'] - libc.symbols['system']
printf_plt = elf.plt['printf'] write_plt = elf.plt['write']
libc_start_main = elf.plt['__libc_start_main']
print '[*] printf@plt : %s' % str(hex(printf_plt)) print '[*] lib_strat_main : %s' % str(hex(libc_start_main)) |
[실행 결과]
[*] printf@plt : 0x8048500 |
'Reverse > pwnable' 카테고리의 다른 글
[vagrant] CGC (Cyber Grand Challenge) 환경 구축 (0) | 2016.08.02 |
---|---|
[pwntools] test code (0) | 2016.07.27 |
[defcon 24 - 2016] Reversing - baby-re (0) | 2016.05.24 |
[defcon 23 - 2015] r0pbaby Writeup (0) | 2016.05.18 |
[pcf2013] ropasaurusrex (0) | 2016.05.11 |