Challenges
Encoded PowerShell
Reverse engineering
Easy
Statically decoding PowerShell -EncodedCommand
Solves: 4
Encoded PowerShell
Author: CyberSamSU
Points
20
dropper.txt was taken from a mail gateway quarantine: powershell -nop -w hidden -EncodedCommand .... This text is a PowerShell script in UTF-16LE + base64 form. The script itself was written to be harmless for this exercise (it downloads nothing), but the basic rule stands: never run it — only decode it statically.
The script assembles the $k key from fragments: the -f format operator, [char] arithmetic (-bxor, subtraction), a reversed string and -join. $k — the flag is BAYROQ{...} (the last 16 characters are lowercase hex).
Attached files
dropper.txt
Log in to download
Theory: learn the topic
To submit a flag, log in.