Jsc.exe

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

Paths

  • C:\Windows\Microsoft.NET\Framework\v4.0.30319\Jsc.exe
  • C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Jsc.exe
  • C:\Windows\Microsoft.NET\Framework\v2.0.50727\Jsc.exe
  • C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Jsc.exe

Commands

Compile

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

Use case: Compile attacker code on system. Bypass defensive counter measures.

Privileges: User

jsc.exe {PATH:.js}

Compile

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

Use case: Compile attacker code on system. Bypass defensive counter measures.

Privileges: User

jsc.exe /t:library {PATH:.js}

Detection

Resources