nmap.1

来自「Ubuntu packages of security software。 相」· 1 代码 · 共 736 行 · 第 1/5 页

1
736
字号
.\" ** You probably do not want to edit this file directly **.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1)..\" Instead of manually editing it, you probably should edit the DocBook XML.\" source for it and then use the DocBook XSL Stylesheets to regenerate it..TH "NMAP" "1" "12/07/2006" "" "Nmap Reference Guide".\" disable hyphenation.nh.\" disable justification (adjust text to left margin only).ad l.SH "NAME"nmap \- Network exploration tool and security / port scanner.SH "SYNOPSIS".HP 5\fBnmap\fR [\fIScan\ Type\fR...] [\fIOptions\fR] {\fItarget\ specification\fR}.SH "DESCRIPTION".PPNmap (\(lqNetwork Mapper\(rq) is an open source tool for network exploration and security auditing. It was designed to rapidly scan large networks, although it works fine against single hosts. Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services (application name and version) those hosts are offering, what operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics. While Nmap is commonly used for security audits, many systems and network administrators find it useful for routine tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime..PPThe output from Nmap is a list of scanned targets, with supplemental information on each depending on the options used. Key among that information is the\(lqinteresting ports table\(rq. That table lists the port number and protocol, service name, and state. The state is eitheropen,filtered,closed, orunfiltered. Open means that an application on the target machine is listening for connections/packets on that port.Filteredmeans that a firewall, filter, or other network obstacle is blocking the port so that Nmap cannot tell whether it isopenorclosed.Closedports have no application listening on them, though they could open up at any time. Ports are classified asunfilteredwhen they are responsive to Nmap's probes, but Nmap cannot determine whether they are open or closed. Nmap reports the state combinationsopen|filteredandclosed|filteredwhen it cannot determine which of the two states describe a port. The port table may also include software version details when version detection has been requested. When an IP protocol scan is requested (\fB\-sO\fR), Nmap provides information on supported IP protocols rather than listening ports..PPIn addition to the interesting ports table, Nmap can provide further information on targets, including reverse DNS names, operating system guesses, device types, and MAC addresses..PPA typical Nmap scan is shown inExample\ 14.1, \(lqA representative Nmap scan\(rq. The only Nmap arguments used in this example are\fB\-A\fR, to enable OS and version detection,\fB\-T4\fRfor faster execution, and then the two target hostnames.Example\ 14.1.\ A representative Nmap scan.sp.nf# nmap \-A \-T4 scanme.nmap.org playgroundStarting nmap ( http://insecure.org/nmap/ )Interesting ports on scanme.nmap.org (205.217.153.62):(The 1663 ports scanned but not shown below are in state: filtered)PORT    STATE  SERVICE VERSION22/tcp  open   ssh     OpenSSH 3.9p1 (protocol 1.99)53/tcp  open   domain70/tcp  closed gopher80/tcp  open   http    Apache httpd 2.0.52 ((Fedora))113/tcp closed authDevice type: general purposeRunning: Linux 2.4.X|2.5.X|2.6.XOS details: Linux 2.4.7 \- 2.6.11, Linux 2.6.0 \- 2.6.11Uptime 33.908 days (since Thu Jul 21 03:38:03 2005)Interesting ports on playground.nmap.org (192.168.0.40):(The 1659 ports scanned but not shown below are in state: closed)PORT     STATE SERVICE       VERSION135/tcp  open  msrpc         Microsoft Windows RPC139/tcp  open  netbios\-ssn389/tcp  open  ldap?445/tcp  open  microsoft\-ds  Microsoft Windows XP microsoft\-ds1002/tcp open  windows\-icfw?1025/tcp open  msrpc         Microsoft Windows RPC1720/tcp open  H.323/Q.931   CompTek AquaGateKeeper5800/tcp open  vnc\-http      RealVNC 4.0 (Resolution 400x250; VNC TCP port: 5900)5900/tcp open  vnc           VNC (protocol 3.8)MAC Address: 00:A0:CC:63:85:4B (Lite\-on Communications)Device type: general purposeRunning: Microsoft Windows NT/2K/XPOS details: Microsoft Windows XP Pro RC1+ through final releaseService Info: OSs: Windows, Windows XPNmap finished: 2 IP addresses (2 hosts up) scanned in 88.392 seconds.fi.PPThe newest version of Nmap can be obtained from\fI\%http://insecure.org/nmap/\fR. The newest version of the man page is available from\fI\%http://insecure.org/nmap/man/\fR..SH "OPTIONS SUMMARY".PPThis options summary is printed when Nmap is run with no arguments, and the latest version is always available at\fI\%http://insecure.org/nmap/data/nmap.usage.txt\fR. It helps people remember the most common options, but is no substitute for the in\-depth documentation in the rest of this manual. Some obscure options aren't even included here..PP.nfNmap 4.20RC1 ( http://insecure.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 fileHOST DISCOVERY:  \-sL: List Scan \- simply list targets to scan  \-sP: Ping Scan \- go no further than determining if host is online  \-P0: Treat all hosts as online \-\- skip host discovery  \-PS/PA/PU [portlist]: TCP SYN/ACK or UDP discovery to given ports  \-PE/PP/PM: ICMP echo, timestamp, and netmask request discovery probes  \-n/\-R: Never do DNS resolution/Always resolve [default: sometimes]  \-\-dns\-servers <serv1[,serv2],...>: Specify custom DNS servers  \-\-system\-dns: Use OS's DNS resolverSCAN 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]>: Idlescan  \-sO: IP protocol scan  \-b <ftp relay host>: FTP bounce scanPORT 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  \-F: Fast \- Scan only the ports listed in the nmap\-services file)  \-r: Scan ports consecutively \- don't randomizeSERVICE/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)OS DETECTION:  \-O: Enable OS detection (try 2nd generation w/fallback to 1st)  \-O2: Only use the new OS detection system (no fallback)  \-O1: Only use the old (1st generation) OS detection system  \-\-osscan\-limit: Limit OS detection to promising targets  \-\-osscan\-guess: Guess OS more aggressivelyTIMING AND PERFORMANCE:  Options which take <time> are in milliseconds, unless you append '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 <time>: 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 probesFIREWALL/IDS EVASION AND SPOOFING:

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?