Android Application Testing
server side:
client side:
Just tried with latest frida 12.1.0 and everything works fine.Connect to Device/GenyMotion Virtual Device using ADB
Install ADB (Linux):
Windows:
Retrieve the virtual device IP address. It is displayed on top of the virtual device window:
From another computer, open a command prompt and run:
Find and Pull APK File:
Determine the package name of the app, e.g. "com.example.someapp". Skip this step if you already know the package name.
Determine the package name of the app, e.g. "com.example.someapp". Skip this step if you already know the package name.
How to use ADB Shell when Multiple Devices are connected
ADB Connect:
ADB Disconnecting:
Be sure to replace 192.168.0.101
with the IP address that is actually assigned to your device. Once you are done, you can disconnect from the adb tcp session by running:
To tell the ADB daemon return to listening over USB
Testing with Frida:
Install Frida on Windows/Linux:
Make Sure GenyMotion is in Bridged mode and proxy is set to the Windows/Linux testing Machine IP and Port.
Install Frida Server on Mobile Device:
https://github.com/frida/frida/releases/
frida-server-15.0.8-android-x86
OR: (Android ARM for One Plux X E1003 Physical Device):
Copy Frida server file into the android phone tmp directory using adb push command as shown in fig. Here I have used Genymotion as an android emulator. After the copying the file change the permissions of the frida server files.
Now go to ADB Shell and change permissions of Server file on the mobile device:
unable to connect to remote frida-server
Server side:
Client side:
Run Frida on Your Machine and Check for packages:
To connect Frida on Remote device:
Using Frida Scripts:
or use No Pause in script like:
Frida LOCAL JS Unpiinning Script:
Copy Pasting from Host to GenyMotion Emulator:
Long press the right click of your mouse until the paste sign appears
Errors Troubleshooting:
Android: adb: Permission Denied
Restarts the adb daemon with root permissions:
Push Burp Cert to SD Card Downloads Folder:
ABD Connect:
Check for Application Package Name:
Why can't I get root access from shell?
You might need to activate adb root from the developer settings menu. If you run adb root from the cmd line you can get:
root access is disabled by system setting - enable in settings -> development options
root access is disabled by system setting - enable in settings -> development options Once you activate the root option (ADB only or Apps and ADB) adb will restart and you will be able to use root from the cmd line.
You might need to activate adb root from the developer settings menu. If you run adb root
from the cmd line you can get:
Once you activate the root option (ADB only or Apps and ADB) adb will restart and you will be able to use root from the cmd line.
Run Frida Server Manually on Android:
No module named frida
Alternative
paste to the editor, to the top
save, then run
Get Minimum SDK from Android APK build
Decompile an Android Application with Dex2jar and Jd-GUI
Download Links:
_ | Mirror | Wiki | Downloads |
---|---|---|---|
gh | |||
sf | |||
bb | |||
gc |
If bundled with kali then dont need to specify file/extension and just run with dex2jar
If everything goes OK, then you’ll get a you-apk-dex2jar.jar file in same folder.
Now open jd-GUI tool which you can download from http://java-decompiler.github.io/
Open you-apk-dex2jar.jar file in jd-GUI tool and you’ll see something like this.
GenyMotion Error with VirtualBox
/dev/vboxnetctl: no such file or directory
This worked for me (macOS Monterey). This reloads all VirtualBox's kernel extensions.
ADB : unable to connect to 192.168.1.10:5555
Last updated