I remember I have done this before, but forgot the command.
e.g.
I have a NSString defined in source, e.g.
NSString * s = @"secret";
I remember I can view the content using the strings
command, but I forgot the exact command to view it,
e.g.
strings my.ipa | grep "secret"
does not work. Anyone have idea?
I'm not sure it's possible directly with strings
on an ipa
, but you can do the following:
- Rename your
.ipa
file to have the .zip
extension. ipa
's are simply renamed zips.
- Extract (it should create a directory named
Payload
)
cd
into the Payload/<app-name>.app
- You should have a file named
<app-name>
in the current directory.
- Call
strings <app-name> | grep secret
.