|
本文所有教程及源碼、軟件僅為技術研究。不涉及計算機信息系統功能的删除、修改、增加、幹擾,更不會影響計算機信息系統的正常運行。不得将代碼用于非法用途,如侵立删! |
Frida使用文檔(一)安裝、啟動、運行、關閉操作環境
- win10
- Google nexus5x
- python3.9
- frida==14.2.17
- frida-tools==9.2.4
注意frida和python frida-tools的版本匹配,Frida與Frida-tools對應關系
pip install frida==14.2.17
pip install frida-tools==9.2.4

在 官方github頁面的release标簽裡,找到對應版本的frida-server,注意要匹配系統和架構,比如arm和arm64就不能搞錯
- 查看手機CPU 架構類型
- adb shell getprop ro.product.cpu.abi

- 根據frida版本和手機CPU版本下載對應的frida-server 下載完成後進行解壓,獲得linux原生的可執行文件,我們将它重命名為frida-server

- 将frida-server安裝至手機
- 使用adb命令将其推送到手機上去
- $ adb push frida-server /data/local/tmp/
- 然後使用adb shell命令進入到手機中去,執行以下命令:
- $ adb shellbullhead:/ $ su bullhead:/ # whoamirootbullhead:/ # cd /data/local/tmp/bullhead:/data/local/tmp # chmod 755 /data/local/tmp/frida-serverbullhead:/data/local/tmp # ./frida-server &[1] 6669
- frida-server運行成功。

電腦新開一個shell,執行如下命令
PS C:\Users\Administrator> adb shell
bullhead:/ $ su
bullhead:/ # cd /data/lo
local/ lost found/
bullhead:/ # cd /data/local/tmp/
bullhead:/data/local/tmp # ./frida-server &
[1] 8610
bullhead:/data/local/tmp #

此時在電腦上新開一個shell,運行frida-ps -U命令,即可顯示手機中正在運行的進程。

frida-server服務端啟動成功!
關閉frida-server服務查看frida進程
ps | grep frida
殺死進程
kill -9 進程id

adb forward tcp:27042 tcp:27042
#查看進程中的信息
#process = frida.get_usb_device().enumerate_processes()
#print(process)
1.新開一個shell輸入命令:
adb shell am monitor
2.啟動需要獲取包名的應用

|
本文僅供學習交流使用,如侵立删! |
,








