Created
June 12, 2019 09:58
-
-
Save luca-m/51d8e9b08cfe7b339ca39729f3612a27 to your computer and use it in GitHub Desktop.
Powershell Tips for Malware Analysits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Powershell Tips for Malware Analysits | |
## | |
# In-Memory base64 payload decoding | |
$BASE64='AAA'; | |
sal a New-Object; | |
(a IO.StreamReader((a IO.Compression.DeflateStream([IO.MemoryStream][Convert]::FromBase64String($BASE64),[IO.Compression.CompressionMode]::Decompress)),[Text.Encoding]::ASCII)).ReadToEnd() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment