How can I reduce the generated executable size and apply protection with SharpGen?
Edit `SharpGen/References/references.yml` and `SharpGen/Resources/resources.yml` to disable unnecessary DLL references and Mimikatz resources (e.g., unused `powerkatz_x86.dll`). To further protect the output, use ConfuserEx by passing a configuration file via `--confuse confuse.cr`, which encrypts and compresses resources with LZMA. This obfuscation helps evade static analysis – a technique also explored in AntiVirus Evasion Tool (avet) Testing and Analysis.
SharpGenfile size reductionConfuserExresource protectionLZMAobfuscation