GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tiann/DirtyPipe-Android at 0352782615e5c4cc64699cdd67df6c2659a002ad

BranchesTags
Open more actions menu

Latest commit

 

History

51 Commits
51 Commits

Folders and files

NameName
Last commit message
Last commit date
magisk
magisk
 
 
mymod
mymod
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
TECHNICAL-DETAILS.md
TECHNICAL-DETAILS.md
 
 
build.sh
build.sh
 
 
dirtypipe-android.c
dirtypipe-android.c
 
 
elf-parser.c
elf-parser.c
 
 
env-patcher.c
env-patcher.c
 
 
include.inc
include.inc
 
 
modprobe-payload.c
modprobe-payload.c
 
 
mymod-permissive.ko
mymod-permissive.ko
 
 
mymod.ko
mymod.ko
 
 
release.sh
release.sh
 
 
run.bat
run.bat
 
 
run.sh
run.sh
 
 
screenshot1.png
screenshot1.png
 
 
stage1.S
stage1.S
 
 
stage2-c.c
stage2-c.c
 
 
stage2-payload-include.S
stage2-payload-include.S
 
 
stage2.S
stage2.S
 
 
stage2.lds
stage2.lds
 
 
startup-root
startup-root
 
 

Repository files navigation

DirtyPipe for Android

Dirty Pipe (CVE-2022-0847) temporary root PoC for Android.

Targets

Currently only run on Pixel 6 with security patch level from 2022-02-05 to 2022-04-05. Don't use on other devices or other versions. It must crash (reboot).

Dirty Pipe is finally patched on 2022 May security update on Pixel 6.

There is a port to Realme GT2 Pro by @rapperskull (polygraphene#12). link

Certain version of Galaxy S22 is also vulnerable. But not ported yet. (polygraphene#3)

WARNING

There is possiblity to brick your phone by using this tool. Use it at your own risk. Especially, don't update/install magisk from magisk app. It will cause permanent brick.

How to use

  1. Download binary from release page.
  2. Setup adb (android platform tools).
  3. Launch run.bat (For Windows) or run.sh (For Linux/Mac)
    • If you get 'adb' is not recognized ... errors, check to add adb to PATH.
  4. Wait several seconds (~30s) until Magisk app is automatically installed.
  5. Run adb shell then /dev/.magisk/su (Or simply su) to get root shell.

Screenshot

About Magisk

  1. Don't use install button on magisk app. It will brick your phone.
  2. Don't reboot even if magisk app request. It will lose temporary root.
  3. Only support root access. No magisk/zygisk modules support.

How to build

  1. Install Android NDK
  2. Set PATH for aarch64-linux-android31-clang
export PATH=$PATH:$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin
  1. Run make
$ make

How to build kernel module

  1. Download Pixel 6 kernel source. Link
  2. Put mymod directory on kernel/private/google-modules/
  3. Apply mymod/build-script-patch.patch to kernel/private/gs-google
  4. Run build script
# For the first build
$ LTO=thin ./build/build.sh
# For faster rebuild (skip full rebuild)
$ SKIP_MRPROPER=1 SKIP_DEFCONFIG=1 LTO=thin ./build/build.sh

Technical details

See here

Future work

  • Stop using insecure telnet
  • Make apk
  • Install Magisk
  • Add device support

Credits

  • https://dirtypipe.cm4all.com/
  • https://github.com/topjohnwu/Magisk
  • https://github.com/j4nn/CVE-2020-0041/blob/v50g8-mroot/scripts/magisk-start.sh

About

Dirty Pipe root exploit for Android (Pixel 6)

Resources

Readme
Activity

Stars

25 stars

Watchers

1 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.