Work on it, whether in development or operations, when testing some system service ports, there are always TCP or UDP two protocols. As is known to all, TCP service ports can be remotely tested via Telnet, while UDP ports, in general, use Nmap, whether in Linux or Windows environments.
Nmap software under Windows also has a graphical interface with command-line mode, but most people use skilled people, more inclined to command-line mode, because the operation is simple and fast.
:
Https://nmap.org/download.html
650) this.width=650; "title=" image "style=" Background-image:none; "border=" 0 "alt=" image "src=" http://s3.51cto.com/ Wyfs02/m02/98/72/wkiom1k8ivhie8n8aalagfar42q935.png "height=" 321 "/>
After the installation is complete on Windows, run the open graphical interface directly
650) this.width=650; "title=" image "style=" Background-image:none; "border=" 0 "alt=" image "src=" http://s3.51cto.com/ Wyfs02/m02/98/72/wkiom1k8ivlbq3p1aacgta4urme960.png "height=" 451 "/>
How do I use Command mode?
1, direct CMD,CD to the installation directory, the implementation of NMAP command
2. Modify environment variables so that you can execute nmap at any time
On my Computer-Properties-advanced-environment variable environment Variables-system Variables-path
Path modification: Add the Full installation directory path, separated by semicolons.
%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%systemroot%\system32\windowspowershell\v1.0\; E:\software\BIND9.11.1.x64; C:\Program Files (x86) \nmap;
650) this.width=650; "title=" image "style=" Background-image:none; "border=" 0 "alt=" image "src=" http://s3.51cto.com/ Wyfs02/m00/98/72/wkiom1k8iv6i4yvxaakvyssqu3y734.png "height=" 647 "/>
Test command line scan UDP port
Open Xshell or cmd
Scan the DNS 114.114.114.114 UDP 53 port, the result is the port state is closed
650) this.width=650; "title=" image "style=" Background-image:none; "border=" 0 "alt=" image "src=" http://s3.51cto.com/ Wyfs02/m02/98/73/wkiol1k8iv_xo93_aadus8k_z4q287.png "height=" 177 "/>
Scan DNS 8.8.8.8 UDP 53 port, the result is the port state is up
650) this.width=650; "title=" image "style=" Background-image:none; "border=" 0 "alt=" image "src=" http://s3.51cto.com/ Wyfs02/m00/98/72/wkiom1k8iwdqb6wtaadxxpksjki606.png "height=" 173 "/>
Of course, you can also scan the TCP port of the site
650) this.width=650; "title=" image "style=" Background-image:none; "border=" 0 "alt=" image "src=" http://s3.51cto.com/ Wyfs02/m01/98/73/wkiol1k8iwoxmjwqaaewy02b6bw909.png "height=" 173 "/>
At the command line, enter nmap directly to see instructions for specific commands
[C:\~]$ Nmap
Nmap 6.46 (http://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 --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[:p robeport]>: 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
-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> is 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 at Target after the 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-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)
--log-errors:log errors/warnings to the Normal-format output file
--append-output:append to rather than clobber specified output files
--resume <filename>: Resume an aborted scan
--stylesheet <path/url>: XSL stylesheet to transform XML output to HTML
--webxml:reference stylesheet from nmap.org to more portable XML
--no-stylesheet:prevent associating of XSL stylesheet W/xml output
MISC:
-6:enable IPV6 Scanning
-a:enable OS detection, version detection, script scanning, and traceroute
--datadir <dirname>: Specify custom Nmap Data file location
--send-eth/--send-ip:send using raw Ethernet frames or IP packets
--privileged:assume the user is fully privileged
--unprivileged:assume the user lacks raw socket privileges
-v:print Version number
-h:print this Help summary page.
EXAMPLES:
Nmap-v-A scanme.nmap.org
Nmap-v-SN 192.168.0.0/16 10.0.0.0/8
Nmap-v-ir 10000-pn-p 80
See the Mans PAGE (http://nmap.org/book/man.html) for more OPTIONS and EXAMPLES
Nmap for Windows under command-line use