~/Privilege Escalation/Windows/Binaries# cat Csc.exe.md

Binary file used by .NET to compile C# code

Paths:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Csc.exe

Detection: Csc.exe should normally not run a system unless it is used for development.

Compile

Use CSC.EXE to compile C# code stored in File.cs and output the compiled version to My.exe.

csc.exe -out:My.exe File.cs

Use CSC.EXE to compile C# code stored in File.cs and output the compiled version to a dll file.

csc -target:library File.cs