Examples/Vulnerable_ZipSlip_1.ps1
|
function Expand-ZipUnsafe { param($destinationDirectory, $entryName) $extractPath = [System.IO.Path]::Combine($destinationDirectory, $entryName) $entry = New-Object psobject $entry.ExtractToFile($extractPath, $true) } |