Adaptix Framework
AdaptixC2 GitHubExtension-Kit
  • Welcome
  • Adaptix C2
    • Getting Starting
      • Installation
      • Starting
    • User Interface
    • Listeners and Agents
    • Agent Browsers
      • File Browser
      • Process Browser
    • Data management
      • Tasks storage
      • Downloads Storage
      • Screenshots Storage
    • BOF and Extensions
    • Pivoting
    • Linking Agents
  • Extenders
    • Listeners
      • Beacon HTTP
      • Beacon SMB
      • Beacon TCP
      • Gopher TCP
    • Agents
      • Beacon
        • Beacon BOFs
      • Gopher
  • Development
    • Plugins
    • Listener plugin
    • Agent plugin
  • AX Support Soft
    • AxChecker
    • CmdChecker
  • Changelog
    • v0.1 -> v0.2
    • v0.2 -> v0.3
    • v0.3 -> v0.4
Powered by GitBook
On this page
  1. Extenders
  2. Listeners

Gopher TCP

PreviousBeacon TCPNextAgents

Last updated 18 days ago

"Gopher TCP" listener starts a tcp/mtls server and registers a "gopher" agent.

Parameter
Description

Host & port (Bind)

Required. The interface address and port to which your TCP Gopher server will bind.

Callback addresses

Required. List of address:port to which the agent will send requests. Current server rotation strategy: round-robin.

Timeout (sec)

The time to wait between connections in the event of a connection failure or interruption

TCP banner

Data that the server will send when any client connects to the port

Error answer

Server response if agent is not registered

Use mTLS

If set, use mTLS. Certificates and keys are not generated on the server

How to Generate Certificates and Keys for mTLS

# CA cert
openssl genrsa -out ca.key 2048
openssl req -x509 -new -nodes -key ca.key -sha256 -days 3650 -out ca.crt -subj "/CN=Test CA"

# server cert and key
openssl genrsa -out server.key 2048
openssl req -new -key server.key -out server.csr -subj "/CN=localhost"
openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 365 -sha256

# client cert and key
openssl genrsa -out client.key 2048
openssl req -new -key client.key -out client.csr -subj "/CN=client"
openssl x509 -req -in client.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out client.crt -days 365 -sha256