NMAP端口扫描,监测主机状态

编程

nmap -sP 仅执行ping 扫描 

[root@k8s-master chaper02]# nmap -sP 192.168.198.89

Starting Nmap 6.40 ( http://nmap.org ) at 2020-08-02 22:58 CST

Nmap scan report for k8s-node-1 (192.168.198.89)

Host is up (0.00073s latency).

MAC Address: 00:0C:29:8F:F3:E8 (VMware)

Nmap done: 1 IP address (1 host up) scanned in 0.25 seconds

[root@k8s-master chaper02]# nmap -sP 192.168.198.89,88,90

Starting Nmap 6.40 ( http://nmap.org ) at 2020-08-02 23:00 CST

Nmap scan report for k8s-master (192.168.198.88)

Host is up.

Nmap scan report for k8s-node-1 (192.168.198.89)

Host is up (0.00030s latency).

MAC Address: 00:0C:29:8F:F3:E8 (VMware)

Nmap done: 3 IP addresses (2 hosts up) scanned in 0.35 seconds

针对TCP 端口的扫描

[root@k8s-master chaper02]# nmap -n -sT 192.168.198.89

Starting Nmap 6.40 ( http://nmap.org ) at 2020-08-02 23:03 CST

Nmap scan report for 192.168.198.89

Host is up (0.0024s latency).

Not shown: 999 closed ports

PORT STATE SERVICE

22/tcp open ssh

MAC Address: 00:0C:29:8F:F3:E8 (VMware)

Nmap done: 1 IP address (1 host up) scanned in 0.45 seconds

针对指定的端口扫描:

[root@k8s-master chaper02]# nmap -n -sS -p 80 192.168.198.89

Starting Nmap 6.40 ( http://nmap.org ) at 2020-08-02 23:05 CST

Nmap scan report for 192.168.198.89

Host is up (0.00051s latency).

PORT STATE SERVICE

80/tcp closed http

MAC Address: 00:0C:29:8F:F3:E8 (VMware)

Nmap done: 1 IP address (1 host up) scanned in 0.51 seconds

针对UDP端口扫描

[root@k8s-master chaper02]# nmap -n -T5 -sU 192.168.198.89

Starting Nmap 6.40 ( http://nmap.org ) at 2020-08-02 23:10 CST

Warning: 192.168.198.89 giving up on port because retransmission cap hit (2).

Nmap scan report for 192.168.198.89

Host is up (0.00077s latency).

Not shown: 983 open|filtered ports

PORT STATE SERVICE

631/udp closed ipp

2362/udp closed digiman

16449/udp closed unknown

16919/udp closed unknown

17338/udp closed unknown

18980/udp closed unknown

19625/udp closed unknown

22043/udp closed unknown

23531/udp closed unknown

26407/udp closed unknown

30544/udp closed unknown

33872/udp closed unknown

40866/udp closed unknown

49211/udp closed unknown

52225/udp closed unknown

58075/udp closed unknown

58178/udp closed unknown

MAC Address: 00:0C:29:8F:F3:E8 (VMware)

Nmap done: 1 IP address (1 host up) scanned in 13.65 seconds

 

以上是 NMAP端口扫描,监测主机状态 的全部内容, 来源链接: utcz.com/z/519008.html

回到顶部