- dyldinfo: This script lets IDA Pro understands the DYLD_INFO[_ONLY] command introduced in firmware 3.1. Running this recovers some missing symbols.
- fixobjc2: For binaries built with Objective-C ABI 2, this script can find and label all Objective-C functions and ivar offsets.
The result will look like this:
Because IDA doesn't allow "-" and spaces in names, the Objective-C function names are renamed like this:
- -[Foo bar:baz:] → Foo.bar:baz:
- +[Foo bar:baz:] → @Foo.bar:baz:
- -[Foo(Cat) bar:baz:] → Foo(Cat).bar:baz:
(Note: Try not to run fixobjc2 before dyldinfo, some information cannot be found.)
Great work, KennyTM!
ReplyDeleteBtw. do you know of other scripts which might become handy when reversing iPhone binaries?
I don't know. I didn't use IDA Pro a lot.
ReplyDeleteWhen trying to run the dyldinfo script I'm getting an error;
ReplyDelete"syntax error near: extern"
Any ideas?
@fusen:
ReplyDeleteextern (Global variables) is supported since IDA Pro 5.4, so you need 5.4 or above.
ah, I didn't notice IDA Pro has updated >.<
ReplyDeletethanks
Heh, did you see the similar script I wrote (well, hacked from fixobjc.idc) recently? though yours looks more comprehensive..
ReplyDelete@comex:
ReplyDeleteYeah, but I've lost the pastie link so I just cook one up :p
Awesome work with this man. It's quite handy.
ReplyDeleteHi Kenny,
ReplyDeleteDo you have any idea about finding function arguments (private framework) from arm assembly code (by using IDA Pro or by run time from GDB).
Do you have any idea ?
Sridhar