Basic Frida commands
Table of Contents
init#
Frida is a reverse engineering framework which can be used to
installed apps#
The below command will let you view applications which are on the virtual mobile device.
$ frida-ps -Uai
PID Name Identifier
---- ------------- --------------------------
3054 Calendar com.android.calendar
2463 Clock com.android.deskclock
3141 Email com.android.email
3175 Gallery com.android.gallery3d
3554 Hello App com.example.helloapp
3198 Messaging com.android.messaging
2547 Phone com.android.dialer
2299 Settings com.android.settings
3372 WebView Shell org.chromium.webview_shell
- Calculator com.android.calculator2
- Camera com.android.camera2
- Contacts com.android.contacts
- Files com.android.documentsui
- Music com.android.music
- Search com.android.quicksearchbox
run script#
The below command will run the script on the application.
$ frida -U -f com.example.helloapp -l 01-hello.js
____
/ _ | Frida 16.5.5 - A world-class dynamic instrumentation toolkit
| (_| |
> _ | Commands:
/_/ |_| help -> Displays the help system
. . . . object? -> Display information about 'object'
. . . . exit/quit -> Exit
. . . .
. . . . More info at https://frida.re/docs/home/
. . . .
. . . . Connected to Android Emulator 5554 (id=emulator-5554)
Spawned `com.example.helloapp`. Resuming main thread!
[Android Emulator 5554::com.example.helloapp ]-> hellow world
[Android Emulator 5554::com.example.helloapp ]->
The source code for the 01-hello.js
file is:
Java.perform(function() {
console.log("hellow world");
});
Read other posts