This directory contains build and helper scripts for WinPE based attack strategies.
The shell scripts are executed within an Alpine Linux container started
from the top-level Makefile when invoking make winpe:
download-winpe.shdownloads a Windows 11 ISO and extracts the WinPE image and ramdiskbuild-search-vmk.shbuilds the genericsearch-vmkutility for Windowsbuild-dislocker-metadata.shbuilds the minimal Windows port of disklocker-metadata to recover the human readable BitLocker recovery password given the VMK
The [Customize-WinPE.ps1 PowerShell] script is intended to create a customized
WinPE environment with BitLocker support by automating the steps outlined in the
official Microsoft documentation.
It requires that the Windows ADK
(adksetup.exe) as well as the Windows PE add-on for the Windows ADK
(adkwinpesetup.exe) have already been installed.
Assuming default installation location of these, a customized WinPE environment with all required components for BitLocker support can be built with:
PS C:\> Customize-WinPE -WinPEMountPoint "C:\winpe-bitlocker"
The above procedure updated the default winpe.wim image from the ADK, based on
which the necessary files can be extracted:
- Start elevated instance of Deployment and Imaging Tools Environment
- Create WinPE environment
copype amd64 c:\winpe-bitpixie - Copy the required files to the
Bootdirectory of your TFTP server:C:\winpe-bitpixie\media\boot\boot.sdi- `C:\winpe-bitpixie\media\sources\boot.wim