Exploit databaseDownload repository ZIP
GH-00a2781aa7745a1ae991553a9e9498d6
000999888111/op13-cve-2026-64560
Sources for CVE-2026-64560
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files8
000999888111/op13-cve-2026-64560Revision 88513e448e7a
- ↑..Parent directory
- boot-campaign.sh
- build.ps1
- checksums.ps1
- measure-loop.sh
- measure-race.sh
- new-target.ps1
- probe-device.ps1
- root.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
scripts/new-target.ps1
PowerShell · 4,020 bytesparam(
[Parameter(Mandatory = $true)]
[ValidatePattern('^[a-z0-9][a-z0-9._-]*$')]
[string]$Target,
[string]$Serial = '',
[string]$BootImage = '',
[string]$DecodedImage = '',
[string]$Output = '',
[switch]$Force
)
$ErrorActionPreference = 'Stop'
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$RepoRoot = Split-Path -Parent $ScriptDir
$ProbeScript = Join-Path $ScriptDir 'probe-device.ps1'
$probeJson = if ($Serial) {
& $ProbeScript -Serial $Serial | Out-String
} else {
& $ProbeScript | Out-String
}
$probe = $probeJson | ConvertFrom-Json
if (-not $probe.fingerprint) { throw 'The device did not return a build fingerprint.' }
$fingerprintBytes = [Text.Encoding]::UTF8.GetBytes([string]$probe.fingerprint)
$fingerprintHash = [Security.Cryptography.SHA256]::Create().ComputeHash($fingerprintBytes)
$fingerprintId = -join ($fingerprintHash[0..5] | ForEach-Object { $_.ToString('x2') })
$relativeOutput = "profiles\$Target\$fingerprintId.json"
$output = if ($Output) {
[IO.Path]::GetFullPath($Output)
} else {
Join-Path $RepoRoot $relativeOutput
}
if ((Test-Path -LiteralPath $output) -and -not $Force) {
throw "Profile already exists: $output (use -Force to replace it)"
}
function Get-OptionalHash {
param([string]$Path)
if (-not $Path) { return $null }
$resolved = Resolve-Path -LiteralPath $Path -ErrorAction Stop
return (Get-FileHash -LiteralPath $resolved -Algorithm SHA256).Hash.ToLowerInvariant()
}
$bootHash = Get-OptionalHash $BootImage
$imageHash = Get-OptionalHash $DecodedImage
$profile = [ordered]@{
schemaVersion = 1
id = "$Target-$fingerprintId"
status = 'draft'
device = [ordered]@{
manufacturer = $probe.manufacturer
model = $probe.model
codename = $probe.codename
fingerprint = $probe.fingerprint
kernelRelease = $probe.kernelRelease
pageSize = $probe.pageSize
onlineCpus = $probe.onlineCpus
cpuOnline = $probe.cpuOnline
uhid = $probe.uhid
}
images = [ordered]@{
stockBootSha256 = $bootHash
decodedImageSha256 = $imageHash
}
derivation = [ordered]@{
decodedImage = if ($DecodedImage) { [IO.Path]::GetFileName($DecodedImage) } else { $null }
profileFacts = $null
}
runner = [ordered]@{
maxCpuMilliC = 55000
maxBoots = 12
attemptTimeoutSeconds = 150
}
artifacts = [ordered]@{
su = [ordered]@{
source = 'src/temp-su.c'
path = "build/$Target/su"
sha256 = $null
pthread = $false
}
strategies = @(
[ordered]@{
name = 'fanout'
source = $null
path = "build/$Target/cve-2026-64560-fanout"
sha256 = $null
pthread = $true
},
[ordered]@{
name = 'rotate'
source = $null
path = "build/$Target/cve-2026-64560-rotate"
sha256 = $null
pthread = $true
}
)
}
validation = [ordered]@{
staticOffsetsReviewed = $false
preflightPassed = $false
fullChainPassed = $false
freshShellRootPassed = $false
}
}
$parent = Split-Path -Parent $output
New-Item -ItemType Directory -Path $parent -Force | Out-Null
$json = $profile | ConvertTo-Json -Depth 10
[IO.File]::WriteAllText($output, $json + [Environment]::NewLine,
[Text.UTF8Encoding]::new($false))
$displayPath = if ($Output) { $output } else { $relativeOutput }
Write-Host "PROFILE_CREATED path=$displayPath status=draft"
if (-not $DecodedImage) {
Write-Host 'NEXT provide -DecodedImage, then run tools/derive_profile.py on the exact raw Image.'
} else {
Write-Host "IMAGE_REGISTERED sha256=$imageHash"
Write-Host "NEXT python tools/derive_profile.py --json `"$DecodedImage`""
}
Write-Host 'BLOCKED_FOR_SAFETY complete docs/PORTING.md before setting status=verified.'