Android Hook-Frida框架-注入以及Process的用法

善用命令行,快速验证你的想法。 -----箴言-----

 

使用CLI工具连接并注入到app中,app必须是已经在运行的app。

1. 连接并注入到app中:

frida -U -n com.example.appmsyhudiddemo

2. Process实战函数:

isDebuggerAttached

hasOwnProperty

[Android Emulator 5554::com.example.appmsyhudiddemo]-> Process

{

    "arch": "ia32",

    "codeSigningPolicy": "optional",

    "id": 1418,

    "pageSize": 4096,

    "platform": "linux",

    "pointerSize": 4

}

[Android Emulator 5554::com.example.appmsyhudiddemo]-> Process.isDebuggerAttached()

false

[Android Emulator 5554::com.example.appmsyhudiddemo]-> this.hasOwnProperty('Frida')

true

[Android Emulator 5554::com.example.appmsyhudiddemo]-> this.hasOwnProperty('Fridax')

false

[Android Emulator 5554::com.example.appmsyhudiddemo]->

代码说明:

(1)Process:查看进行信息,其中:

进程信息字段说明:

arch:cpu架构,字符串ia32,x64,arm 或arm64

codeSigningPolicy:策略

id:进程id

pageSize:页大小,即虚拟内存页面大小(以字节为单位)

platform:平台,其实就是系统,例如,字符串windows, darwin,linux或qnx

pointerSize:指针大小(以字节为单位)

Process.isDebuggerAttached:进程是否在调试

(2)this.hasOwnProperty(string):检测python是否有参数指定的模块。


喜欢本文,随手点个赞呗 :)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

liranke

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值