首页
社区
课程
招聘
[求助]android中免root的hook框架legend的问题
发表于: 2017-7-19 10:00 3476

[求助]android中免root的hook框架legend的问题

2017-7-19 10:00
3476

要实现的功能是获取任意类的所有信息。使用该框架时发现不能hook构造函数。所以尝试自己进行修改。

1.在HookManager的applyHooks(Class<?> holdClass)方法中添加实现获取构造的方法

2.进入hookConstructor()方法

3.进入hookConstructorDalvik()

4.进入of()方法

到此问题出现在哪?从哪里开始的?


[培训]科锐逆向工程师培训第53期2025年7月8日开班!

收藏
免费 0
支持
分享
最新回复 (3)
雪    币: 40
活跃值: (690)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
  崩掉的异常log  有没有啊   
这个库作者已经放弃了
2017-7-19 10:30
0
雪    币: 215
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
E/Legend-Log:  [---]  Error  to  Load  Hook  Method  From  :  File_file.
07-19  10:34:55.669  24970-24970/com.example.dong.legend  E/Legend-Log:  [---]  Cannot  resolve  Method  :  [exec,  java.lang.String#java.lang.String#java.io.File].
07-19  10:34:55.671  24970-24970/com.example.dong.legend  W/System.err:  Caused  by:  java.lang.ClassNotFoundException:  Didn't  find  class  &quot;android.provider.Settings.Secure&quot;  on  path:  DexPathList[[zip  file  &quot;/data/app/com.example.dong.legend-1/base.apk&quot;,  zip  file  &quot;/data/app/com.example.dong.legend-1/split_lib_dependencies_apk.apk&quot;,  zip  file  &quot;/data/app/com.example.dong.legend-1/split_lib_slice_0_apk.apk&quot;,  zip  file  &quot;/data/app/com.example.dong.legend-1/split_lib_slice_1_apk.apk&quot;,  zip  file  &quot;/data/app/com.example.dong.legend-1/split_lib_slice_2_apk.apk&quot;,  zip  file  &quot;/data/app/com.example.dong.legend-1/split_lib_slice_3_apk.apk&quot;,  zip  file  &quot;/data/app/com.example.dong.legend-1/split_lib_slice_4_apk.apk&quot;,  zip  file  &quot;/data/app/com.example.dong.legend-1/split_lib_slice_5_apk.apk&quot;,  zip  file  &quot;/data/app/com.example.dong.legend-1/split_lib_slice_6_apk.apk&quot;,  zip  file  &quot;/data/app/com.example.dong.legend-1/split_lib_slice_7_apk.apk&quot;,  zip  file  &quot;/data/app/com.example.dong.legend-1/split_lib_slice_8_apk.apk&quot;,  zip  file  &quot;/data/app/com.example.dong.legend-1/split_lib_slice_9_apk.apk&quot;],nativeLibraryDirectories=[/data/app/com.example.dong.legend-1/lib/arm,  /data/app/com.example.dong.legend-1/base.apk!/lib/armeabi,  /data/app/com.example.dong.legend-1/split_lib_dependencies_apk.apk!/lib/armeabi,  /data/app/com.example.dong.legend-1/split_lib_slice_0_apk.apk!/lib/armeabi,  /data/app/com.example.dong.legend-1/split_lib_slice_1_apk.apk!/lib/armeabi,  /data/app/com.example.dong.legend-1/split_lib_slice_2_apk.apk!/lib/armeabi,  /data/app/com.example.dong.legend-1/split_lib_slice_3_apk.apk!/lib/armeabi,  /data/app/com.example.dong.legend-1/split_lib_slice_4_apk.apk!/lib/armeabi,  /data/app/com.example.dong.legend-1/split_lib_slice_5_apk.apk!/lib/armeabi,  /data/app/com.example.dong.legend-1/split_lib_slice_6_apk.apk!/lib/armeabi,  /data/app/com.example.dong.legend-1/split_lib_slice_7_apk.apk!/lib/armeabi,  /data/app/com.example.dong.legend-1/split_lib_slice_8_apk.apk!/lib/armeabi,  /data/app/com.example.dong.legend-1/split_lib_slice_9_apk.apk!/lib/armeabi,  /system/lib,  /vendor/lib,  /system/vendor/lib,  /product/lib]]
07-19  10:34:55.706  24970-24970/com.example.dong.legend  E/Util:  GetValue:java.io.FileNotFoundException:  /data/local/tmp/cat.xml  (No  such  file  or  directory)
07-19  10:34:55.706  24970-24970/com.example.dong.legend  E/Util:  GetValue:java.io.FileNotFoundException:  /data/local/tmp/cat.xml  (No  such  file  or  directory)
07-19  10:34:55.706  24970-24970/com.example.dong.legend  E/Util:  GetValue:java.io.FileNotFoundException:  /data/local/tmp/cat.xml  (No  such  file  or  directory)
07-19  10:34:55.707  24970-24970/com.example.dong.legend  E/Util:  GetValue:java.io.FileNotFoundException:  /data/local/tmp/cat.xml  (No  such  file  or  directory)
07-19  10:34:55.707  24970-24970/com.example.dong.legend  E/Util:  GetValue:java.io.FileNotFoundException:  /data/local/tmp/cat.xml  (No  such  file  or  directory)
2017-7-19 10:38
0
雪    币: 215
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
那有没有类似的可以实现hook的框架啊?获取任意类的所有信息主要是方法和构造方法
2017-7-19 10:40
0
游客
登录 | 注册 方可回帖
返回