Ret2lib
基本信息
示例步骤(简化)
查找地址
ldd /path/to/executable | grep libc.so.6 #Address (if ASLR, then this change every time)for i in `seq 0 20`; do ldd ./<bin> | grep libc; donereadelf -s /lib/i386-linux-gnu/libc.so.6 | grep system使用 gdb-peda / GEF
使用 /proc/<PID>/maps

未知的 libc
Leaking libc address with ROPLeaking libc - template使用 2 个偏移量了解 libc
绕过 32 位 ASLR
One Gadget
One Gadgetx86 Ret2lib Code Example
x64 Ret2lib 代码示例
ROP - Return Oriented ProgramingARM64 Ret2lib 示例
Ret2lib + Printf leak - arm64Ret-into-printf(或puts)
Ret2printf
Format Strings其他示例和参考资料
最后更新于