A simple shell script to get main_arena offset of a given libc
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
install.sh
main_arena
screenshot.png

README.md

main_arena_offset

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

install

$ wget -q -O- https://raw.githubusercontent.com/bash-c/main_arena_offset/master/install.sh | sh

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