Exploit database

GH-9f62ea386d3fc6fd9e32d41c58258fbf

quyicheng03-boop/cve-2026-98260-nezha-android

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-98260

60 sources

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

Repository files15

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

select_device.ps1

PowerShell · 1,318 bytes
function 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
}