> C compiler is installed
It's a great idea but that part is a big ask for any Windows user who doesn't develop desktop applications.
It's a great idea but that part is a big ask for any Windows user who doesn't develop desktop applications.
Edit: Good grief, there's even vbc.exe, which is a command line Visual Basic 2012 compiler. Also JSC.exe for Jscript, aspnet_compiler.exe for ASP and MSBuild. Kinda embarrassed that I didn't know this.
Also if we are talking exploit vectors, uuencode is great for people that let you have a clipboard. Get uudecode in c#, and paste in your arbitrary binaries and you’ll be in business In no time!
https://docs.microsoft.com/en-us/dotnet/api/system.codedom
If you look at the functionality provided there, it includes ability to compile generated code. This is implemented using those command-line compilers.