91 字
1 分钟
readelf-python-template
附件:readelf.py
这个脚本是基于 pyelftools 的 Python 版 readelf,适合在本地没有现成 readelf、或者想直接在 Python 环境里看 ELF 信息时使用。
先装依赖:
python -m pip install pyelftools常用用法:
python readelf.py -S ./pwnpython readelf.py -h ./pwnpython readelf.py -s ./pwn我自己主要拿它看段表,像确认 .bss、.got、.got.plt 这类位置时会比较顺手。
readelf-python-template
https://alf-ovo.cn/posts/readelf-python-template/