Android Pentest Environment Setting Up
Automation Setup
BrutDroid - Android Studio Pentest Automator - https://github.com/Brut-Security/BrutDroid
Manual Setup
Setup Tutorial Video + Repo ( Using Magisk + Frida)
Installing (AND ROOTING) Android Emulator [2024 UPDATE]
Burp Suite and Frida on an Android Emulator [2024 UPDATE]
Step By Step
Rooting Emulator:
Step 1: Install rootAVD for Download Magisk
Step 2: Using rootAVD for installing Magisk on the Emulator
Step 3: Cold Boot for Patch System Image
Step 4: Finalize Root
Install Burp Suite Certificate:
Step 1: Install AlwaysTrustUserCerts β This is a Magisk module designed to make the system trust Burp Suite's certificate (PortSwigger CA)
Step 2: Run BurpSuite and install the BurpSuite certificate (PortSwigger CA) on your local machine with
.crtextensionStep 3: Use ADB to push
AlwaysTrustUserCerts.zipandPortSwigger CAfrom your local machine to/sdcardon the AVDStep 4: On your AVD, go to
Settings β Security β Encryption & credentials β Install a certificate β CA certificate, and select the PortSwigger CA from/sdcardStep 5: Go to
Magisk Application β Modules β Install from storage β Add AlwaysTrustUserCerts.zipfrom/sdcardand Reboot AVDStep 6: On your AVD, go to
Settings β Security β Encryption & credentials β Trusted credentials β SYSTEM, and check that thePortSwigger CAis installed
Install Frida: https://frida.re/docs
Note: Make sure to use the same version of Frida Server and Frida Client.
Install Frida Client:
Install using pip:
pip install frida-toolsVerify installation using:
frida --version
Install Frida Server: https://github.com/frida/frida
Step 1: Check your device's CPU type:
adb shell getprop ro.product.cpu.abilistStep 2: Go to the Release Page on Github: https://github.com/frida/frida/releases/
Step 3: Install the Frida Server that matches the version of the Frida Client and the CPU architecture of the AVD
Step 4: Extract the
.xzfile using WinRAR or 7-Zip, then rename the extracted file tofrida-serverusing themvcommandStep 5: Now, letβs get it running on your device:
Step 6: Check if Frida is running by executing the following command
Alternatively, you can use a different Technology Stack like:
Other Blog Setup using Android Studio:
Series for Android Pentest:
Last updated