Book Image

Learning iOS Penetration Testing

By : Swaroop Yermalkar
Book Image

Learning iOS Penetration Testing

By: Swaroop Yermalkar

Overview of this book

iOS has become one of the most popular mobile operating systems with more than 1.4 million apps available in the iOS App Store. Some security weaknesses in any of these applications or on the system could mean that an attacker can get access to the device and retrieve sensitive information. This book will show you how to conduct a wide range of penetration tests on iOS devices to uncover vulnerabilities and strengthen the system from attacks. Learning iOS Penetration Testing discusses the common vulnerabilities and security-related shortcomings in an iOS application and operating system, and will teach you to conduct static and dynamic analysis of iOS applications. This practical guide will help you uncover vulnerabilities in iOS phones and applications. We begin with basics of iOS security and dig deep to learn about traffic analysis, code analysis, and various other techniques. Later, we discuss the various utilities, and the process of reversing and auditing.
Table of Contents (17 chapters)
Learning iOS Penetration Testing
Foreword – Why Mobile Security Matters
About the Author
About the Reviewer

Runtime analysis using Snoop-it

In the last section, we studied how to perform dynamic analysis using the command-line tool, Cycript. If you are not comfortable with command-line analysis, you will get a complete GUI to perform all of the tasks with the Snoop-it tool here.

You must have installed Snoop-it in Chapter 2, Setting up Lab for iOS App Pentesting and if not, you can install it via Cydia.

Let's explore Snoop-it to perform dynamic analysis using its GUI:

  1. Start the Snoop-it application from iDevice and select the Dynamic Analysis application:

  2. Start the application and you will see the Username and Password fields:

  3. Start your browser and enter the IP address of iDevice and the port number as 12345. You will observe all details about the application such as Objective-C classes, View Controllers, and so on in your browser window:

  4. Now, let's call the pushLoginPage() method from ViewController. It's very easy with Snoop-it; select the method and select Setup and Invoke Method:

  5. You will enter...