Netcat Port Scanning
Post

Netcat Port Scanning

TCP Scanning

The -w option specifies the connection timeout in seconds and -z is used to specify zero-I/O mode, which will send no data and is used for scanning:

1
nc -nvv -w 1 -z 10.11.1.220 3388-3390

UDP Scanning

Since UDP is stateless and does not involve a three-way handshake, the mechanism behind UDP port scanning is different from TCP.

1
nc -nv -u -z -w 1 10.11.1.115 160-162