Tool 89: TCP server
Description:
This tool listens on a TCP port. Use tool 87 to connect to it.
Parameter --src-port defines the local port number to listen on.
Optional parameter --src-ip defines the local IP address to use.
Optional parameter --iptype defines which kind of IP address to use
when --src-ip is unset (accepted values: ip4 and ip6).
Optional parameter --ip4opts permits to add IP4 options encoded as
mixed.
Optional parameter --ip6exts permits to add IP6 options encoded as
mixed (first byte is the next header number).
Optional parameters --device and --src-eth permits to create
a virtual server using fake addresses (in this case, tool have to be
run with admin privilege in order to sniff and spoof at Ethernet
level).
Parameter --encode defines how to display data (common values: data,
dump, mixed).
Parameter --decode defines how keyboard data is entered (common
values: data, mixed).
Synonyms:
nc, netcat
Usage:
netwox 89 -P port [-d device] [-E eth] [-I ip] [-o ip4opts] [-O ip6exts] [-t iptype] [-k decode] [-n encode]
Parameters:
parameter |
description |
example |
-P|--src-port port |
source port number |
1234 |
-d|--device device |
device name |
Eth0 |
-E|--src-eth eth |
source ethernet address |
0:2:3:4:5:6 |
-I|--src-ip ip |
source IP address |
192.168.100.200 |
-o|--ip4opts ip4opts |
IPv4 options |
|
-O|--ip6exts ip6exts |
IPv6 extensions |
|
-t|--iptype iptype |
type to use when src-ip is unset |
ip4 |
-k|--decode decode |
how keyboard data is entered |
data |
-n|--encode encode |
how network data is displayed |
data |
Examples:
netwox 89 -P "1234"
netwox 89 --src-port "1234"