YuKongA /ghostlock-app

GhostLock One-Tap Execution App (CVE-2026-43499)

★ 3,015⑂ 706👁 58⑃ 145● 591▤ 2
KotlinApache-2.0Created 2026-07-29
下载:GhostLock Pre-releasepre-release ↓pre-release2026-09-17
+19
日增长
+185
周增长
3,015
stars
706
forks
58
watchers
145
prs
591
issues
2
releases

README

GhostLock-App

中文

GhostLock uses CVE-2026-43499 to gain temporary root on supported Android kernels and load KernelSU.

 Use the app

1. Install a root manager APK from KernelSU, SukiSU Ultra, BakaSU/ReSukiSU, or KowSU.
2. Install the GhostLock APK and open it.
3. Check that your kernel is supported, then tap Run.

Support requires an exact uname -r match. Check the supported devices for your kernel build.

If Shizuku is enabled, start it with ADB before running GhostLock. Tap GhostLock's status card to grant access.

Any root manager that ships libksud.so provides ksud for module loading. The built-in list (KernelSU, SukiSU Ultra, ReSukiSU, BakaSU, KowSU) is auto-detected, and other managers can be picked in Settings → Root manager. Without ksud, W1/W2 still grant uid 0 but no module is loaded.

 Add a kernel profile

You can import a profile without rebuilding the app:

- Parse OTA link accepts a full OTA ZIP URL.
- Parse local image accepts boot.img and an optional xbl_config.img.
- Import offsets.conf (v2) accepts a HOCON profile. Import offsets.json (v1) converts an older JSON report in the app.

Extractor output is an unverified candidate. The app checks missing or invalid fields before execution. Generating a profile does not prove device support. See the porting guide for validation and built-in registration.

See the MediaTek guide for image-based address recovery and the rooted-device fallback.

 Command-line tools


Run the native binary with an exported profile

Requires the Android NDK, make, Gradle, and ADB. An adb shell run skips the app's seccomp bypass stage.

sh
make -C src ghostlock
./gradlew exportKernelProfiles
adb push build/native/ghostlock /data/local/tmp/ghostlock
adb push "build/kernel-profiles/.bin" /data/local/tmp/profile.bin
adb shell chmod 755 /data/local/tmp/ghostlock
adb shell /data/local/tmp/ghostlock --load-prebuilt-profile /data/local/tmp/profile.bin





Build and run the offset extractor

Requires Rust. The extractor accepts a boot image, a full OTA ZIP, or an HTTP(S) URL.

sh
(cd tools/extract_rs && cargo build --release)
build/extract/release/ghostlock-extract boot.img --xbl-config xbl_config.img --format conf --out profile.conf
build/extract/release/ghostlock-extract OTA.zip --format conf --out profile.conf


Import profile.conf in the app. Omit --xbl-config if you do not have that image. The extractor rejects a patched remove_waiter() with exit code 6.



 Reference

- Profile schema and execution defaults
- Native core
- Add a component, engineering rules, and writing rules

 Credits and license

Licensed under Apache License 2.0. Based on:

- NebuSec/CyberMeowfia
- JoinChang/ghostlock-oneplus
- x-spy/CVE-2026-43499-popsicle

Top issues

Discussions

Latest release

GhostLock Pre-release pre-release Pre-release 2026-09-17
GhostLock Pre-release

- Version: v1.2 (593)
- Commit: 5f6d604c

 Commit Message

profiles: add 6.1.138-android14-11-g7b9e94e37cfa-mi (Xiaomi Pad 7 Pro) (857)

Full-OTA derived profile for muyu (Xiaomi Pad 7 Pro) running HyperOS
OS3.0.302.0.WOYCNXM (Android 16).

- geometry from boot.img + xbl_config.img, extracted out of payload.bin
  with tools/extract_rs
- route: tcp_zerocopy (compact_waiter = 1), fallback none
- kernel_phys_load 0xa8000000, kernel_phys_offset 0x80000000 (the
  xbl_config memory map's NOMAP / DRAM base, not 0)
- verified on device: W1/W2 reach uid 0, ksud late-loads the Ker

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON