首页
社区
课程
招聘
[求助] 使用cydia HOOK 本进程libart.so包中的函数失败
发表于: 2017-4-22 10:12 5078

[求助] 使用cydia HOOK 本进程libart.so包中的函数失败

2017-4-22 10:12
5078

看到很多工程都在使用cydia::elfHookFunction hook 本进程so中的函数,代码我还没搞懂,先试着用,Hook失败了,大神们帮忙看看为什么不行呢?我试着hook android 7.0手机libart.so中的

http://androidxref.com/7.0.0_r1/xref/art/runtime/class_linker.cc#3268

代码是这么写的:

使用cydia 进行hook:

跟代码没有报错通过了,可是就是无法进入我的hook函数,请大神看下是否是因为我的参数啥的写的不对??


[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (5)
雪    币: 149
活跃值: (2618)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
...for  Android

Supported  on  versions  2.3  through  4.3,
including  Kindle  Fire,  CyanogenMod,  and  Intel.

While  Android  itself  is  "open",  the  devices  that  run  it  often  aren't.  Before  installing  Substrate,  you  will  first  need  to  get  root  access  on  your  device.

Depending  on  which  device  you  have,  and  which  version  of  Android,  this  process  differs;  we  therefore  can't  provide  a  simple  recommendation.

Once  you  have  root,  you  will  need  to  install  our  APK,  run  the  application,  click  Install,  and  grant  Superuser  access  to  Substrate  when  prompted.
2017-4-22 13:37
0
雪    币: 9479
活跃值: (757)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
能问一下你什么手机吗,我4.4的cydia都装不上。
2017-4-22 15:41
0
雪    币: 32
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
用libsubstrate.so好像能拦截到,不过拦截的不是这个函数,我试试再回复你。

另外,能麻烦答主告诉我这部分的源码是在哪里下载的吗?我在他们网站上找到的只有个头文件跟so库,找不到你的MSHook这部分hook实现的代码。
2017-4-27 17:41
0
雪    币: 241
活跃值: (226)
能力值: ( LV3,RANK:30 )
在线值:
发帖
回帖
粉丝
5
MSInitialize
{
       MSImageRef  image  =  MSGetImageByName("libxxx.so");
       void  *hookFun=MSFindSymbol(image,"funName");
       MSHookFunction(hookFun,(void*)&newFun,(void  **)&oldFun);
}


2017-4-27 19:16
0
雪    币: 7
活跃值: (223)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
老铁,7.0的libart.so是怎么hook的,分享一下
2018-4-10 23:16
0
游客
登录 | 注册 方可回帖
返回
//