This section will describe a network tool that can be used for many purposes. Sometimes this tool is called a Swiss-army knife for TCP/IP.
Netcat is a simple utility that reads and writes data across network connections using TCP or UDP protocol. By default it will use the TCP protocol. It can be used directly or from other programs or scripts. Netcat is the predecessor of the tools we described in Chapter 11:
As a penetration tester, you need to know several Netcat usages. However, this tool is small, portable, and powerful.
We will describe several Netcat capabilities that can be used during your penetration testing process.
In its simplest use, Netcat can be used as an alternative for