LibcSearcher是python的一个库,在做pwn题的时候通常会用到,作用是泄露已知libc库版本的libc地址。
0x00.安装方法
1. git clone https://github.com/lieanu/LibcSearcher.git
2. cd LibcSearcher
3. sudo python setup.py install
4. 把LibcSearcher.py放在exp相同目录下运行exp.py即可
0x01.使用方法
先安装libc库
exp片段:
from LibcSearcher import *
elf=ELF('libc.xx.xx')
libc = LibcSearcher('write',write_addr)
offset = write_addr - libc.dump('write')
sys_addr = offset + libc.dump('system')