Exploit databaseDownload repository ZIP
GH-f4ca63c4c64d1fb20c96a74396b4cb9f
addxemmm/cve-2026-98260-pudding-android
Sources for CVE-2026-98260
61 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files11
addxemmm/cve-2026-98260-pudding-androidRevision 6f3cf242c409
- bin/
- docs/
- src/
- .gitattributes
- .gitignore
- README.md
- build.ps1
- run_98260.ps1
- select_device.ps1
- 开始98260临时ROOT.bat
- 查看当前98260日志.bat
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
build.ps1
PowerShell · 1,882 bytesparam(
[string]$NdkHome = $env:ANDROID_NDK_HOME,
[int]$ApiLevel = 34,
[switch]$VerifyReference
)
$ErrorActionPreference = 'Stop'
$root = Split-Path -Parent $MyInvocation.MyCommand.Path
if (-not $NdkHome) {
$NdkHome = Join-Path $env:LOCALAPPDATA 'Android\Sdk\ndk\26.3.11579264'
}
$clang = Join-Path $NdkHome "toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android$ApiLevel-clang.cmd"
if (-not (Test-Path -LiteralPath $clang)) {
throw "AArch64 clang not found: $clang (install an NDK or pass -NdkHome/-ApiLevel)"
}
$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'; 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 pudding build.' }