Skip to content

Instantly share code, notes, and snippets.

@out0xb2
out0xb2 / Split-AuthInfo2.ps1
Created Apr 16, 2021
Splitting a signed dbx (or other Auth variable *data) into content and signature blobs
View Split-AuthInfo2.ps1
$file = Get-Content -Encoding Byte $args[0]
$chop = $file[40..($file.Length - 1)]
if (($chop[0] -ne 0x30) -or ($chop[1] -ne 0x82 )) {
Write-Error "Cannot find signature"
exit 1
}
Write-Host "Found signature magic"
$sig_length = ($chop[2] * 256) + $chop[3] + 4 # ASN size plus header of 4 bytes
@out0xb2
out0xb2 / Check-Dbx.ps1
Last active Jun 14, 2022 — forked from mattifestation/UEFISecDatabaseParser.ps1
Parses signature data from the pk, kek, db, and dbx UEFI variables.
View Check-Dbx.ps1
Write-Host "Checking for Administrator permission..."
if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Write-Warning "Insufficient permissions to run this script. Open the PowerShell console as administrator and run this script again."
Break
} else {
Write-Host "Running as administrator — continuing execution..." -ForegroundColor Green
}
$patchfile = $args[0]
@out0xb2
out0xb2 / UefiSecureBootTests.md
Created Jun 2, 2020
Basic functional tests for UEFI Secure Boot, including Powershell examples of packet assembly
View UefiSecureBootTests.md

The old, but still applicable, UEFI Secure Boot functional tests from the Windows Logo Kit (WLK), now Hardware Lab Kit (HLK), along with testing instructions...

View keybase.md

Keybase proof

I hereby claim:

  • I am out0xb2 on github.
  • I am out0xb2 (https://keybase.io/out0xb2) on keybase.
  • I have a public key ASC5tROD63_brnqywF19OzNUytJPwfq2R-7D80QDkR_IJQo

To claim this, I am signing this object: