Skip to content
KitploitKITPLOIT
OutilsExploitsBlog
Log in
Soumettre
OutilsExploitsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

FluxContactConfidentialité© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
Fracture — Xperia 5II (SOG02/SO-52A), Xperia 1II (SOG01, SO-51A) CVE-2023-33107 + KernelSU late load | Kitploit
Outils/GitHubGitHub/miyoubi/fracture
Android SecurityPrivilege EscalationExploitationMobile App PentestingReverse EngineeringPost-ExploitationMobile SecurityPayload DevelopmentBinary Exploitation
GitHubmiyoubi/fracture

Fracture

Xperia 5II (SOG02/SO-52A), Xperia 1II (SOG01, SO-51A) CVE-2023-33107 + KernelSU late load

17 nov. 2026Pas encore vérifié
Partager
Voir le dépôt
Contenu non disponible dans la langue demandée. Affichage de la version anglaise.

CVE-2023-33107 Xperia root

Warning

I am not responsible for any damage to your device.

KGSL UAF temporary-root exploit for the Sony Xperia 1 II / 5 II family (SO-51A, SO51Aa, SO-52A, SOG01, SOG02 and XQ-AT42, XQ-AT51, XQ-AT52, XQ-AT72, XQ-AS42, XQ-AS52, XQ-AS62, XQ-AS72 global variants). It patches the process credentials, flips SELinux permissive through the forged thread.cpu_context switch-in, and can late-load a KernelSU LKM plus its userspace.

ProjectDeviceFirmwareKernel
sog02-58.2.C.3.127Sony Xperia 5 II (SOG02, KDDI)58.2.C.3.1274.19.157-perf+
so-51a-58.2.B.0.520Sony Xperia 1 II (SO-51A, SO51Aa)58.2.B.0.5204.19.157-perf+
so-52a-58.2.B.0.520Sony Xperia 5 II (SO-52A)58.2.B.0.5204.19.157-perf+
sog01-58.2.C.5.10Sony Xperia 1 II (SOG01, KDDI)58.2.C.5.104.19.157-perf+
xq-at42-58.2.A.10.102Xperia 1 II (XQ-AT42)58.2.A.10.1024.19.157-perf+
xq-at51-58.2.A.7.93Xperia 1 II (XQ-AT51)58.2.A.7.934.19.157-perf+
xq-at52-58.2.A.7.93Xperia 1 II (XQ-AT52)58.2.A.7.934.19.157-perf+
xq-at72-58.2.A.10.44AXperia 1 II (XQ-AT72)58.2.A.10.44A4.19.157-perf+
xq-as42-58.2.A.10.163Xperia 5 II (XQ-AS42)58.2.A.10.1634.19.157-perf+
xq-as52-58.2.A.10.126Xperia 5 II (XQ-AS52)58.2.A.10.1264.19.157-perf+
xq-as62-58.2.A.10.126Xperia 5 II (XQ-AS62)58.2.A.10.1264.19.157-perf+
xq-as72-58.2.A.10.126Xperia 5 II (XQ-AS72)58.2.A.10.1264.19.157-perf+

Documentation

  • docs/exploit.md — how the exploit works, end to end.
  • docs/troubleshooting.md — failure modes and tuning.
  • docs/primitive.md — primitive and SELinux notes.
  • docs/porting.md — profiles and deriving new offsets.
  • docs/kernelsu-late-load.md — the LKM and late-load.

Dependencies (Arch Linux)

Official repositories:

sudo pacman -S --needed base-devel git curl unzip bc bison flex pahole \
  android-tools python

vmlinux-to-elf is not in the official repositories; install it from the AUR:

paru -S vmlinux-to-elf

The NDK (android-ndk-r26d) and the kernel tree are fetched by ./build.sh --setup; no manual download is needed.

Building the Fracture app

The app build needs a JDK, Gradle, and the Android SDK (platform 35 and build-tools); the NDK comes from ./build.sh --setup.

sudo pacman -S --needed jdk-openjdk gradle
paru -S android-sdk          # AUR; or use Google's cmdline-tools
export ANDROID_HOME=/opt/android-sdk
sdkmanager "platforms;android-35" "build-tools;36.0.0"

Then build the unified loader and the app together:

./build.sh -p unified --app --push

Usage

  1. Build and push the exploit + LKM for your profile:

    ./build.sh -p <project> --push
    
  2. Install the backslashxx/KernelSU manager. It is the only supported manager; the LKM is built from this fork.

  3. Run the exploit:

    adb shell /data/local/tmp/kgsl_root_su
    

Custom paths

By default the helper uses ./kernel_sony_sm8250 and ./android-ndk-r26d. If your kernel source or NDK live elsewhere, point it at them:

./build.sh -p sog02-58.2.C.3.127 \
  --kernel-dir /home/exer/kernelsrc \
  --ndk /ndklocation

These flags override the defaults for the build; --setup still populates the default ./kernel_sony_sm8250 and ./android-ndk-r26d.

Build and run

The simplest path:

./build.sh                                 # list the available targets
./build.sh -p sog02-58.2.C.3.127           # build exploit + LKM (no push)
./build.sh -p sog02-58.2.C.3.127 --push    # build + push
./build.sh --detect --push --run           # connected device: push + run
./build.sh --setup                         # fetch the NDK and kernel if missing

Profiles include SOG02, SO-51A, SO51Aa, SO-52A, SOG01 and XQ-AT42, XQ-AT51, XQ-AT52, XQ-AT72, XQ-AS42, XQ-AS52, XQ-AS62, XQ-AS72 (1 II/5 II) variants. Pushing is opt-in with --push; the pushed files are verified by md5. --setup downloads android-ndk-r26d and clones kernel_sony_sm8250 when they are missing; --force --setup deletes and re-fetches both.

Manual equivalent:

make PROJECT=sog02-58.2.C.3.127 NDK_ROOT="$NDK"
tools/build_kernelsu_lkm.sh

adb push build/sog02-58.2.C.3.127/kgsl_root_su /data/local/tmp/kgsl_root_su
adb push build/sog02-58.2.C.3.127/kernelsu.ko /data/local/tmp/kernelsu.ko

adb shell 'chmod 755 /data/local/tmp/kgsl_root_su; \
  /data/local/tmp/kgsl_root_su'
adb shell 'getenforce'                                 # permissive at startup; KSU may enforce
adb shell 'cat /proc/modules | grep kernelsu'          # kernelsu ... Live

A plain run loads /data/local/tmp/kernelsu.ko and runs /data/adb/ksud late-load from the root child. INJECT_KO=0 and/or LATE_LOAD=0 disable either half. POLICY_FIX=1 forces the exploit's own SELinux policy reload while the late-load is enabled (normally skipped; see the crash note below).

Root comes from the KernelSU userspace (manager / ksud su); the exploit does not ship its own su client or daemon.

How it works

  • KGSL race. kgsl_map_user_mem runs on a second CPU and races the overlap mmap. The exploit measures the ioctl duration, sweeps the mmap delay over 0..that duration, and time-bounds the retry loop. The freed object's pages are reclaimed by spraying children (/proc/meminfo-derived sizes).
  • Credentials. A child task_struct/cred is located through the reclaimed GPU mapping and patched to uid/gid 0 with full capability sets; the root child verifies via /proc/<pid>/status.
  • Permissive. The raw thread.cpu_context switch-in leaks KASLR (__switch_to continuation), stores 0x01000000 into selinux_state (enforcing=0), and replays the __switch_to epilogue. The root child then writes /sys/fs/selinux/enforce so init and the property service refresh their cached AVC state.
  • KernelSU. src/ko_loader.c resolves the module's undefined symbols from /proc/kallsyms, patches the symtab entries to SHN_ABS, and calls init_module from the full-capability root child. The root child then runs ksud late-load, which installs the userspace and initializes the manager side.

The manager's driver-fd handshake and detection belong to the KernelSU userspace; the exploit does not restart or relaunch it.

SELinux / permissive failures

Permissive is only needed for the exploit startup. The forged-context store writes selinux_state.enforcing = 0, and the root child writes /sys/fs/selinux/enforce so init picks it up; the module load (init_module) would be denied by the shell domain while enforcing, so this happens before INJECT_KO.

KernelSU's LKM init then re-enables enforcing by design (ksu.c: if (!!getenforce()) return; pr_info("Permissive SELinux, enforcing"); setenforce(true);). The exploit leaves that decision to KernelSU, so getenforce may report Enforcing after a late-load run — that is expected, not a failure. A second selinuxfs write would be denied by the security:security setenforce check for the shell domain, so it is not attempted.

The startup permissive fails only when the forged-context hijack did not arm (permissive hijack not armed, implausible KASLR/context, or a GPU write failure). The raw store never happens then, and the selinuxfs write is denied; the exploit prints the reason.

Known failure modes

Télécharger l’outil

Outils similaires

  • Mobile-Security-Framework-MobSF

    Framework de test de sécurité automatisé pour applications mobiles Android, iOS et Windows. Effectue une analyse statique et dynamique, une détection de malwares et des tests de sécurité des API avec intégration CI/CD.

  • jadx

    Outil en ligne de commande et avec interface graphique pour décompiler les fichiers Android Dex et APK en code source Java lisible, avec décodage des ressources, désambiguïsation, et capacités de débogage Smali.

  • Apktool

    Un outil de rétro-ingénierie pour les fichiers APK Android

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    # Application d'exécution en un clic GhostLock (CVE-2026-43499)

    745
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    Plateforme IMSI Catcher qui déploie une cellule GSM frauduleuse pour intercepter les SMS, injecter des messages et suivre les appareils mobiles

    732
  • 3

    Callisto

    jetp1ane/callisto

    Outil automatisé d'analyse de vulnérabilités binaires qui décompile des exécutables via Ghidra, analyse du pseudo-code C avec Semgrep, et valide les résultats en utilisant GPT-3.5-Turbo pour réduire les faux positifs.

    610
  • 4

    opencti

    opencti-platform/opencti

    Plateforme ouverte de renseignement sur les cybermenaces

    546
  • 5

    ARTEX

    baarai/artex

    Plateforme autonome de tests d'intrusion multi-agents basée sur des LLM, avec agents planificateur/ouvrier, graphes d'actifs et d'exploration, enregistrement du trafic MITM et retest des vulnérabilités.

    414
  • 6

    DFRoot

    a2333c/dfroot

    Outil de root Android pour Samsung Galaxy S25 Ultra (SM-S938B) qui enchaîne DirtyFrag CVE-2026-43284 et CVE-2026-43499 pour obtenir le root automatiquement au démarrage via KernelSU.

    413

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →