Skip to content

Reverse Shell Listener

This listener creates a simple TCP connection for handling terminal input/output (stdin/stdout) redirected through a socket. It's designed for manual connections (e.g., using netcat) and is not intended for use with generated agents.

Plugin ID: shelldot.listener.generic-reverse-tcp

Configuration

The If omitted column describes hand-written JSON sent directly to the server. The plugin's named default example explicitly supplies port 4444 and a 10 MiB inputBufferSize (10485760).

Parameter Type Required If omitted Description
port int Yes Invalid TCP port (1-65535) on which C2 listens for shell connections.
inputBufferSize int No 0 (effective 1 KiB) Maximum input buffer size in bytes. The runtime buffer starts at 1 KiB and grows only while it is below this cap, so configure at least 1024 when growth is required. An omitted value does not inherit the named example's 10 MiB value.

Operation Details

Feature Description
Connection Type Basic TCP connection for terminal I/O
Primary Use Direct shell sessions via tools like netcat
Agent Support Not designed for generated agents
Communication Real-time terminal input/output over TCP

Note: This listener prioritizes simplicity and direct access over advanced features, making it ideal for quick troubleshooting or direct command execution.