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
原文地址:https://www.jb51.cc/ubuntu/353643.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。