Nmap的指令中文介绍


Nmap 7.80(https://nmap.org)
用法:nmap [扫描类型] [选项] {目标规范}
目标规格:
  可以传递主机名,IP地址,网络等。
  例如:scanme.nmap.org,microsoft.com / 24、192.168.0.1; 10.0.0-255.1-254
  -iL <inputfilename>:来自主机/网络列表的输入
  -iR <主机数目>:选择随机目标
  --exclude <host1 [,host2] [,host3],...>:排除主机/网络
  --excludefile <exclude_file>:从文件中排除列表
主机发现:
  -sL:列出扫描-仅列出要扫描的目标
  -sn:Ping扫描-禁用端口扫描
  -Pn:将所有主机视为联机-跳过主机发现
  -PS / PA / PU / PY [端口列表]:对给定端口的TCP SYN / ACK,UDP或SCTP发现
  -PE / PP / PM:ICMP回显,时间戳和网络掩码请求发现探针
  -PO [协议列表]:IP协议Ping
  -n / -R:从不进行DNS解析/始终解析[默认值:有时]
  --dns-servers <serv1 [,serv2],...>:指定自定义DNS服务器
  --system-dns:使用操作系统的DNS解析器
  --traceroute:跟踪到每个主机的跃点路径
扫描技术:
  -sS / sT / sA / sW / sM:TCP SYN / Connect()/ ACK / Window / Maimon扫描
  -sU:UDP扫描
  -sN / sF / sX:TCP空,FIN和Xmas扫描
  --scanflags <标志>:自定义TCP扫描标志
  -sI <僵尸主机[:probeport]>:空闲扫描
  -sY / sZ:SCTP INIT / COOKIE-ECHO扫描
  -sO:IP协议扫描
  -b <FTP中继主机>:FTP退回扫描
端口规格和扫描顺序:
  -p <端口范围>:仅扫描指定的端口
    例如:-p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080,S:9
  --exclude-ports <端口范围>:从扫描中排除指定端口
  -F:快速模式-扫描的端口少于默认扫描
  -r:连续扫描端口-不要随机化
  --top-ports <编号>:扫描<编号>最常见的端口
  --port-ratio <比率>:扫描端口比<比率>更常见
服务/版本检测:
  -sV:探测打开的端口以确定服务/版本信息
  --version-intensity <级别>:从0(浅)设置为9(尝试所有探针)
  --version-light:限制为最可能的探测(强度2)
  --version-all:尝试每个探针(强度9)
  --version-trace:显示详细的版本扫描活动(用于调试)
脚本扫描:
  -sC:相当于--script = default
  --script = <Lua脚本>:<Lua脚本>是逗号分隔的列表
           目录,脚本文件或脚本类别
  --script-args = <n1 = v1,[n2 = v2,...]>:提供脚本参数
  --script-args-file =文件名:在文件中提供NSE脚本args
  --script-trace:显示所有发送和接收的数据
  --script-updatedb:更新脚本数据库。
  --script-help = <Lua脚本>:显示有关脚本的帮助。
           <Lua脚本>是用逗号分隔的脚本文件列表,或者
           脚本类别。
操作系统检测:
  -O:启用操作系统检测
  --osscan-limit:将操作系统检测限制为有希望的目标
  --osscan-guess:更积极地猜测操作系统
时间和性能:
  花费<time>的选项以秒为单位,或附加“ ms”(毫秒),
  “ s”(秒),“ m”(分钟)或“ h”(小时)到值(例如30m)。
  -T <0-5>:设置时序模板(越高越快)
  --min-hostgroup / max-hostgroup <大小>:并行主机扫描组大小
  --min-parallelism / max-parallelism <numprobes>:探针并行化
  --min-rtt-timeout / max-rtt-timeout / initial-rtt-timeout <时间>:指定
      探测往返时间。
  --max-retries <tries>:限制端口扫描探针重传的次数。
  --host-timeout <时间>:在很长一段时间后放弃目标
  --scan-delay /-max-scan-delay <时间>:调整探头之间的延迟
  --min-rate <number>:每秒发送数据包的速度不低于<number>
  --max-rate <number>:每秒发送数据包的速度不超过<number>
防火墙/标识闪避和疏散:
  -F; --mtu <val>:分段数据包(可选,带有给定的MTU)
  -D <decoy1,decoy2 [,ME],...>:用诱饵掩盖扫描
  -S <IP地址>:欺骗源地址
  -e <iface>:使用指定的接口
  -g /-source-port <端口号>:使用给定的端口号
  --proxies <url1,[url2],...>:通过HTTP / SOCKS4代理中继连接
  --data <十六进制字符串>:将自定义有效负载附加到发送的数据包
  --data-string <字符串>:将自定义ASCII字符串附加到发送的数据包
  --data-length <num>:将随机数据追加到发送的数据包
  --ip-options <选项>:发送具有指定ip选项的数据包
  --ttl <val>:设置IP生存时间字段
  --spoof-mac <mac地址/前缀/供应商名称>:欺骗您的MAC地址
  --badsum:发送带有虚假TCP / UDP / SCTP校验和的数据包
输出:
  -oN / -oX / -oS / -oG <文件>:以普通,XML,s | <rIpt kIddi3,
     和Grepable格式分别更改为给定的文件名。
  -oA <basename>:一次以三种主要格式输出
  -v:提高详细程度(使用-vv或更高的效果更好)
  -d:提高调试级别(使用-dd或更多以获得更大的效果)
  --reason:显示端口处于特定状态的原因
  --open:仅显示打开(或可能打开)的端口
  --packet-trace:显示所有发送和接收的数据包
  --iflist:打印主机接口和路由(用于调试)
  --appe

下面是英文版原文命令

Nmap 7.80 ( https://nmap.org )
Usage: nmap [Scan Type(s)] [Options] {target specification}
TARGET SPECIFICATION:
  Can pass hostnames, IP addresses, networks, etc.
  Ex: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254
  -iL <inputfilename>: Input from list of hosts/networks
  -iR <num hosts>: Choose random targets
  --exclude <host1[,host2][,host3],...>: Exclude hosts/networks
  --excludefile <exclude_file>: Exclude list from file
HOST DISCOVERY:
  -sL: List Scan - simply list targets to scan
  -sn: Ping Scan - disable port scan
  -Pn: Treat all hosts as online -- skip host discovery
  -PS/PA/PU/PY[portlist]: TCP SYN/ACK, UDP or SCTP discovery to given ports
  -PE/PP/PM: ICMP echo, timestamp, and netmask request discovery probes
  -PO[protocol list]: IP Protocol Ping
  -n/-R: Never do DNS resolution/Always resolve [default: sometimes]
  --dns-servers <serv1[,serv2],...>: Specify custom DNS servers
  --system-dns: Use OS's DNS resolver
  --traceroute: Trace hop path to each host
SCAN TECHNIQUES:
  -sS/sT/sA/sW/sM: TCP SYN/Connect()/ACK/Window/Maimon scans
  -sU: UDP Scan
  -sN/sF/sX: TCP Null, FIN, and Xmas scans
  --scanflags <flags>: Customize TCP scan flags
  -sI <zombie host[:probeport]>: Idle scan
  -sY/sZ: SCTP INIT/COOKIE-ECHO scans
  -sO: IP protocol scan
  -b <FTP relay host>: FTP bounce scan
PORT SPECIFICATION AND SCAN ORDER:
  -p <port ranges>: Only scan specified ports
    Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080,S:9
  --exclude-ports <port ranges>: Exclude the specified ports from scanning
  -F: Fast mode - Scan fewer ports than the default scan
  -r: Scan ports consecutively - don't randomize
  --top-ports <number>: Scan <number> most common ports
  --port-ratio <ratio>: Scan ports more common than <ratio>
SERVICE/VERSION DETECTION:
  -sV: Probe open ports to determine service/version info
  --version-intensity <level>: Set from 0 (light) to 9 (try all probes)
  --version-light: Limit to most likely probes (intensity 2)
  --version-all: Try every single probe (intensity 9)
  --version-trace: Show detailed version scan activity (for debugging)
SCRIPT SCAN:
  -sC: equivalent to --script=default
  --script=<Lua scripts>: <Lua scripts> is a comma separated list of
           directories, script-files or script-categories
  --script-args=<n1=v1,[n2=v2,...]>: provide arguments to scripts
  --script-args-file=filename: provide NSE script args in a file
  --script-trace: Show all data sent and received
  --script-updatedb: Update the script database.
  --script-help=<Lua scripts>: Show help about scripts.
           <Lua scripts> is a comma-separated list of script-files or
           script-categories.
OS DETECTION:
  -O: Enable OS detection
  --osscan-limit: Limit OS detection to promising targets
  --osscan-guess: Guess OS more aggressively
TIMING AND PERFORMANCE:
  Options which take <time> are in seconds, or append 'ms' (milliseconds),
  's' (seconds), 'm' (minutes), or 'h' (hours) to the value (e.g. 30m).
  -T<0-5>: Set timing template (higher is faster)
  --min-hostgroup/max-hostgroup <size>: Parallel host scan group sizes
  --min-parallelism/max-parallelism <numprobes>: Probe parallelization
  --min-rtt-timeout/max-rtt-timeout/initial-rtt-timeout <time>: Specifies
      probe round trip time.
  --max-retries <tries>: Caps number of port scan probe retransmissions.
  --host-timeout <time>: Give up on target after this long
  --scan-delay/--max-scan-delay <time>: Adjust delay between probes
  --min-rate <number>: Send packets no slower than <number> per second
  --max-rate <number>: Send packets no faster than <number> per second
FIREWALL/IDS EVASION AND SPOOFING:
  -f; --mtu <val>: fragment packets (optionally w/given MTU)
  -D <decoy1,decoy2[,ME],...>: Cloak a scan with decoys
  -S <IP_Address>: Spoof source address
  -e <iface>: Use specified interface
  -g/--source-port <portnum>: Use given port number
  --proxies <url1,[url2],...>: Relay connections through HTTP/SOCKS4 proxies
  --data <hex string>: Append a custom payload to sent packets
  --data-string <string>: Append a custom ASCII string to sent packets
  --data-length <num>: Append random data to sent packets
  --ip-options <options>: Send packets with specified ip options
  --ttl <val>: Set IP time-to-live field
  --spoof-mac <mac address/prefix/vendor name>: Spoof your MAC address
  --badsum: Send packets with a bogus TCP/UDP/SCTP checksum
OUTPUT:
  -oN/-oX/-oS/-oG <file>: Output scan in normal, XML, s|<rIpt kIddi3,
     and Grepable format, respectively, to the given filename.
  -oA <basename>: Output in the three major formats at once
  -v: Increase verbosity level (use -vv or more for greater effect)
  -d: Increase debugging level (use -dd or more for greater effect)
  --reason: Display the reason a port is in a particular state
  --open: Only show open (or possibly open) ports
  --packet-trace: Show all packets sent and received
  --iflist: Print host interfaces and routes (for debugging)
  --appe
  • 分享:
评论
还没有评论
    发表评论 说点什么