nmap 常用命令

How to install nmap Ubuntu/Debain systems # sudo apt-get install nmap To Install nmap in yum packaged system Centos/RHEL # yum install nmap -y To install from rpm Pcakge # rpm -ivh nmap{version_of_pac

How to install nmap Ubuntu/Debain systems

# sudo apt-get install nmap

To Install nmap in yum packaged system Centos/RHEL

# yum install nmap -y

To install from rpm Pcakge

# rpm -ivh nmap{version_of_package}.deb

To Install from .deb package file if you have downloaded

# dpkg -i nmap{version_of_package}.deb

scan a single host

# nmap ubuntu.example.com

scan a hostname for more information about the host

# nmap -v ubuntu.example.com

Scan Multiple IP Address

# nmap 192.168.1.77 192.168.1.99

Scanning Range of IP using Wildcard (*)

# nmap 192.168.1.*

Scanning Entire Subnet 255.255.255.0

# nmap 192.168.1.0/24

Scanning for range of IPs

# nmap 192.168.1.33-99

To Find the OS & Version of remote Hosts Using Nmap

# nmap -A 192.168.1.77

his will output more information about a Host and its Ports and Operating systems and Version

# nmap -v -A 192.168.1.77

scanning for particular Port number

# nmap -p 22 192.168.1.99

scanning for TCP ports 80

# nmap -p T:443 192.168.1.99

scanning for UDP ports 82

# nmap -p U:82 192.168.1.99

scanning multiple ports

# nmap -p 443,82 192.168.1.99

scanning for all ports using wildcard(*)

# nmap -p "*" 192.168.1.99

To Watch the all packets send and reciving

# nmap --packet-trace 192.168.1.77

Know Whether a Host is Protected by Firewall or not : To scan firewall protcted for a host

# nmap -PN 192.168.1.99

scan firewall protected for a Network

# nmap -sA 192.168.1.77

To know the interface and Route

# nmap --iflist

Excluding Single host

# nmap 192.168.1.10-100 --exclude 192.168.1.77

Excluding Multiple Hosts

# nmap 192.168.1.10-100 --exclude 192.168.1.77,192.168.1.95,192.168.1.99

To Perform a Fast scan

# nmap -F 192.168.1.77

To know more commands Use command man

# man nmap

作者: dawei

【声明】:永州站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

为您推荐

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部