frida hook基本操作命令
1.安装frida-server
frida-server-14.1.3-android-x86
真机安装
C:\Users\gqv20>adb push C:\Users\gqv20\Desktop\frida-server-14.1.3-android-arm /data/local/tmp/
2135 KB/s (17678608 bytes in 8.083s)
指定雷电模拟器安装
adb -s emulator-5554 push C:\Users\gqv20\Desktop\frida-server-14.1.3-android-x86 /data/local/tmp
2.frida—server上传到手机
frida-server-12.11.6-android-arm
adb push frida-server /data/local/ tmp /
3.操作步骤如下:
C:\Users\gqv20>adb devices
C:\Users\gqv20>adb shell
shell@shamu:/ $ su root
su
root@shamu:/ # cd /data/local/tmp/
cd /data/local/tmp/
4.添加权限
root@shamu:/data/local/tmp # chmod 777 /data/local/tmp/frida-server-14.1.3-android-arm
hmod 777 /data/local/tmp/frida-server-14.1.3-android-arm
root@aosp:/data/local/tmp # chmod 777 /data/local/tmp/frida-serverx86
hmod 777 /data/local/tmp/frida-server-14.1.3-android-x86
root@shamu:/data/local/tmp # ls
ls
busybox
frida-server-14.1.3-android-arm
frida-server-14.1.3-android-arm
frida-server-14.1.3-android-x86
krperm.txt
minicap
minicap.so
re.frida.server
root@shamu:/data/local/tmp # ./frida-server-14.1.3-android-arm
./frida-server-14.1.3-android-arm
root@shamu:/data/local/tmp # ./frida-serverx86
./frida-server-14.1.3-android-x86
5.端口转发
adb forward tcp:27042 tcp:27042
6.查看apk包名
adb shell dumpsys activity top