Ret2Lib
If you are inside the host
You can find the address of libc
ldd /path/to/executable | grep libc.so.6 #Address (if ASLR, then this change every time)for i in `seq 0 20`; do ldd <Ejecutable> | grep libc; doneGet offset of system function
readelf -s /lib/i386-linux-gnu/libc.so.6 | grep systemGet offset of "/bin/sh"
strings -a -t x /lib/i386-linux-gnu/libc.so.6 | grep /bin/sh/proc/<PID>/maps

Using dgp-peda
Bypassing ASLR
Code
最后更新于