BUFFER OVERFLOW
LIBC-Adresses & offets
Libc:
ldd filename
–> See where libc is pointing to
For example after:
System offset:
readelf -s /lib/x86_64-linux-gnu/libc.so.6 |grep system
Exit offset:
readelf -s /lib/x86_64-linux-gnu/libc.so.6 |grep exit
/bin/sh
strings -atx /lib/x86_64-linux-gnu/libc.so.6 |grep /bin/sh