netcat (ncat)

Introduction

The networking utility “netcat” is a simple tool to read and write data across TCP or UDP network or UNIX socket connection.

netcat uses (net + cat) :

  • Port scanning
  • Tunneling
  • Proxying
  • Port forwarding
  • File Transfer
  • Banner Grabbing
  • Port Listening & Port Redirection
  • Backdoor

netcat installation

https://nmap.org/download

netcat in action:

https://www.unix.com/man-page/Linux/1/netcat/

Todo: check the behavior of netcat (nc) -o option in linux environment.

nc -r option (randomize port )

port range example

File Transfer:

Banner Grabbing

Redirecting Port and Traffic (relay)