nmap 常用命令

前端之家收集整理的这篇文章主要介绍了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_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

猜你在找的Ubuntu相关文章