Any executable residing on the device can be modified, and you can understand and apply a patch statically using tools such as Hopper, IDA pro, and so on to change the behavior of the app permanently.
In this section, let's go ahead and patch the app with a simple example. The following steps are involved in this challenge:
Open the target app and navigate to Menu | Binary Patching | start challenge.
Upon clicking on the start challenge, there are three challenges:
The login method
Checking for jailbreak
The show alert
Let's pick the small challenge, which is the show alert. When you click on the show alert, it will display the alert as I love Google, as shown in the following screenshot:
Load the app executable into Hopper and click on the Strings tab and type
I love google
, as shown in the following screenshot:Select the location, click on Modify from the menu, and then click on Assemble instruction, and you will now be able to edit, as shown in the following screenshot...