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

Playing with Smartpy Smart Contracts: Part 1

✨ 𝐀𝐁𝐂𝐬 𝐨𝐟 𝐂𝐫𝐲𝐩𝐭𝐨𝐜𝐮𝐫𝐫𝐞𝐧𝐜𝐲 ✨ VSTMEX

Our first hackathon: A behind the scenes story of how we did it

Mastico, the new gem by Lean Panda!

Build your first Minecraft plugin in JavaScript and TypeScript

How I built a version control system (VCS) using pure Go 🚀

Snowflake launched on DevNet

322 — Coin Change

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

ROracle installation on Linux

10 Things I wish I know in the early stage of my programming career

Compilation in C with GCC command (LINUX)

What is init( ) method?