Settin' Frida.re en Linux - cheatsheet

Lo que vendría a ser un cheatsheet.

 

Setting python3, pip3 and,  "Environment" to set there all .py stuff: 

https://medium.com/swlh/exploring-native-functions-with-frida-on-android-part-1-bf93f0bfa1d3

https://int0x33.medium.com/day-19-getting-started-with-frida-tools-3aeb2f0063c3

 https://blog.0daylabs.com/2019/09/18/deep-dive-into-Android-security/

python3 -V // ver la versión que está instalada en el PC gnu-linux

sudo apt install python3-pip

//sudo apt install -y build-essential libssl-dev libffi-dev python3-dev

sudo apt install python3-venv

mkdir environments


cd environments

python3 -m venv frida_env

--------------------------------------------------

On-Off Python Environment:


source frida_env/bin/activate

deactivate
----------------------

Install frida client:

Inside enviroment :


pip3 install wheel
pip3 install frida-tools

--------------------------------------

En otra terminal: Instalamos Android Debug Bridge.

Install adb:


 apt search adb tools
 apt-get install android-tools-adb
 
 ---------------------------------------

Install frida server:

Check latest release:

https://github.com/frida/frida/releases 

Example,update numbers to latest release:


wget https://github.com/frida/frida/releases/download/14.2.17/frida-server-14.2.17-android-arm64.xz
 
 unxz frida-server-14.2.17-android-arm64.xz
 
 adb push frida-server-14.2.17-linux-arm64  /data/local/tmp/frida-server

--------------------------------------------

adb devices -l
( check usb cable connection if going bad, mine wasnt working )

 -----------------------------------------


# Enable root access to the device
adb root

# Make the server binary executable
adb shell "chmod 755 /data/local/tmp/frida-server"

# Start the server on your device
adb shell "/data/local/tmp/frida-server &"


Terminal Linux machine, inside environment:

 source activate

frida-ps -U

 frida-ps -aU | grep -i "app_a_buscar"

 

frida-trace -U -i open com.android.chrome 

Indica error:  Failed to spawn: unable to find process with name 'es.mercado.tienda'

 

Remember to stop Frida Server in your device when you 've finished:

frida-ps -U

PID frida-server // PID =  the number of the process

 adb root
adb shell
kill PID
now you can restart your frida server.

-------------------------------------------------------

Settin adb over wifi:

On android device in developers options set button adb over network on. 

 Type below command to connect to the device over WiFi.

 ./adb connect <IP address>:5555

 

another way using root:

 

adb root; adb connect localhost:6000; sleep 1; adb push frida-server /data/local/tmp/; adb shell "chmod 755 /data/local/tmp/frida-server"; adb shell "/data/local/tmp/frida-server &" 

Entradas populares