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

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...