Exploit database

GH-938716d7bb21279aed0a36a8553e75d3

wangs-official/opace6-cve-2026-64560

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-64560

18 sources

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

Repository files9
wangs-official/opace6-cve-2026-64560Revision 4558a3322bc6

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

scripts/build.ps1

PowerShell · 3,639 bytes
param(
    [string]$Profile = 'profiles\dada\os4.0.0.8.xoccnxm.json',
    [string]$NdkRoot = "$env:LOCALAPPDATA\Android\Sdk\ndk\29.0.14206865",
    [int]$Api = 35,
    [switch]$AllowDraft
)

$ErrorActionPreference = 'Stop'
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$RepoRoot = Split-Path -Parent $ScriptDir
$RepoPrefix = $RepoRoot.TrimEnd('\') + '\'
$Toolchain = Join-Path $NdkRoot 'toolchains\llvm\prebuilt\windows-x86_64\bin'
$Clang = Join-Path $Toolchain "aarch64-linux-android$Api-clang.cmd"
$Strip = Join-Path $Toolchain 'llvm-strip.exe'

function Resolve-RepositoryPath {
    param(
        [Parameter(Mandatory = $true)][string]$RelativePath,
        [switch]$MustExist
    )
    if ([IO.Path]::IsPathRooted($RelativePath)) {
        throw "Profile paths must be repository-relative: $RelativePath"
    }
    $fullPath = [IO.Path]::GetFullPath((Join-Path $RepoRoot $RelativePath))
    if (-not $fullPath.StartsWith($RepoPrefix, [StringComparison]::OrdinalIgnoreCase)) {
        throw "Profile path escapes the repository: $RelativePath"
    }
    if ($MustExist -and -not (Test-Path -LiteralPath $fullPath -PathType Leaf)) {
        throw "Profile source does not exist: $RelativePath"
    }
    return $fullPath
}

$profilePath = if ([IO.Path]::IsPathRooted($Profile)) {
    [IO.Path]::GetFullPath($Profile)
} else {
    [IO.Path]::GetFullPath((Join-Path $RepoRoot $Profile))
}
if (-not (Test-Path -LiteralPath $profilePath -PathType Leaf)) {
    throw "Profile not found: $profilePath"
}
$profileData = Get-Content -LiteralPath $profilePath -Raw | ConvertFrom-Json
if ($profileData.schemaVersion -ne 1) {
    throw "Unsupported profile schema: $($profileData.schemaVersion)"
}
$isVerified = $profileData.status -eq 'verified'
if (-not $isVerified -and -not $AllowDraft) {
    throw "Profile '$($profileData.id)' is not verified. Use -AllowDraft only for porting work."
}

if (-not (Test-Path -LiteralPath $Clang -PathType Leaf)) {
    throw "Android NDK clang not found: $Clang"
}
if (-not (Test-Path -LiteralPath $Strip -PathType Leaf)) {
    throw "Android NDK llvm-strip not found: $Strip"
}

$builds = @($profileData.artifacts.strategies) + @($profileData.artifacts.su)
if ($builds.Count -lt 2) { throw 'Profile contains no buildable strategy set.' }

foreach ($build in $builds) {
    if (-not $build.source -or -not $build.path) {
        throw "Profile artifact '$($build.name)' is missing source or output path."
    }
    $source = Resolve-RepositoryPath -RelativePath ([string]$build.source) -MustExist
    $output = Resolve-RepositoryPath -RelativePath ([string]$build.path)
    $outputDirectory = Split-Path -Parent $output
    New-Item -ItemType Directory -Path $outputDirectory -Force | Out-Null

    $flags = @('-std=gnu17', '-O2', '-fPIE', '-pie')
    if ($build.pthread) { $flags += '-pthread' }
    $flags += @('-Wall', '-Wextra', '-Werror', $source, '-o', $output)
    & $Clang @flags
    if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
    & $Strip $output
    if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

    $actual = (Get-FileHash -LiteralPath $output -Algorithm SHA256).Hash.ToLowerInvariant()
    $expected = [string]$build.sha256
    if ($isVerified -and -not $expected) {
        throw "Verified profile artifact has no pinned SHA-256: $($build.path)"
    }
    if ($expected -and $actual -ne $expected) {
        throw "Reproducibility check failed for $($build.path): $actual"
    }
    $verification = if ($expected) { 'pinned' } else { 'draft-unpinned' }
    Write-Host "BUILD_PASS profile=$($profileData.id) output=$($build.path) sha256=$actual verification=$verification"
}