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

Implement --addresses & --basenames to supplement --list-frameworks #42

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

danzimm
Copy link

@danzimm danzimm commented Jul 12, 2022

I desired to use this tool in order to aid navigating the shared cache with Hopper. Specifically I wanted to have an address and determine which framework it came from so that I can open that binary up in Hopper alongside the original binary (e.g. in UIKitCore there's a call to some function at 0x180918930, I wanted to know what function this is, but first I need to figure out which image it's coming from).

In order to solve this I implemented -a/--addresses which prints out the addresses of each image along with the image name. Along the way I also sorted the image list to be printed in VM address order so that it's a bit easier to navigate visually.

I also implemented --basenames since most of the time (all of the time?) there aren't any images with colliding base names. This also makes navigating the output of --list-frameworks a bit easier.

P.S. If I'm way off base for making this PR feel free to let me know. Just figured these changes might be helpful to folks outside myself.

@arandomdev arandomdev merged commit 79e53e3 into arandomdev:master Jul 12, 2022
@arandomdev
Copy link
Owner

PRs and improvements are always welcome! Thanks for the new arguments.

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

Successfully merging this pull request may close these issues.

None yet

2 participants