frida安装使用
1 安装pip install frida2https://github.com/frida/frida/releases这个网站上下载与上方的版本相同的文件,注意x86 arm 对应的手机下对应的3安装夜神模拟器4使用abd命令将第二步获取的frida_server push到模拟器adb push C:\Users\Administrator\Desktop\frida...
·
1 安装pip install frida
2 https://github.com/frida/frida/releases这个网站上下载与上方的版本相同的文件,注意x86 arm 对应的手机下对应的
3安装夜神模拟器
4使用abd命令将第二步获取的frida_server push到模拟器
adb push C:\Users\Administrator\Desktop\frida-server-11.0.9-android-x86 /data/local/t
mp/frida-serve
4使用adb shell 进入模拟器,将目录切换到 /data/local/tmp
5改变frida-server的权限 chmod 777 frida-server
6使用这个frida-server ./frida-server
7端口转发 adb forward tcp:27042 tcp:27042
8完成之后我们打开cmd输入frida-ps -U 。让 Frida 检查 USB-Device。frida-ps -R是模拟器
9在cmd命令行下执行你的脚本
import frida
import sys
device = frida.get_usb_device()
pid = device.spawn(["com.hipu.yidian"])
session = device.attach(pid)
device.resume(pid)
scr = """
Interceptor.attach(Module.findExportByName("libc.so" , "open"), {
onEnter: function(args) {
send("open called!");
},
onLeave:function(retval){
}
});
"""
def on_message(message, data):
print(message['payload'])
script = session.create_script(scr)
script.on("message", on_message)
script.load()
sys.stdin.read()
这样就可以简单的调试了一个app
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献1条内容
所有评论(0)