App patching using Hopper

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:

  1. Open the target app and navigate to Menu | Binary Patching | start challenge.
  2. Upon clicking on the start challenge, there are three challenges:
    • The login method
    • Checking for jailbreak
    • The show alert
  3. 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:
  4. Load the app executable into Hopper and ...

Get Mobile Application Penetration Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.