Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

170 sources

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

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

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

workspace/qemu/device_watch.ps1

PowerShell · 1,460 bytes
param([int]$interval=10,[int]$badThreshold=6)
# Unattended device watchdog: alerts via Feishu when the watch leaves the
# adb "device" state for ~1 minute; sends a recovery notice when it returns.
$adb = "D:\project\ow\platform-tools\adb.exe"
$notify = "D:\project\ow\qemu\notify.ps1"
function Notify($m){ & powershell -NoProfile -ExecutionPolicy Bypass -File $notify -msg $m | Out-Null }
$bad=0; $alerted=$false
while($true){
  $d = (& $adb devices 2>$null | Out-String)
  if($d -match "unauthorized"){ $st="unauthorized" }
  elseif($d -match "(?m)^\S+\s+device\s*$"){ $st="device" }
  elseif($d -match "offline"){ $st="offline" }
  else { $st="absent" }
  if($st -eq "device"){
    if($alerted){ Notify "设备已重新上线(adb device),自动继续。"; $alerted=$false }
    $bad=0
  } else {
    $bad++
    if($bad -eq $badThreshold -and -not $alerted){
      $mins=[math]::Round($interval*$badThreshold/60)
      if($st -eq "unauthorized"){ $act="请在手表屏幕上重新允许 USB 调试授权(点'允许',或重插 USB)" }
      elseif($st -eq "absent"){ $act="请检查/重插 USB,必要时长按上键 12-15 秒开机" }
      else { $act="adbd 可能卡死,请重插 USB,或长按上键 12-15 秒重启手表" }
      Notify "设备已 $st 约 $mins 分钟,需要你物理操作:$act。处理好后我会自动检测到上线并继续,无需回复。"
      $alerted=$true
    }
  }
  Start-Sleep -Seconds $interval
}