Skip to content

端口探测

tcp 端口探测

# telnet localhost 1195
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.

or

# nc -vz localhost 1195
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connection to ::1 failed: Connection refused.
Ncat: Trying next address...
Ncat: Connected to 127.0.0.1:1195.
Ncat: 0 bytes sent, 0 bytes received in 0.02 seconds.

udp 端口探测

# nc -uvz 127.0.0.1 1194
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to 127.0.0.1:1194.
Ncat: UDP packet sent successfully
Ncat: 1 bytes sent, 0 bytes received in 2.02 seconds.

Comments