TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/HavocFramework/Havoc/llms.txt
Use this file to discover all available pages before exploring further.
Listeners section defines network listeners for agent callbacks. Havoc currently supports HTTP/HTTPS and SMB listeners with extensive customization options.
HTTP/HTTPS Listener Syntax
HTTP/HTTPS Parameters
A descriptive name for the listener. This appears in the Havoc client UI.Example:
"HTTPS Listener" or "HTTP C2 Server"List of domains or IP addresses that agents will use to reach the teamserver.Example:
["10.0.0.10", "c2.example.com"]If multiple hosts are provided, the agent will select one based on the HostRotation strategy.The local address where the listener binds.Default:
"0.0.0.0" (all interfaces)Example: "192.168.1.10" (specific interface)Strategy for selecting hosts when multiple are defined.Options:
"round-robin"- Cycle through hosts sequentially"random"- Randomly select a host for each connection
"round-robin"Port that the teamserver binds to and listens on.Example:
443, 80, 8080Port that agents use to connect to the teamserver.If not specified, defaults to
PortBind. Use this when the teamserver is behind a redirector listening on a different port.Example: Teamserver on port 8443, redirector on port 443: set PortBind = 8443 and PortConn = 443Enables HTTPS (TLS) for encrypted communication.
true- HTTPS (uses TLS)false- HTTP (plaintext)
trueThe User-Agent header that agents include in all HTTP requests.Example:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"Choose a User-Agent that blends with the target environment.List of URI paths that agents use for callbacks.Example:
["/api/v1/data", "/login.php", "/assets/main.js"]If multiple URIs are provided, agents randomly select one for each request.Custom HTTP headers included in agent requests.Format: Each header is a string in
"Header-Name: value" format.Example:Date and time when agents will terminate themselves (UTC timezone).Format:
"YYYY-MM-DD HH:MM:SS"Example: "2024-12-31 23:59:59"Useful for ensuring agents self-destruct after an engagement ends.Time window during which agents will check in.Format:
"HH:MM-HH:MM" (24-hour format)Example: "08:00-17:00" (only check in during business hours)Agents will not beacon outside of these hours, helping to blend with legitimate traffic patterns.Response Configuration
TheResponse block configures HTTP headers returned by the teamserver.
Custom HTTP headers included in teamserver responses.Format: Each header is a string in
"Header-Name: value" format.Example:Examples
Basic HTTPS Listener
Microsoft Teams Emulation
Multiple Hosts with Rotation
Time-Restricted Listener
SMB Listener
SMB listeners are used for peer-to-peer agent communication, typically for lateral movement and pivoting.Descriptive name for the SMB listener.
Named pipe that agents use for SMB communication.Example:
"demon_pipe", "msagent_pipe"Multiple Listeners
You can define multiple listeners in a single profile:OPSEC Considerations
Blending with Normal Traffic
- Choose User-Agents that match the target environment
- Use realistic URIs that mimic legitimate applications
- Set appropriate WorkingHours to match business operations
- Consider using multiple URIs and hosts for variety
Kill Date Best Practices
- Always set a KillDate for time-limited engagements
- Set the date slightly after the engagement end date
- Communicate the KillDate to the client organization
- Test that agents properly terminate at the specified time
