Exploit databaseDownload repository ZIP
GH-7d1759469adaacd6cb6ef41c6fb3d109
repobor/ghostlock-cve-2026-43499-4.19-thyme
Sources for CVE-2026-43499
165 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files12
repobor/ghostlock-cve-2026-43499-4.19-thymeRevision 5273f9c145d1
- ↑..Parent directory
- _device.ps1
- build.ps1
- gl12.c
- gl12.exe
- grant_su.ps1
- grant_su.sh
- prep_magisk.ps1
- r.ps1
- rootsu.c
- rootsu.exe
- setup_magisk.sh
- setup_su.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
exploit/build.ps1
PowerShell · 1,969 bytes# Build gl12.c with the Android NDK and push it to the device.
# pwsh -File exploit\build.ps1 # compile + push
# pwsh -File exploit\build.ps1 -NoPush # compile only
# The target is the attached Xiaomi 10S (ro.product.device=thyme) unless -Device
# names one explicitly.
param(
[string]$Clang = 'E:\Android\sdk\ndk\23.0.7599858\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android29-clang.cmd',
[string]$Device,
[string]$Remote = '/data/local/tmp/gl12',
[switch]$NoPush
)
$ErrorActionPreference = 'Stop'
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$src = Join-Path $here 'gl12.c'
$out = Join-Path $here 'gl12.exe'
if (-not (Test-Path $Clang)) { throw "clang not found: $Clang" }
# -static is mandatory: the device's libdl is a stub, so a dynamic build cannot load.
& $Clang -O2 -static -o $out $src
if ($LASTEXITCODE -ne 0) { throw "compile failed with exit code $LASTEXITCODE" }
"built: $out ($([math]::Round((Get-Item $out).Length/1KB)) KB)"
if ($NoPush) { return }
if (-not $Device) {
. (Join-Path $here '_device.ps1')
$Device = Resolve-ThymeDevice
}
$state = "$(adb -s $Device get-state 2>&1)".Trim()
if ($state -ne 'device') { throw "device '$Device' not available (get-state returned: $state)" }
# Push under a temp name and rename on the device: overwriting the running binary
# in place has silently failed before (the file kept the old md5).
adb -s $Device push $out "$Remote.new" | Out-Null
adb -s $Device shell "mv $Remote.new $Remote; chmod 777 $Remote" | Out-Null
$localMd5 = (New-Object System.Security.Cryptography.MD5CryptoServiceProvider).ComputeHash([System.IO.File]::ReadAllBytes($out)) |
ForEach-Object { $_.ToString('x2') }
$localMd5 = -join $localMd5
$remoteMd5 = "$(adb -s $Device shell "md5sum $Remote" 2>&1)".Trim().Split(' ')[0]
if ($localMd5 -ne $remoteMd5) {
throw "md5 mismatch: local=$localMd5 remote=$remoteMd5"
}
"pushed: $Remote (md5 $remoteMd5)"