Exploit databaseDownload repository ZIP
GH-9f62ea386d3fc6fd9e32d41c58258fbf
quyicheng03-boop/cve-2026-98260-nezha-android
Sources for CVE-2026-98260
60 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files15
quyicheng03-boop/cve-2026-98260-nezha-androidRevision 17368b19921e
- bin/
- docs/
- src/
- third_party/
- .gitattributes
- .gitignore
- LICENSE
- README.md
- THIRD_PARTY_NOTICES.md
- build.ps1
- run_98260.ps1
- select_device.ps1
- watch_98260_logs.ps1
- 开始小米17U临时ROOT.bat
- 查看小米17U日志.bat
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
select_device.ps1
PowerShell · 1,318 bytesfunction Get-ReadyAdbSerials([string]$DeviceList) {
$ready = @()
foreach ($line in ($DeviceList -split "`r?`n")) {
if ($line -match '^([^\s]+)\s+device(?:\s|$)') {
$ready += $matches[1]
}
}
return @($ready | Select-Object -Unique)
}
function Select-AdbSerial([string]$DeviceList, [string]$RequestedSerial) {
$ready = @(Get-ReadyAdbSerials $DeviceList)
if ($RequestedSerial) {
if ($RequestedSerial -notin $ready) {
throw "Requested ADB device '$RequestedSerial' is not authorized and connected. Available: $($ready -join ', ')"
}
return $RequestedSerial
}
if ($ready.Count -eq 0) { throw 'No authorized ADB device connected.' }
if ($ready.Count -gt 1) {
throw "Multiple authorized ADB devices connected: $($ready -join ', '). Specify -Serial."
}
return $ready[0]
}
function Resolve-AdbSerial([string]$AdbPath, [string]$RequestedSerial) {
$savedPreference = $ErrorActionPreference
$ErrorActionPreference = 'Continue'
try {
$listing = & $AdbPath devices -l 2>&1 | Out-String
$code = $LASTEXITCODE
} finally { $ErrorActionPreference = $savedPreference }
if ($code -ne 0) { throw "adb devices failed: $listing" }
return Select-AdbSerial $listing $RequestedSerial
}