📖 Tutorial Termux tool to dump symbols in LIB/SO/ELF libraries.

Trusted by over 1.6 million members since 2014 — why not join them?
Log in or Register to join us!

Snailsoft

∞ and beyond!
Staff Member
Moderator
SB Mod Squad ⭐
✔ Approved Releaser
Active User
Member for 2 years
This tool is the creation of modder, Antik
67705.jpg

Created specifically to dump libcocos2d.so
Written in C++
Thanks to @LadyOnePunch for bringing this to my attention.

The tool is not intuitive and has no manual/help.
It has no error trapping.


There is a process for using CLang to compile the binary executable.
This process is outlined in this video,


or, you can download my compiled binary.

Once copied to Termux, the binary needs to be made executable,
Code:
chmod +x LibSOdumper
You can place it in the 📁/data/data/com.termux/files/usr/bin folder or use ./LibSOdumper
Note that I changed the name of the file.
Because of how the tool dumps the code, I prefer a separate folder with the tool inside and copying the .so file(s) to that folder.

Using it is simple enough.
Extract your .so file(s) from the APK.
Copy the .so to Termux via /sdcard or MT (I find the /sdcard approach simpler)
Run LibSOdumper
It will scan the current directory for all .so files.
It will present a numbered list and create a prompt INDEX
You are expected to input a number for the .so to dump.
It only handles dumping one at a time.
It doesn't support command-line options.

It will create a subfolder of the same name as the .so selected.
It will dump the symbols code into that subfolder as DUMP.CPP

This tool can in fact be used on any .so
Be warned, not all .so have a symbols set and an empty DUMP.CPP will be produced.

Here's an example -
3 .so ELF libraries
1 had no symbols
2 is encrypted
3 worked
After dumping, a quick CAT of the #3 dump shows the code.

67703.png

67702.png


This admittedly works better than my own Android ELF dumper.
 
The Cursed Castle - Online RPG on Google Play
Top