Awesome Open Source
Awesome Open Source

main_arena_offset

A simple shell script to get main_arena offset of a given libc

install

download main_arena then enjoy it!

Optional: add this shell script to path if you want

usage

$ main_arena your_libc

example

main_arena_offset [master●●] main_arena /lib/x86_64-linux-gnu/libc.so.6
[+]libc version : glibc 2.27
[+]build ID : BuildID[sha1]=8fd0a29758bf6615673836bb20ffdf11dcb531e6
[+]main_arena_offset : 0x3b4c40
main_arena_offset [master●●] main_arena /lib/i386-linux-gnu/libc.so.6
[+]libc version : glibc 2.27
[+]build ID : BuildID[sha1]=2e6f3ca2f94f25f84946f8277d7588a00a90791b
[+]main_arena_offset : 0x1d57a0

Screenshots

screenshot

more

  • Though it works perfect on libc-databases now(2018-11-15). But I'm not sure whether it works well on other libcs, so issues are welcome.

Make it better

Any suggestion or feature request is welcome! Feel free to send a pull request. Please let me know if you find any libc that makes main_arena_offset fail to find the right offset. And, if you like this work, I'll be happy to be starred 😬

Thanks


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
shell (9,858
pwn (34
heap (33

Find Open Source By Browsing 7,000 Topics Across 59 Categories