Skip to content

TCP Generic module

Balazs Bucsay edited this page May 9, 2018 · 8 revisions

Base protocol: TCP
Type: Stateful
Parent: Stateful

Introduction

This is one of the most basic transport modules in the framework and probably the easiest to understand.
The client connects to the server over TCP and establishes a connection. All IP packets that were sent to the network on the client side will be captured and rerouted to this TCP channel. The server receives the IP packets, and forwards it to the original destination.

TCP is a stateful protocol, so each and every connection will be handled in a new thread. If the connection dies, for example the client disconnects then the thread dies with it as well. The main thread listens on the port and waits for future connections.

When to use

The client's network allows only some specific ports to use directly without filtering or intercepting it.
Common port examples: 22, 80, 443, 465, 8080

Hint: nmap portquiz.net

Configuration

[TCP_generic]
enabled = yes
serverport = 1337

enabled

The value of this attribute is either yes or no. If it was set to yes, then the module will be initiated when the framework is started.

serverport

The port that will be used by the module. By default it is tcp/1337.

Firewall rules on the server

Allow incoming TCP connections to the port that was configured the config file.

XFLTReaT wiki pages

Clone this wiki locally