Frida learning (1) - environment installation

Introduction

Frida is a lightweight HOOK framework that can be used on multiple platforms, such as android, windows, ios, etc. It can meet our requirements for all things: whether it is kernel instrumentation, HOOK to the upper layer, and evolution Shelling and so on. Frida is divided into two parts. The server runs on the target machine and hijacks application functions by injecting processes. The other part runs on the system machine. Frida's upper-layer interface supports js, python, c, etc.

Install

environment

1. python(我的python环境为python3.7)
2. frida
3. 已成功安装adb的手机或者模拟器(我用的模拟器)
4. 已经越狱的ios设备

Installation process

windows installation frida

  1. Install python3.7 and configure environment variables
  2. Install frida and frida-tools modules and view the current frida version
pip install frida
pip install frida-tools
frida --version

Install frida on Android phone

  1. View the Android mobile device framework structure adb shell getprop | findstr abiand download the corresponding version of frida-server . ! Note: the frida-server version must be consistent with the frida version
    Insert image description here

  2. Unzip the file downloaded in step 4, and then use the command adb push. Your computer is located at /data/local/tmp to transfer the file to the mobile phone. Then enter the mobile phone through adb shell, give the file 777 authorization, and Start with root privileges. :

 adb push frida-server /data/local/tmp/
 adb shell
 su
 cd /data/local/tmp/ 
 chmod 777 frida-server 
 ./frida-server
  1. After completing the above steps, open a new command line and enter the command 'frida-ps -U 查看手机进程,如果出现以下结果,则frida安装成功, 如果使用frida-ps -R` to view the mobile phone process. You need to perform port forwarding first.
    Insert image description here
adb forward tcp:27042 tcp:27042
adb forward tcp:27043 tcp:27043

Install frida on jailbroken iPhone

  1. Start Cydia, then add the frida source via Software Sources->Edit->Add->Add Source: https://build.frida.re:
    Insert image description here

  2. Search for the appropriate version of Frida in Cydia and install it:
    Insert image description here

Guess you like

Origin blog.csdn.net/qq_36241539/article/details/119105989