PowerShell Script: Decode Base64 String

Base64 Encoding Explained with Examples | OpenTechTips
Decoding Malicious PowerShell Activity — A Case Study — Blog — Sophos Labs — Sophos Community
  • Using Bash (CLI) on macOS / Linux
  • Using PowerShell (CLI) on Windows
  • Using Bash (CLI) on macOS / Linux
  • Using PowerShell (CLI) on Windows
  • Using CyberChef
ScriptBlockText: $s=New-Object IO.MemoryStream(,[Convert]::FromBase64String(“H4sIA….==”);IEX (New-Object IO.StreamReader(New-Object IO.Compression.GzipStream($s,[IO.Compression.CompressionMode]::Decompress))).ReadToEnd();

--

--

--

A food lover, a cyber security enthusiast, a musician and a traveller, so you will see a mix of different contents in my blog. ☺️

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

VulnHub — FristiLeaks 1.3

Introducing Hammer 1.5 — Forge

QA testing for microservices

Image of a man running into a wall of ice

this is testingtitle https://t.co/5sgwSOw885

Get the Thingspeak graphs on Blackkeyhole mobile app

Humans, Software, and Business — Issue #2

P 1 vc date stories of women investors dealing with sexism

Reading Temperature and Humidity with Raspberry Pi

#freestockphoto (Friday 20th 08AM)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
goay xuan hui

goay xuan hui

A food lover, a cyber security enthusiast, a musician and a traveller, so you will see a mix of different contents in my blog. ☺️

More from Medium

Part 6. Logger + Environment variables

How To Fix Python Error EOL While Scanning?

Wordpress and SQL pod on the top of K8S using ansible.