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.

build.ps1

Suggested starting filePowerShell · 1,831 bytes
param(
    [string]$NdkHome = $env:ANDROID_NDK_HOME,
    [switch]$VerifyReference
)

$ErrorActionPreference = 'Stop'
$root = Split-Path -Parent $MyInvocation.MyCommand.Path
if (-not $NdkHome) {
    $NdkHome = Join-Path $env:LOCALAPPDATA 'Android\Sdk\ndk\28.2.13676358'
}
$clang = Join-Path $NdkHome 'toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android35-clang.cmd'
if (-not (Test-Path -LiteralPath $clang)) {
    throw "Android NDK r28.2 AArch64 clang not found: $clang"
}

$output = Join-Path $root 'build\bin'
New-Item -ItemType Directory -Force -Path $output | Out-Null
$targets = @(
    @{ Name = 'exploit-android-perf'; Sources = @('exploit-android-perf.c') },
    @{ Name = 'exploit-android-perf-chain'; Sources = @('exploit-android-perf-chain.c') },
    @{ Name = 'exploit-android-key-ptr'; Sources = @('exploit-android-key-ptr.c', 'pc98260_rootd.c') },
    @{ Name = 'pc98260-su-client'; Sources = @('pc98260_su.c') }
)

foreach ($target in $targets) {
    $inputs = @($target.Sources | ForEach-Object { Join-Path $root "src\$_" })
    $binary = Join-Path $output $target.Name
    & $clang -std=gnu11 -O2 -pthread @inputs -o $binary
    if ($LASTEXITCODE -ne 0) { throw "Build failed: $($target.Name)" }
    $hash = (Get-FileHash -LiteralPath $binary -Algorithm SHA256).Hash.ToLowerInvariant()
    Write-Host "$hash  $($target.Name)"
    if ($VerifyReference) {
        $reference = Join-Path $root "bin\$($target.Name)"
        if (-not (Test-Path -LiteralPath $reference)) { throw "Missing reference binary: $reference" }
        $expected = (Get-FileHash -LiteralPath $reference -Algorithm SHA256).Hash.ToLowerInvariant()
        if ($hash -ne $expected) { throw "Reference hash mismatch: $($target.Name)" }
    }
}
if ($VerifyReference) { Write-Host 'All four binaries match the included target build.' }