nc.openbsd

Basic port scanning - Or how to check the security of our Linux server against unauthorized intruders (page 2)

botond published 2022/10/23, v - 09:35 time
When checking ports from the outside, we perform a port scan on the computer to be checked to find out which ports are open, which services monitor these ports, etc. Port scanning is usually performed by system administrators to check the security of the server, but unfortunately, it is also often used by malicious attackers to map the weak points of the selected target computer. On this page, we review the basic use of the various implementations of the Netcat program.

nc.openbsd (Netcat OpenBSD)

The manual page and help for the nc.openbsd Linux command. The nc (or netcat) utility can be used for almost anything, including things related to TCP, UDP, or UNIX-domain sockets. It can open TCP connections, send UDP packets, listen on any TCP and UDP ports, perform port scanning, and manage both IPv4 and IPv6 networks. Unlike telnet, nc scripts nicely and sends error messages correctly to stderr instead of stdout like telnet does.