Book Image

Mobile Application Penetration Testing

By : Vijay Kumar Velu
Book Image

Mobile Application Penetration Testing

By: Vijay Kumar Velu

Overview of this book

Mobile security has come a long way over the last few years. It has transitioned from "should it be done?" to "it must be done!"Alongside the growing number of devises and applications, there is also a growth in the volume of Personally identifiable information (PII), Financial Data, and much more. This data needs to be secured. This is why Pen-testing is so important to modern application developers. You need to know how to secure user data, and find vulnerabilities and loopholes in your application that might lead to security breaches. This book gives you the necessary skills to security test your mobile applications as a beginner, developer, or security practitioner. You'll start by discovering the internal components of an Android and an iOS application. Moving ahead, you'll understand the inter-process working of these applications. Then you'll set up a test environment for this application using various tools to identify the loopholes and vulnerabilities in the structure of the applications. Finally, after collecting all information about these security loop holes, we'll start securing our applications from these threats.
Table of Contents (15 chapters)
Mobile Application Penetration Testing
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 click on the Strings tab and type I love google, as shown in the following screenshot:

  5. 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...