Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
xeca — PowerShell payload generator | Kitploit
Tools/GitHubGitHub/postrequest/xeca
Payload GenerationExploitationShellcodeCTFPenetration TestingCommand and ControlRed TeamingShellcode GenerationPayload Development
GitHubpostrequest/xeca

xeca

PowerShell payload generator

View Repository
120224 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

xeca

xeca is a project that creates encrypted PowerShell payloads for offensive purposes.

Creating position independent shellcode from DLL files is also possible.

Note: Please place your custom AMSI bypass in src/assets/amsi-bypass.ps1.

Table of Contents

  • xeca
    • Install
    • How It Works
    • Mitigations
    • Examples
      • Covenant
      • Empire
      • Merlin
      • Sliver
    • Acknowledgements
    • License

Install

Firstly ensure that rust is installed, then build the project with the following command:

root@kitploit:~
cargo build

How It Works

  1. Identify and encrypt the payload. Load encrypted payload into a powershell script and save to a file named "launch.txt"
  2. The key to decrypt the payload is saved to a file named "safe.txt"
  3. Execute "launch.txt" on a remote host
    • The script will call back to the attacker defined web server to retrieve the decryption key "safe.txt"
    • Decrypt the payload in memory
    • Execute the intended payload in memory

Mitigations

If users must have access to programs such as powershell.exe, consider minimising security risks with Just Enough Administration and PowerShell Logging. Application control policies can be deployed via a whitelisting technology such as AppLocker.

Examples

Covenant

Covenant .NET assembly donut payload. gif

Empire

Empire PowerShell payload. gif

Merlin

Merlin DLL payload. gif

Sliver

Sliver Shellcode payload. gif

Acknowledgements

This tool would not be possible without the sharing of knowledge and information. Ideas, snippets and code from the following authors should be acknowledged:
@monoxgas
@H0neyBadger
@TheWover
@stephenfewer
@dismantl
@tandasat
@cobbr

License

xeca is licensed under GPLv3, some sub-components may have separate licenses. See their respective references in this project for details.

Download Tool