Csc.exe

Binary file used by .NET Framework to compile C# code

Compile

Compile attacker code on system. Bypass defensive counter measures.

csc.exe -out:{PATH:.exe} {PATH:.cs}

Use csc.exe to compile C# code, targeting the .NET Framework, stored in the specified .cs file and output the compiled version to the specified .exe path. — MITRE: T1127 — Privileges: User

Compile attacker code on system. Bypass defensive counter measures.

csc -target:library {PATH:.cs}

Use csc.exe to compile C# code, targeting the .NET Framework, stored in the specified .cs file and output the compiled version to a DLL file with the same name. — MITRE: T1127 — Privileges: User