Skip to content

Reverse Shell Listener

This listener provides a simple TCP shell connection for manual use (e.g. with netcat). It is not intended for connections from generated agents.

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


Configuration Reference

The named default configuration uses port 4444 and a 10 MiB input buffer. Both port and inputBufferSize are required when sending a configuration.

Parameter Type Required Default Description
port int Yes None TCP port from 1 to 65535 for shell connections.
inputBufferSize int Yes None Maximum input buffer size, from 1024 to 2147483647 bytes.
parseShellContextMetadata bool No true Fill agent metadata from supported shell-context messages.

Shell context and raw input

The listener can extract metadata from supported OSC 3008 shell-context messages. This depends on the connecting shell emitting those messages; ordinary shell output alone does not guarantee metadata. Set parseShellContextMetadata to false to disable parsing.

The reverse-shell command accepts input (default empty string) and raw (default false). With raw: true, it sends input verbatim without appending a line ending. Use this when an interactive program needs exact input bytes. Normal command input continues to append a line ending. Output handling also preserves fragmented UTF-8 text and drains pending results during shutdown.


Configuration Scenarios

Scenario 1 - Basic Reverse Shell

A simple reverse shell listener on port 4444 with a 10 MiB input buffer.

1
2
3
4
{
  "port": 4444,
  "inputBufferSize": 10485760
}

Example (POST Request)

POST /api/v1/listeners HTTP/1.1
Authorization: Bearer {JWT_TOKEN}
Content-Type: application/json

{
  "plugin": "shelldot.listener.generic-reverse-tcp",
  "name": "my-generic-tcp-reverse-listener",
  "configuration": {
    "port": 5555,
    "inputBufferSize": 4000000
  }
}