搞了一个基于 dirtycow 的 Android 的 root 工具

2017-01-21 05:18:34 +08:00
 hyln9
打个广告,这个带 SELinux 的 bypass ,大家可以帮忙测试一下吗?非常感谢~
地址: https://github.com/hyln9/VIKIROOT
23205 次点击
所在节点    Android
67 条回复
postlive
2017-01-26 10:47:32 +08:00
楼主怎么不高新了???
lq875502530
2017-04-14 17:34:36 +08:00
怎么用啊我完全不懂
mayl8822
2017-06-22 10:20:45 +08:00
楼主在哪个平台上编译的啊, 我用 ndk 编译出现这个
./payload.s: Error: unaligned opcodes detected in executable segment
PaTTeeL
2022-04-09 09:25:37 +08:00
@hyln9 求助楼主,貌似项目已经只读了?下载了 release 中的 0.1.1 版文件,华为荣耀畅玩 5C ,EMUI4.1.1 ,Android6.0 ,安全补丁级别 2016 年 9 月 1 日,内核 3.10.94 ,尝试了不管是反复唤醒手机还是打开系统自带的闹钟或者时钟都无法成功触发,一直卡在 ====TERMINAL====== 上不动,最近翻出旧手机想折腾一下,华为锁了 bootloader ,貌似就你的项目可以 bypass SELinux ,所以想着能不能直接 root 之后拿来抢菜,最近隔离的快断粮了>_<!,如果能搞一下的话感激不尽!
hyln9
2022-04-09 14:38:53 +08:00
@PaTTeeL 如果 init 进程 policy 比较严的话,会导致 shell 触发不了,需要附加别的 exploit ,比较麻烦。GitHub 上有几个 Huawei/Honor 的 unlock 项目,可以尝试下。
PaTTeeL
2022-04-12 01:43:53 +08:00
@hyln9 感谢大神的答复,unlocker 尝试过了,貌似欧洲机器的解锁码才是全数字,国内机器解锁码带字母,枚举的话几百年,这辈子应该是没戏了,还是去某宝找找商家吧。。。

另外因为家里还多安卓机设备也需要类似的 root 方法,所以还想请教一下新手编译问题,我自己下载 NDK 编译的时候总是报错 Error 127 ,我尝试过了 23b 、14b 和 15c 这三个版本,貌似 dirtycow 相关的项目都是报的 127 错误,能请教一下是啥问题吗?我现在都是找的已编译的二进制文件才能操作。

部分 make -d 的信息如下:

GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Reading makefiles...
Reading makefile 'Makefile'...
Updating makefiles....
Considering target file 'Makefile'.
Looking for an implicit rule for 'Makefile'.
Trying pattern rule with stem 'Makefile'.
Trying implicit prerequisite 'Makefile.o'.
Trying pattern rule with stem 'Makefile'.
Trying implicit prerequisite 'Makefile.c'.
……
Looking for a rule with intermediate file 'payload.S'.
Avoiding implicit rule recursion.
Trying pattern rule with stem 'payload.S'.
Trying implicit prerequisite 'payload.S,v'.
Trying pattern rule with stem 'payload.S'.
Trying implicit prerequisite 'RCS/payload.S,v'.
Trying pattern rule with stem 'payload.S'.
Trying implicit prerequisite 'RCS/payload.S'.
Trying pattern rule with stem 'payload.S'.
Trying implicit prerequisite 's.payload.S'.
Trying pattern rule with stem 'payload.S'.
Trying implicit prerequisite 'SCCS/s.payload.S'.
No implicit rule found for 'payload.s'.
Finished prerequisites of target file 'payload.s'.
No need to remake target 'payload.s'.
Finished prerequisites of target file 'payload.o'.
Must remake target 'payload.o'.
aarch64-linux-android-as -o payload.o payload.s
Putting child 0x7ffff3d36320 (payload.o) PID 49 on the chain.
Live child 0x7ffff3d36320 (payload.o) PID 49
Reaping losing child 0x7ffff3d36320 PID 49
Removing child 0x7ffff3d36320 PID 49 from chain.
hyln9
2022-04-12 10:43:02 +08:00
@PaTTeeL 额,这个也没看到报错啊?实在不行可以直接执行具体的编译命令,也没几条。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://yangjunhui.monster/t/335989

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX