
Dirty Pipe root exploit for Android (Pixel 6)
Dirty Pipe (CVE-2022-0847) 针对 Android 的临时 root PoC。
目前仅适用于安全补丁级别在 2022-02-05 至 2022-04-05 之间的 Pixel 6。 请勿在其他设备或其他版本上使用。必然会导致崩溃(重启)。
Dirty Pipe 最终在 Pixel 6 的 2022 年 5 月安全更新中被修复。
@rapperskull 已移植至 Realme GT2 Pro(https://github.com/polygraphene/DirtyPipe-Android/issues/12)。 链接
某些版本的 Galaxy S22 也存在漏洞。但尚未移植。(https://github.com/polygraphene/DirtyPipe-Android/issues/3)
使用此工具有可能导致手机变砖。请自行承担风险。 特别是,不要从 Magisk 应用更新/安装 Magisk。这将导致永久变砖。
'adb' 不是内部或外部命令... 错误,请检查是否将 adb 添加到了 PATH 中。adb shell 然后输入 /dev/.magisk/su(或直接 su)以获得 root shell。
export PATH=$PATH:$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin
$ make
# 首次构建
$ LTO=thin ./build/build.sh
# 快速重新构建(跳过完整重建)
$ SKIP_MRPROPER=1 SKIP_DEFCONFIG=1 LTO=thin ./build/build.sh
参见此处