One Day Sec

How can I compile a single command or a source file with SharpGen?

To compile a single command, use `dotnet bin/Release/netcoreapp2.1/SharpGen.dll -f example.exe "Console.WriteLine(Mimikatz.LogonPasswords());"`. For a complete source file, use the `--source-file` parameter: `dotnet ... -f example.exe --source-file example.txt`. By default, SharpGen auto-generates a random class name for obfuscation, but you can specify a fixed name with `-c`. Note that Roslyn ensures each compilation produces a different hash. For more details, refer to the SharpGen Utilization Analysis.
SharpGencommand linesource fileRoslynclass namehash

Browse all Q&A →