The TCP testing tool

In order to test our TCP honeypot, we need to send it some TCP traffic. We can use any existing network tool, including a web browser or a FTP client to hit the honeypot. A great tool for this is also Netcat, the TCP/IP Swiss army knife. Instead of using Netcat though, let's create our own simple clone. It will simply read and write data over TCP. The input and output will be through standard input and standard output respectively, allowing you to use the keyboard and Terminal or pipe data in or out of files and other applications.

This tool can be used as a general purpose network testing tool, and if you have any intrusion detection system or other monitoring you want to test, it may be useful. This program will take ...

Get Security with Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.