📲
Android Reversing with Frida for Examiners
Authors:M. WilliamsonC. Atha
  • Android Reversing for Examiners
  • Setting Up
    • Prerequisites
    • Our Target: Private Photo Vault
  • Lab
    • [1] Lab setup and initial app exploration
      • [1.1] Upload frida-server to the emulator or device and run using nohup
      • [1.2] Review files in the app data directory
    • [2] Perform static analysis to locate some functions of interest
    • [3] Deploy method hooks using frida REPL
    • [4a] Moar Static Analysis
    • [4b] Cast a wide net with DBI
    • [4c] PIN bruteforce
      • [4c.1] PIN bruteforce (in depth)
  • Bonus Labs
  • Ready for more?
  • Frida-tools Reference
    • Installation & Common Flags
    • frida
    • frida-ps
    • frida-trace
  • Other Processes Reference
    • Extracting an APK specimen from the device
    • Troubleshooting frida connectivity
  • What's Next
    • Recommended Toolkits and Scripts
    • Additional Resources / Questions
  • Contact Us
Powered by GitBook
On this page
  • Which emulation environment should I choose?
  • System Prerequisites
  • Lab Kit
  • Video Walkthrough: Environment Setup

Was this helpful?

  1. Setting Up

Prerequisites

PreviousAndroid Reversing for ExaminersNextOur Target: Private Photo Vault

Last updated 5 years ago

Was this helpful?

Emulating Android inside a Windows VM (Android VM within a Windows VM) is difficult to achieve, and so we recommend emulating Android directly on your host machine.

For the purposes of these labs, we will be assuming that you are using a Windows host. However, there is no reason this content should not also work on other host OS'es.

At the end of the day, any Android emulator that allows root access can likely be made to work as a reversing sandbox. However, we are only providing an image for Android Device Emulator (ADE) and Virtualbox (VBOX).

Which emulation environment should I choose?

It comes down to preference! Any Android emulator that allows you to act as root will suffice. Virtual Box, Android Device Emulator, Nox, Genymotion will all work.

For me, ADE is a way better emulation environment. It looks better, runs smoother, and uses less system resources. However, if you already have another emulator up and running you are welcome to use that.

System Prerequisites

These prerequisites are required regardless of emulation environment.

Lab Kit

This lab kit includes: the PhotoVault APK version we used in this lab, frida scripts, and sample data.

Video Walkthrough: Environment Setup

This video covers the following topics:

  • Installing frida-tools on the host machine.

  • Obtaining the appropriate frida-server from the github releases page.

  • Pushing frida-server to the device and making it executable.

  • Running frida-server in a way that does not halt everything when you close your ADB session.

See also for non-video based instructions!

these instructions
here
here
this link
[1] Lab setup and initial app exploration
23MB
Android Frida Lab.7z
Download Lab Kit