Search code examples
iphonexcodensstringjailbreak

Get NSString value from app on jailbroken device


Is it possible to get value of hard coded NSString from app on jailbroken device(with reverse engineering for example):

NSString *mySecretString = [NSString stringWithFormat:@"stringValue"]; 

Can someone get value "stringValue"?


Solution

  • Use the 'strings' utility from binutils on the app binary. http://sourceware.org/binutils/docs-2.18/binutils/strings.html

    Example:

    root@jailbroken-iPhone:~# strings HelloWorld
    Hello, World!
    root@jailbroken-iPhone:~# _