Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $Base64 = "<Base64 code>"
- $zip_file = "$env:temp\package.zip"
- $Content = [System.Convert]::FromBase64String($Base64)
- Set-Content -Path $zip_file -Value $Content -Encoding Byte
- $shell = new-object -com shell.application
- $zip = $shell.NameSpace($zip_file)
- foreach($item in $zip.items())
- {
- $shell.Namespace($env:temp).copyhere($item,0x14)
- }
- Remove-Item $zip_file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement