1

I have an executable of a mac or ios app. This app uses a value stored for a key in NSUserDefaults to change app's flow.

It looks something like below code,

If( value set in user details )
        show something 
else
        hide something 

My question is how can I change the value stored for a key in NSUserDefaults using hopper disassembler ?

1 Answer 1

2

The values are stored in a plist file under ~/Library/Preferences (or ~/Library/Containers/.../ if sandboxed). You can find more information about it from Apple's documentation.

The easiest way to modify a value is to use the defaults program under terminal.

defaults write <bundle identifier> <key> <value>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.