Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for debug binaries / libraries #2

Open
rec0de opened this issue Dec 9, 2024 · 4 comments
Open

Support for debug binaries / libraries #2

rec0de opened this issue Dec 9, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@rec0de
Copy link

rec0de commented Dec 9, 2024

Hi!

Just stumbled upon this tool and I have to say it looks really cool! I'm currently teaching mobile reversing to students and was thinking I could add malimite to the toolkit we present them ✨

One of the sample challenges we provide them is a debug build of a custom iOS app, so that was the first thing I tried with your tool.

It seems that recent versions of xcode pack all of the app's actual code into a separate *.debug.dylib for debug builds, meaning that the main binary only contains a tiny bit of wrapper code. Perhaps I just haven't found out how yet, but it looks like there is currently no way to have the ghidra analysis / decompilation include these libraries (or app extensions, etc) - could be a useful feature to add?

Either way, thanks for making this!

Repository owner deleted a comment Dec 9, 2024
@LaurieWired
Copy link
Owner

Seems like a great idea. It's similar to a feature I was considering adding already but didn't make it into the first release. Let me see what I can do! Got any sample IPAs to help me test support on?

@LaurieWired LaurieWired added the enhancement New feature or request label Dec 13, 2024
@rec0de
Copy link
Author

rec0de commented Dec 18, 2024

Sure! Any debug app built with xcode 16 should have them, but here's a sample - can't pack it into an IPA currently because ✨ apple ✨ but I hope a plain zip works for you?
Test.zip

@LaurieWired
Copy link
Owner

Thanks! Should be fine :)

@LaurieWired
Copy link
Owner

Basic functionality for this has been added now if you build from source (it'll be part of the next release too which I'm doing soon). I added it so that you can right-click on files and you get a "Decompile" option now. This allows you to dynamically decompile debug dylibs or any executable file inside that's not part of the main initial macho:

image

image

Also altered it so you can drop in .app files instead of enforcing only .ipas. There's still a few parts to clean up like having it not lock the UI during decompilation that I'll add soon.

Lmk if you see any issues with this approach, otherwise hope it helps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants