nmap 工具远程扫描主机

67 阅读1分钟

nmap 工具远程扫描主机

nmap 是linux扫描远程主机工具,功能远超ping工具发送简单的icmp回声请求报文,namp可以扫描指定IP,port和网段,功能及其强大。

**#Tcp ack** **扫描,并发** **2000** **,速度快**
nmap  -n –PA  --min-paralleism  2000  172.16.0.0/16

**#** **仅列出指定网段上的每台主机,不发送任何报文到目标主机**
nmap –SL  10.0.0.0/24

**#可以指定一个IP地址范围**
nmap  -sp 10.0.0.0-10

[root@centos8  ~]#nmap  -sP 10.0.0.1-10|grep "Nmap scan"|sed 's/Nmap scan report for promote.cache-dns.local //'|tr '()'  ' '**
10.0.0.1
10.0.0.2
[root@centos8  ~]#nmap  -sP 10.0.0.1-10|grep "Nmap scan"|sed 's/Nmap scan report for promote.cache-dns.local //'|tr '()'  ' '**
10.0.0.1
10.0.0.2
[root@centos8  ~]# nmap  -sP 10.0.0.1-10|grep "Nmap scan"|sed -n '/^Nmap scan/s/Nmap scan report for promote.cache-dns.local //p'**
(10.0.0.1)
(10.0.0.2)
[root@centos8  ~]# nmap  -sP 10.0.0.1-10|sed -n '/^Nmap scan/s/Nmap scan report for promote.cache-dns.local //p'**
(10.0.0.1)
(10.0.0.2)