本文共 1742 字,大约阅读时间需要 5 分钟。
nmap简介
一款强大的网络探测利器工具 支持多种探测技术 ping 扫描 多端口扫描 TCP/IP指纹校验nmap 扫描类型 选项 扫描目标
部署nmap 环境
语法格式 :nmap 扫描类型 选项 扫描目标
Starting Nmap 6.40 ( ) at 2018-09-07 16:44 CST
Nmap scan report for server0 (172.25.0.11)Host is up (0.00018s latency).MAC Address: 52:54:00:00:00:0A (QEMU Virtual NIC)Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds//host is up ip地址开启 , 用时 0.04秒
Starting Nmap 6.40 ( ) at 2018-09-07 16:48 CST
Nmap scan report for server0 (172.25.0.11)Host is up (0.00010s latency).MAC Address: 52:54:00:00:00:0A (QEMU Virtual NIC)Nmap scan report for 172.25.0.250Host is up.Nmap done: 256 IP addresses (2 hosts up) scanned in 5.47 seconds查看 172.25.0.11 开启的所有端口 nmap -sT 172.25.0.11Starting Nmap 6.40 ( ) at 2018-09-07 16:52 CST
Nmap scan report for server0 (172.25.0.11)Host is up (0.020s latency).Not shown: 999 filtered portsPORT STATE SERVICE22/tcp open sshMAC Address: 52:54:00:00:00:0A (QEMU Virtual NIC)Nmap done: 1 IP address (1 host up) scanned in 12.45 seconds
扫描 172.25.0.0网段 开启了哪些端口MAC Address: 52:54:00:00:00:0A (QEMU Virtual NIC)
Nmap scan report for 172.25.0.250
Host is up (0.00046s latency).Not shown: 994 closed portsPORT STATE SERVICE21/tcp open ftp22/tcp open ssh80/tcp open http111/tcp open rpcbind2049/tcp open nfs5900/tcp open vnc检查192.168.4.0/24网段内哪些主机开启了FTP、SSH服务
[root@proxy ~]# nmap -p 21-22 192.168.4.0/24Starting Nmap 5.51 ( ) at 2017-05-17 18:00 CSTNmap scan report for 192.168.4.1Host is up (0.000025s latency).PORT STATE SERVICE21/tcp open ftp22/tcp open sshNmap scan report for 192.168.4.7Host is up.PORT STATE SERVICE21/tcp filtered ftp22/tcp filtered ssh转载地址:http://cnycx.baihongyu.com/