Mobile Android Lab Setup v1.1
Mobile Android Lab Setup v1.1
android
mobile test
lab
BUG BOUN TY COURS E BY
UN CLE RAT
Contents
1. Why we need certificate pinning bypass
2. What is frida.
3. Requirements
4. Setup and installation
Add the path where you extracted ADB to your path environment variable
◦ When you type a command, your OS will scan all of these paths and see if it can find an executable file
in these folder with the same name as the command
◦ See next slide
Setup and installation – win path vars
Windows ADB adding to path var
◦ Copy the location of the ADB path (ex: C:\Users\Gebruiker\Downloads\platform-tools_r30.0.5-
windows)
◦ Press the windows + r key
◦ Enter 'sysdm.cpl'
◦ Click the advanced tab
◦ In the System variable window, find the Path variable and click Edit:
◦ Click New
◦ Add the path you copied in step 1
Setup and installation – linux path vars
Linux ADB adding to path var
◦ Copy the location of the ADB path (ex: /users/user/home/downloads/adb)
◦ Change to your home directory.
cd $HOME
◦ Open the .bashrc file.
◦ Add the following line to the file. Replace the JDK directory with the name of your java installation directory.
source .bashrc
Frida server setup
Find out the arch version of the device
adb shell getprop ro.product.cpu.abi
Download the frida server version from the following url and extract it
https://github.com/frida/frida/releases/
frida-server-xxxx-android-x86.xz
frida-server-xxxx-android-x86_64.xz
Frida server setup
Push frida to the device and give it permissions to execute
Windows: adb push C:\ADB\frida-server /data/local/tmp
Linux: adb push ADB/frida-server /data/local/tmp
frida-ps -U
Script injection
to bypass cert.
Pinning
Locate your applications
package name from the list
Script injection to bypass cert. Pinning
Hook frida script into your application
//frida -U -f <your_application_package_name> -l
<path_to_fridascript.js_on_your_computer> --no-paus
BYPASSED
HTTPS ://APP.I N TIGRIT
I .COM/RES EARCHER/
PROGRAMS /H OPLR/H
OPLR/D ETAI L