Book Image

Mobile Device Exploitation Cookbook

By : Akshay Dixit
Book Image

Mobile Device Exploitation Cookbook

By: Akshay Dixit

Overview of this book

Mobile attacks are on the rise. We are adapting ourselves to new and improved smartphones, gadgets, and their accessories, and with this network of smart things, come bigger risks. Threat exposure increases and the possibility of data losses increase. Exploitations of mobile devices are significant sources of such attacks. Mobile devices come with different platforms, such as Android and iOS. Each platform has its own feature-set, programming language, and a different set of tools. This means that each platform has different exploitation tricks, different malware, and requires a unique approach in regards to forensics or penetration testing. Device exploitation is a broad subject which is widely discussed, equally explored by both Whitehats and Blackhats. This cookbook recipes take you through a wide variety of exploitation techniques across popular mobile platforms. The journey starts with an introduction to basic exploits on mobile platforms and reverse engineering for Android and iOS platforms. Setup and use Android and iOS SDKs and the Pentesting environment. Understand more about basic malware attacks and learn how the malware are coded. Further, perform security testing of Android and iOS applications and audit mobile applications via static and dynamic analysis. Moving further, you'll get introduced to mobile device forensics. Attack mobile application traffic and overcome SSL, before moving on to penetration testing and exploitation. The book concludes with the basics of platforms and exploit tricks on BlackBerry and Windows Phone. By the end of the book, you will be able to use variety of exploitation techniques across popular mobile platforms with stress on Android and iOS.
Table of Contents (11 chapters)
Mobile Device Exploitation Cookbook
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

Analyzing traffic and extracting sensitive information from iOS App traffic


When the interception setup is ready, traffic analysis has started. The most difficult task from traffic is to extract sensitive information, or rather, to find the HTTP requests and variables which can help further extract sensitive information.

Let us take the case of an iOS application we came across. Let us first analyze the traffic and later see how to extract sensitive information.

Getting ready

For intercepting the iOS application traffic, set up the lab and tools as discussed in the previous recipe. Once you are done, the proxy tool (Charles Proxy) is ready to intercept the traffic.

How to do it...

  1. Log in to the mobile app, as shown in the following screenshot. Enter the wrong password for the correct username:

    Note that a login request goes and a response is received.

  2. Closely monitor the response traffic. For the incorrect password, there is a ERR_PWD text in the response, as shown in the following screenshot...