Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

164 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files147
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

workspace/watch_recover.ps1

PowerShell · 1,760 bytes
$adb='D:\project\ow\platform-tools\adb.exe'
$fb='D:\project\ow\platform-tools\fastboot.exe'
$ErrorActionPreference='Continue'
Write-Output ("[{0}] waiting for any device..." -f (Get-Date -Format HH:mm:ss))
# wait until adb sees a device (fastboot reboot or long-press into system)
$booted=$false
$deadline=(Get-Date).AddHours(2)
while((Get-Date) -lt $deadline){
  $state=(& $adb get-state 2>&1 | Out-String)
  if($state.Trim() -eq 'device'){ break }
  # opportunistic: if fastboot link revives, reboot it
  $fd=(& $fb devices 2>$null)
  if($fd){
    $o=(& $fb getvar product 2>&1|Out-String)
    if($o -match 'OWW251'){ & $fb reboot 2>&1 | Out-Null }
  }
  Start-Sleep 3
}
Write-Output ("[{0}] adb device present, waiting boot_completed..." -f (Get-Date -Format HH:mm:ss))
for($i=0;$i -lt 60;$i++){
  $b=(& $adb shell getprop sys.boot_completed 2>$null)
  if($b -match '1'){ $booted=$true; break }
  Start-Sleep 5
}
if(-not $booted){ Write-Output 'boot timeout'; exit 1 }
Start-Sleep 10
Write-Output ("[{0}] system up, pushing tools" -f (Get-Date -Format HH:mm:ss))
& $adb push D:\project\ow\ghostlock-cve-2026-43499\exploit\probe_leak /data/local/tmp/probe_leak
& $adb push D:\project\ow\post_recovery.sh /data/local/tmp/post_recovery.sh
& $adb shell chmod 755 /data/local/tmp/probe_leak
& $adb shell sh /data/local/tmp/post_recovery.sh
& $adb pull /data/local/tmp/postrec.log D:\project\ow\postrec.log
Write-Output ("[{0}] postrec done" -f (Get-Date -Format HH:mm:ss))
# auto-pull any OTA zip found
$zips=(& $adb shell 'find /data/oppo_unencrypted -maxdepth 3 -name "*.zip" 2>/dev/null')
foreach($z in ($zips -split "`n")){
  $z=$z.Trim()
  if($z -match '\.zip$'){
    Write-Output "pulling $z"
    & $adb pull "$z" D:\project\ow\
  }
}
Write-Output ALLDONE