.. /Jsc.exe
Star

Compile (WSH)

Binary file used by .NET to compile JavaScript code to .exe or .dll format


Paths:

Resources:
Acknowledgements:

Detection:

Compile

  1. Use jsc.exe to compile JavaScript code stored in scriptfile.js and output scriptfile.exe.

    jsc.exe scriptfile.js
    Use case
    Compile attacker code on system. Bypass defensive counter measures.
    Privileges required
    User
    Operating systems
    Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1127
    Tags
    Execute: WSH
    This LOLBAS executes scripts in Windows Script Host (WSH) languages, such as VBScript and JScript.
  2. Use jsc.exe to compile JavaScript code stored in Library.js and output Library.dll.

    jsc.exe /t:library Library.js
    Use case
    Compile attacker code on system. Bypass defensive counter measures.
    Privileges required
    User
    Operating systems
    Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
    ATT&CK® technique
    T1127
    Tags
    Execute: WSH
    This LOLBAS executes scripts in Windows Script Host (WSH) languages, such as VBScript and JScript.