Pentest Tools

Published on March 8th, 2016 📆 | 3848 Views ⚑

0

Inspeckage — Android Package Inspector


iSpeech

Inspeckage is a tool developed to offer dynamic analysis of Android applications. By applying hooks to functions of the Android API, Inspeckage will help you understand what an Android application is doing at runtime.Ā Inspeckage will let you interact with some elements of the app, such as activities and providers (even unexported ones), and apply some settings on Android.

Since dynamic analysis of Android applications (usually through hooks) is a core part of several mobile application security tests, the need of a tool that can help us do said tests is real. Even though there are other tools that promise to help you do that, Iā€™ve run across some limitations when testing them:

  • Lack of interaction with the user doing the tests;
  • Only work in emulators;
  • Plenty of time to update the tool after an Android update;
  • Very poor output;
  • Very costly setup.

 

Inspeckage (Package Inspector) is a simple application (apk) with an internal HTTP server providing a friendly web interface, developed as an Xposed Framework Module. You can run it without Xposed, but 80% of its features depends on the Xposed Framework so itā€™s recommended that the framework is present on the device / emulator.

 

Android Package Inspector Features

With Inspeckage, we can get a good amount of information about the applicationā€™s behavior:

Information gathering
  • Requested Permissions;
  • App Permissions;
  • Shared Libraries;
  • Exported and Non-exported Activities, Content Providers,Broadcast Receivers and Services;
  • Check if the app is debuggable or not;
  • Version, UID and GIDs;
  • etc.

[adsense size='1']

Hooks

With the hooks, we can see what the application is doing in real time:

  • Shared Preferences (log and file);
  • Serialization;
  • Crypto;
  • Hashes;
  • SQLite;
  • HTTP (an HTTP proxy tool is still the best alternative);
  • File System;
  • Miscellaneous (Clipboard, URL.Parse());
  • WebView;
  • IPC.

 

Actions

With Xposed itā€™s possible to perform actions such as start a unexported activity and much else:

  • Start any activity (exported and unexported);
  • Call any provider (exported and unexported);
  • Disable FLAG_SECURE;
  • SSL uncheck;
  • Start, stop and restart the application.

 

Extras
  • APK Download;
  • View the appā€™s directory tree;
  • Download the appā€™s files;
  • Download the output generated by hooks in text file format;
  • Take a screen capture;

 





Configuration

Even though our tool has some hooks to the HTTP libraries, using an external proxy tool is still the best option to analyze the appā€™s traffic. With Inspeckage, you can:

  • Add a proxy to the target app;
  • Enable and disable proxy;
  • Add entries in the arp table.

 

 



 

Installation

Requirements: Xposed Framework

Xposed Installer
  1. Go to Xposed Installer, select ā€œDownloadā€
  2. Refresh and search for ā€œInspeckageā€
  3. Download the latest version and install
  4. Enable it in Xposed
  5. Reboot and enjoy!
Xposed Repository

[adsense size='1']

Get it from Xposed repo:https://repo.xposed.info/module/mobi.acpm.inspeckage

    adb install mobi.acpm.inspeckage.apk
  1. Enable it in Xposed
  2. Reboot and enjoy!

 

 

Source && Download



Comments are closed.