Cscript.exe

Binary used to execute scripts in Windows

Paths

  • C:\Windows\System32\cscript.exe
  • C:\Windows\SysWOW64\cscript.exe

Commands

ADS

Use cscript.exe to exectute a Visual Basic script stored in an Alternate Data Stream (ADS).

Use case: Can be used to evade defensive countermeasures or to hide as a persistence mechanism

Privileges: User

cscript //e:vbscript {PATH_ABSOLUTE}:script.vbs

Detection

Resources