感谢这位大佬提供的思路:https://www.xfy9326.top/posts/g7200_8h87_root/
感谢这位大佬提供的exploit:https://github.com/j0nk0/getroot-android-dirtycow
首先在这里下载程序:https://github.com/j0nk0/getroot-android-dirtycow

之后连接ADB,将G1tR0oT_files的所有文件推送到/data/local/tmp
之后在adb中执行下面命令:
sh exploit.sh
等到提示下面内容时开关蓝牙:
# Turn on/off bluetooth please.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
在出现下面提示时,就能输入su提权了:
# Type run-as -s1 to get a shell
# Type run-as -s2 to execute su daemon
感谢这位大佬提供的exploit:https://github.com/j0nk0/getroot-android-dirtycow
首先在这里下载程序:https://github.com/j0nk0/getroot-android-dirtycow

之后连接ADB,将G1tR0oT_files的所有文件推送到/data/local/tmp
之后在adb中执行下面命令:
sh exploit.sh
等到提示下面内容时开关蓝牙:
# Turn on/off bluetooth please.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
.klogctl: Operation not permitted
在出现下面提示时,就能输入su提权了:
# Type run-as -s1 to get a shell
# Type run-as -s2 to execute su daemon