PayloadForge

Obfuscated payload generator for authorized penetration testing

v1.2.1
Linux

Authorisation required. payloadforge is for authorized penetration testing only. Every generate / reverse-shell / chain invocation enforces a strictly-formatted --auth-id AAA-YYYY-N (or $PAYLOADFORGE_AUTH_ID) engagement reference and writes a JSONL audit row. Use against systems you own or have explicit written authorisation to test.

Quick Start

Install via jcli

jcli install payloadforge

Generate

# Obfuscate a literal command (bash, advanced)
payloadforge --auth-id PENTEST-2026-001 --language bash \
    --obfuscation-level advanced generate 'id'

# Reverse shell — Perl template (NEW), json output
payloadforge --auth-id PENTEST-2026-001 --language perl \
    --output json reverse-shell 10.0.0.1 4444

# Stack a custom transform chain
payloadforge --auth-id PENTEST-2026-001 --language python \
    chain base64_encode,hex_encode 'print("hi")'

# Defensive: score arbitrary input against the vendored signature set
payloadforge --language powershell detect '... Invoke-Expression ...'

What it does

payloadforge is a port of the original Python tool, redone in Rust with nine language targets, JSONL audit logging, and a detect subcommand for blue-team use. It does not ship C2 infrastructure, persistence, or AV-bypass primitives — only template + obfuscation + encoding + detection-scoring.

Subcommands

CommandWhat it does
generate <CMD>Obfuscate a literal command for the chosen language
reverse-shell <LHOST> <LPORT>Render a language template, then obfuscate & optionally encode
chain <TRANSFORMS> <CMD>Apply a comma-separated list of named transforms in sequence
list-templatesPrint the available reverse-shell templates
detect <PAYLOAD>Score arbitrary input against the vendored signature set (defensive use)
version / docsVersion line / docs URL

Improvements over the Python 1.0.x

The Python advanced Python obfuscator used marshal.dumps(compile(code)) which requires the Python toolchain at generation time. The Rust port substitutes an equivalent-opacity XOR + hex + chained-lambda technique that generates without Python and runs on plain Python at runtime.