Netcat Übersicht

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Befehl Beschreibung
nc -h Show help and options
nc <host> <port> Connect to a host and port
nc -l -p <port> Listen on a specific port
nc -nlvp <port> Listen for all types of connections
nc -l -p <p> > file Receive a file
nc -w 3 <host> <port> < file Send a file
nc -l Listen without time limit
nc -v -n Verbose mode without DNS resolution
nc -u -l -p <port> Listen for UDP on a specific port
nc -u <host> <port> Connect UDP to a host and port
nc -e /bin/sh Execute a shell after connection
nc -z <host> <port> Check the status of ports
nc -s <source> Specify a source address
nc -c <command> Execute a command after connection
nc -r Enable random port selection
nc -k Accept multiple connections
nc -i <seconds> Set a time interval
nc -X <proxy> Set a proxy per connection
nc -n Disable DNS resolution
nc -o <file> Redirect output to a file
nc -p <port> Specify a port to connect
nc -v Verbose mode
nc -w <seconds> Verbose mode with wait time
nc -k Listen and accept multiple connections
nc -X <type> Set the type of proxy
nc -L host:port Connect through a tunnel
nc -u -p <port> Specify a UDP port