博客
关于我
Android Hook-Frida框架-安装与初步使用
阅读量:598 次
发布时间:2019-03-12

本文共 1431 字,大约阅读时间需要 4 分钟。

实践是检验真理的唯一标准,程序设计更是如此。-----箴言

Frida的安装与初步使用:

1. 官网:

https://frida.re/docs/home/

https://www.frida.re/docs/javascript-api/

2. 安装:

(1)安装:

(sudo) pip install frida(sudo) pip install frida-tools

(2)验证python命令  :

cmd 输入python ,进入python
继续输入 import frida
如果什么都没显示,恭喜应该是安装好了。
例如:

aaaaa:frida$ pythonPython 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18) [Clang 6.0 (clang-600.0.57)] on darwinType "help", "copyright", "credits" or "license" for more information.>>> import frida>>> 

验证成功。

3. push frida-server:

push到木木模拟器:
先连接模拟器:adb kill-server && adb server && adb shell;
下载好对应的frida-server的版本,并且,push和改名到/data/local/tmp/frida-server,改权限并运行;
adb push frida-server /data/local/tmp/
adb shell
cd /data/local/tmp
chmod 755 frida-server
./frida-server (&)
1400

4. Frida工具使用:(1)frida-ps常用命令:

frida-ps --versionfrida-ps (-U)frida-ps --helpfrida-ps -hfrida-ps -jfrida-ps -afrida-ps -Uafrida-ps -Uai

(2)frida命令:

frida -h (--help)frida --version

(3)frida-trace 追踪某个函数:

它主要的工作方式是将脚本库注入到目标进程,在目标进程执行脚本。这里需要注意的是,它是将脚本库注入到已经启动的进程.

aaaaa:Downloads$ frida-trace -i "open" -U com.test.myglibtestappInstrumenting...                                                        open: Auto-generated handler at "/Users/user1/Downloads/__handlers__/gralloc.x86.so/open.js"Started tracing 1 function. Press Ctrl+C to stop.                                  /* TID 0x645 */ 11531 ms  open(path="/dev/ashmem", oflag=0x2) 14864 ms  open(path="/dev/ashmem", oflag=0x2)

 

转载地址:http://gftxz.baihongyu.com/

你可能感兴趣的文章
netty--helloword程序
查看>>
netty2---服务端和客户端
查看>>
【Flink】Flink 2023 Flink易用性和稳定性在Shopee的优化-视频笔记
查看>>
Netty5.x 和3.x、4.x的区别及注意事项(官方翻译)
查看>>
netty——bytebuf的创建、内存分配与池化、组成、扩容规则、写入读取、内存回收、零拷贝
查看>>
netty——Channl的常用方法、ChannelFuture、CloseFuture
查看>>
netty——EventLoop概念、处理普通任务定时任务、处理io事件、EventLoopGroup
查看>>
netty——Future和Promise的使用 线程间的通信
查看>>
netty——Handler和pipeline
查看>>
Vue输出HTML
查看>>
netty——黏包半包的解决方案、滑动窗口的概念
查看>>
Netty中Http客户端、服务端的编解码器
查看>>
Netty中使用WebSocket实现服务端与客户端的长连接通信发送消息
查看>>
Netty中实现多客户端连接与通信-以实现聊天室群聊功能为例(附代码下载)
查看>>
Netty中的组件是怎么交互的?
查看>>
Netty中集成Protobuf实现Java对象数据传递
查看>>
netty之 定长数据流处理数据粘包问题
查看>>
Netty事件注册机制深入解析
查看>>
netty代理
查看>>
Netty入门使用
查看>>