
Compiles and obfuscates .NET and PowerShell payloads for the Empire and Covenant C2 frameworks, with configurable build profiles for red-team operations.
The Empire Compiler started as the compiler of the Covenant project. It has since evolved to be an integral part of the Empire framework, aiding in the dynamic compilation and obfuscation of payloads.
git submodule update --init --recursive
dotnet build
dotnet test
To run a specific test profile:
dotnet test --filter "profileName=CSharpPS"
Available profiles: CSharpPS, Seatbelt, Powershell-Old, Powershell-New
This project uses .editorconfig and .NET Analyzers to enforce code style and catch common issues.
To auto-fix formatting:
dotnet format
To check formatting without modifying files (used in CI):
dotnet format --verify-no-changes
Join us in our Discord with any comments, questions, concerns, or problems!