.. /Jsc.exe
Star

Compile (JScript)

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

Paths:

Resources:

Acknowledgements:

Detections:

Compile

  1. Use jsc.exe to compile JavaScript code stored in the provided .JS file and generate a .EXE file with the same name.

    jsc.exe {PATH:.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: JScript
  2. Use jsc.exe to compile JavaScript code stored in the .JS file and generate a DLL file with the same name.

    jsc.exe /t:library {PATH:.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: JScript