# t3l3machus/hoaxshell

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/t3l3machus-hoaxshell).**

3,421 stars · 524 forks · Python · bsd-2-clause

## Links

- GitHub: https://github.com/t3l3machus/hoaxshell
- awesome-repositories: https://awesome-repositories.com/repository/t3l3machus-hoaxshell.md

## Topics

`hacking` `open-source` `penetration-testing` `pentesting-tools` `powershell` `python3` `red-teaming` `reverse-shell`

## Description

Hoaxshell is a command and control system for Windows remote command execution. It provides a framework for generating and managing reverse shell payloads that utilize an HTTP beaconing protocol, where victim clients periodically poll a handler to receive and execute instructions.

The project distinguishes itself through its ability to bypass PowerShell Constrained Language Mode using specialized payload generation. It supports encrypted command and control via TLS certificate injection and provides mechanisms for remote session recovery, allowing a handler to reestablish control over active payloads after a disconnection or system crash.

The system covers a broad range of capabilities including the generation of both PowerShell and cURL-based payloads, the use of custom HTTP headers to obfuscate traffic, and the integration of public tunnel routing to bypass NAT and firewall restrictions.

The tool is implemented in Python.

## Tags

### Networking & Communication

- [C2 Beaconing Protocols](https://awesome-repositories.com/f/networking-communication/beacon-based-data-transmission/http-beacons/c2-beaconing-protocols.md) — Implements an HTTP beaconing protocol where victim clients periodically poll a handler to receive and execute instructions.
- [Network Tunneling](https://awesome-repositories.com/f/networking-communication/network-tunneling.md) — Routes reverse shell traffic through services like Ngrok or LocalTunnel to bypass firewalls and NAT restrictions.
- [Encrypted Shells](https://awesome-repositories.com/f/networking-communication/remote-access-clients/interactive-remote-access/encrypted-shells.md) — Secures C2 traffic using TLS certificates to create encrypted HTTPS shells and evade network detection. ([source](https://github.com/t3l3machus/hoaxshell/blob/main/README.md))
- [Session Restoration](https://awesome-repositories.com/f/networking-communication/tcp-connection-lifecycles/connection-state-management/session-restoration.md) — Re-establishes connectivity to a running remote payload following a handler disconnection or system crash. ([source](https://github.com/t3l3machus/hoaxshell#readme))
- [Header Obfuscation](https://awesome-repositories.com/f/networking-communication/traffic-obfuscation/header-obfuscation.md) — Disguises session traffic by using custom HTTP header names to bypass antivirus traffic analysis. ([source](https://github.com/t3l3machus/hoaxshell/blob/main/README.md))
- [NAT Traversal Routings](https://awesome-repositories.com/f/networking-communication/traffic-routing/nat-traversal-routings.md) — Routes reverse shell connections through public tunnel services to reach targets located behind NAT. ([source](https://github.com/t3l3machus/hoaxshell#readme))
- [Traffic Tunneling](https://awesome-repositories.com/f/networking-communication/traffic-tunneling.md) — Directs reverse shell traffic through public tunnel services to operate without a static IP address. ([source](https://github.com/t3l3machus/hoaxshell#readme))
- [Tunnel-Agnostic Listeners](https://awesome-repositories.com/f/networking-communication/traffic-tunneling/tunnel-agnostic-listeners.md) — Binds the local listener to a port that accepts forwarded traffic from external tunneling services like Ngrok.

### Security & Cryptography

- [PowerShell Language Mode Bypasses](https://awesome-repositories.com/f/security-cryptography/remote-script-execution/powershell-language-mode-bypasses.md) — Implements specialized PowerShell payload construction to bypass Constrained Language Mode restrictions on hardened Windows systems.
- [C2 Beacon Generators](https://awesome-repositories.com/f/security-cryptography/c2-beacon-generators.md) — Provides the core capability to generate PowerShell payloads that establish HTTP beaconing sessions with a C2 handler. ([source](https://github.com/t3l3machus/hoaxshell#readme))
- [C2 HTTPS Listeners](https://awesome-repositories.com/f/security-cryptography/encrypted-tunneling/c2-https-listeners.md) — Ships a secure listener that uses TLS certificates to encrypt shell traffic and supports routing through public tunnels.
- [HTTP Beaconing Protocols](https://awesome-repositories.com/f/security-cryptography/http-beaconing-protocols.md) — Implements an HTTP beaconing protocol for persistent remote command execution and control.
- [C2 Session Identifiers](https://awesome-repositories.com/f/security-cryptography/identity-access-management/session-management/stateful-session-persistence/agentic-session-persistence/interaction-session-persisters/c2-session-identifiers.md) — Uses unique identifiers embedded in HTTP headers to associate incoming requests with specific persistent shell sessions.
- [Shell Session Persistence](https://awesome-repositories.com/f/security-cryptography/identity-access-management/session-management/stateful-session-persistence/agentic-session-persistence/shell-session-persistence.md) — Maintains session metadata allowing disconnected victims to reattach to their existing shell upon reconnection.
- [Remote Command Execution Tools](https://awesome-repositories.com/f/security-cryptography/remote-command-execution-tools.md) — Establishes persistent remote access to Windows systems using encoded PowerShell or cURL payloads.
- [Reverse Shell Listeners](https://awesome-repositories.com/f/security-cryptography/reverse-shell-listeners.md) — Provides a standalone HTTP/HTTPS listener to manage multiple incoming reverse shell connections via session IDs. ([source](https://github.com/t3l3machus/hoaxshell/tree/main/revshells))
- [Reverse Shells](https://awesome-repositories.com/f/security-cryptography/reverse-shells.md) — Generates and manages PowerShell or CMD payloads that establish remote command execution over HTTP or HTTPS.
- [PowerShell Reverse Shell Frameworks](https://awesome-repositories.com/f/security-cryptography/reverse-shells/powershell-reverse-shell-frameworks.md) — Generates and manages Windows reverse shell payloads that communicate over HTTP or HTTPS for remote command execution.
- [Reverse Shell Payloads](https://awesome-repositories.com/f/security-cryptography/security/offensive-operations/vulnerability-research-analysis/injection-exploitation-techniques/command-injection-payloads/reverse-shell-payloads.md) — Creates operational reverse shell command strings that connect the target system to a remote handler. ([source](https://github.com/t3l3machus/hoaxshell#readme))
- [Payload Traffic Encryptions](https://awesome-repositories.com/f/security-cryptography/traffic-encryption/payload-traffic-encryptions.md) — Secures remote shell traffic using SSL certificates and custom HTTP headers to evade network detection.
- [C2 Session Recovery](https://awesome-repositories.com/f/security-cryptography/c2-session-recovery.md) — Enables recovery of control over active remote payloads by starting a new handler instance. ([source](https://github.com/t3l3machus/hoaxshell#readme))
- [Listener Certificate Injection](https://awesome-repositories.com/f/security-cryptography/cryptography/ssl-tls-certificate-management/listener-certificate-injection.md) — Embeds custom SSL certificates and private keys into the listener to encrypt traffic and evade network detection.
- [cURL-Based Shell Payloads](https://awesome-repositories.com/f/security-cryptography/curl-based-shell-payloads.md) — Provides reverse shell capabilities using Windows Command Prompt and cURL to bypass PowerShell-specific security restrictions.
- [cURL Reverse Shells](https://awesome-repositories.com/f/security-cryptography/curl-reverse-shells.md) — Provides an alternative delivery mechanism using Windows CMD and cURL for environments where PowerShell is restricted.
- [Session ID Capturers](https://awesome-repositories.com/f/security-cryptography/identity-access-management/session-management/persistent-session-handlers/session-id-capturers.md) — Provides a session grab mode to reconnect to running payloads by capturing existing session IDs after a restart. ([source](https://github.com/t3l3machus/hoaxshell#readme))
- [Stateful Session Persistence](https://awesome-repositories.com/f/security-cryptography/identity-access-management/session-management/stateful-session-persistence.md) — Maintains session state on the handler to allow disconnected victims to reattach using their session ID.
- [Payload Obfuscators](https://awesome-repositories.com/f/security-cryptography/payload-obfuscation/executable-obfuscators/payload-obfuscators.md) — Randomizes session IDs, URLs, and headers to obfuscate payload signatures and evade antivirus detection. ([source](https://github.com/t3l3machus/hoaxshell#readme))

### Part of an Awesome List

- [HTTP Beaconing C2 Systems](https://awesome-repositories.com/f/awesome-lists/devops/c2-infrastructure/c2-listener-servers/c2-infrastructure-managers/http-c2-messaging/http-beaconing-c2-systems.md) — Provides a command and control system where victims periodically poll a handler over HTTP to receive instructions.
- [Constrained Language Mode Payloads](https://awesome-repositories.com/f/awesome-lists/devtools/payload-generators-and-fuzzers/c2-payload-generators/constrained-language-mode-payloads.md) — Constructs PowerShell commands using specific syntax and alternative cmdlets to execute in restricted language mode environments.
- [Constrained Mode Payloads](https://awesome-repositories.com/f/awesome-lists/devtools/payload-generators-and-fuzzers/c2-payload-generators/constrained-mode-payloads.md) — Generates specific payload variants that remain functional even when PowerShell is in constrained language mode. ([source](https://github.com/t3l3machus/hoaxshell#readme))
- [PowerShell Payloads](https://awesome-repositories.com/f/awesome-lists/devtools/payload-generators-and-fuzzers/c2-payload-generators/powershell-payloads.md) — Generates encoded single-line PowerShell payloads for remote command execution.
- [Command and Control](https://awesome-repositories.com/f/awesome-lists/security/command-and-control.md) — Generates and handles Windows reverse shell payloads over HTTP.

### Software Engineering & Architecture

- [Session Identifiers](https://awesome-repositories.com/f/software-engineering-architecture/network-identifiers/session-identifiers.md) — Uses unique session identifiers in HTTP headers to associate incoming requests with specific shell sessions.

### Development Tools & Productivity

- [C2 Session Recovery](https://awesome-repositories.com/f/development-tools-productivity/crash-recovery-systems/interactive-session-recovery/c2-session-recovery.md) — Reestablishes control over active remote payloads after a handler crash or network disconnection using session identifiers.
