APP Tracing with Frida
Last updated
Last updated
Frida is a dynamic code instrumentation toolkit. It lets you inject your script into black-box processes(No source code needed). It allows you to inject your own code and to programmatically and interactively inspect and change running processes.
Frida, on the other hand, allows you to interact with the Android APK so you can inject code to bypass many of the techniques developers use to secure the apps.
Goal of this exercise is to trace the CrackmeSimple application with frida and find a way to decode the password.
APK File:
If you haven't setup frida you can install it with the following commands:
In Android Studio I'll setup a Nexus 5 Device with Android 9.0 running on it. This version works much more stable and faster in my virtual environment than other Android Images I’ve tested before.
Install the APK File on the device:
First we must push the frida server on the device
Starting the frida server as root on the device:
List running processes with frida:
List running applications with frida:
List installed applications with frida:
I try to hook all imported classes with the following command:
Frida catched 39 classes. Let's see what we get when I type a wrong password:
Let's have a closer look on the return values:
I'll use Cyberchef to decode the values: