-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
achieve issue #35 #36
base: master
Are you sure you want to change the base?
Conversation
创建文件夹
这种偏移查找方式目前在我的测试环境里工作良好,但是仍然优先stub methods查找,因为internalClone 和clone的位置有可能会被改
其实这么多函数应该分在几个文件里的。。。
dex路径依然写死:/data/local/tmp/whale.dex在native_onload.h的DEX_PATH宏
你好, 想请教怎么操作? 只要把java目录下的文件复制到自己的app的java 目录下 运行就可以了吗? |
因为是全局注入,复杂些,但每一步基本没坑(在AVD和我自己的三星真机上没毛病),如果想要简单一些(避免写system分区,而且可以实现自动部署,"武器化"的话可以直接ptrace注入so那套操作(参考libinject,注意selinux)) 如果只是在自己app内hook,就是添加libwhale.so,然后把whale_wrapper模块里的类都复制进来就ok了(参考asLody大佬的README),Xposed-Style hook,教程网上一堆 '我提这PR主要是想到动态加载dex和用Object.clone和Object.internalClone获取ArtMethod结构体偏移的方法',灵活性更好.,全局注入那块没想过被merge。 |
fettdrac 有qq或者wechat吗 |
patch SELinux之类的可以参考KSMA里的那段shellcode,也可以在这里等待mediaserver混进secure world让RKP保护为我们所用(完整任意地址读写~) 这块代码在哪里呢 |
这块只是理论上可行,三星的一个洞里有关于通过RKP写内核内存的利用方法,但是我这边实际没有实现(个人水平实在非常有限),只是看过相关利用。 大多数情况个人用户用不到DRM,不用去考虑TrustZone那块,KSMA patch SELinux的话:https://github.com/jltxgcy/CVE_2017_7533_EXP |
MSHook/Hooker.h not found |
It is my first time to contribute codes to such a famous open-source project, there must be something important that are not mentioned by me, so if any problems happens,I will be very happy to solve it as soon as possible during my summer vacation.
add functions mentioned above in issue #35
Thank you.