Utils use to dump android ELF from memory and do some fix including the ELF section header rebuilding
This resp include two utils about dumping and fixing arm elf32/elf64 from the memory.
The main target is to rebuild the Section Header of an ELF by memory dumped.Useful in breaking packed so file like UPX or something like 360 libjiagu.so
cd app/jni/ ndk-build- output path is app/libs/armeabi-v7a/dump
cat /proc//maps
cat /proc//maps
40105000-4014c000 r-xp 00000000 b3:19 717 /system/lib/libc.so 4014c000-4014d000 ---p 00000000 00:00 0 4014d000-4014f000 r--p 00047000 b3:19 717 /system/lib/libc.so 4014f000-40152000 rw-p 00049000 b3:19 717 /system/lib/libc.so 40152000-40160000 rw-p 00000000 00:00 0- ./dump 1148 0x40105000 0x40160000 ./out.so 0 1 - dump to 40160000 not 40152000 is because the ELF .bss memory if exist should be dump too, the fix process depends on it.