Skip to content
Paolo Rovelli edited this page Apr 9, 2014 · 13 revisions

NinjaDroid is a simple tool to reverse engineering Android APK packages.

NinjaDroid uses apktool (https://code.google.com/p/android-apktool/) and dex2jar (https://code.google.com/p/dex2jar/), together with other Python scripts in order to extract from an APK package:

  • the classes.dex file;
  • the translated .jar file (thanks to dex2jar);
  • the disassembled smali files (thanks to apktool);
  • the AndroidManifest.xml file (thanks to apktool);
  • the CERT.RSA file;
  • the assets/ and res/ folders together with their content (thanks to apktool).

Finally, NinjaDroid creates an HTML report file which contains several information about the app, such as:

  • APK package info (e.g. file size, MD5, SHA-256 and SHA-512);
  • App info (e.g. package, name, version, lists of permissions, list of Activities/Services/BroadcastReceivers, ecc...);
  • Author info (e.g. name, email, company, country, ecc...);
  • Digital certificate info (e.g. validity, serial number, MD5, SHA-1, SHA-256 and signture);
  • URLs, shell commands and strings hard-coded into the classes.dex file;
  • List of files inside the APK package.

Use NinjaDroid

To use NinjaDroid you just need to copy the APK package you want to analyse into the NinjaDroid directory. Then, launch the command:

python ninjadroid.py -t myPackage.apk

A folder named as the APK package (e.g. myPackage/) will be created inside the NinjaDroid directory. Inside this folder you will find the HTML report file (e.g. report-myPackage.html), the .jar file (e.g. myPackage.jar) and all the rest of the APK content.

It is also possible to launch NinjaDroid on an APK package which is not in the NinjaDroid directory using the following command:

python ninjadroid.py -d /[AbsolutePathToTheApkFolder]/ -t myPackage.apk

NOTE: you need to have the Android SDK and Python installed on your computer.

Licence:

NinjaDroid is licensed under the GNU General Public License v3.0 (http://www.gnu.org/licenses/gpl-3.0.html).

Clone this wiki locally