ITSY 2443 - Learning Activity Plans
[pic]
Nmap Lab
Lab Activity 1
Learning Objective (Learn the basic functions of Nmap)
Students will install and use Nmap software on workstations. Nmap (“Network Mapper”) is a free utility that allows an individual to explore a network rapidly and identify potential weaknesses within that network.
Recommended Resources for this Learning Activity
Nmap™ 1.3.1 Available for download:
(Windows 2000/XP and Linux version are available)
WinPcap Available for download:
Assessment of the network. ("Network Mapper") is an open source utility for network examination or security auditing. It was originally designed in the mid-1990’s with the intention of combining multiple styles of network scanning. Nmap uses raw IP packets to determine whether a host is available on the network, what services (application name and version) are being utilized, what operating system (Nmap provides a best guess approach to OS identification) they are running, what type of filters/firewalls are in use, and many other attributes about the network. Nmap runs on most types of computer platforms and offers both command line and graphical versions. Nmap is free software, available with full source code under the terms of the GNU GPL.
[pic]
Recommended Instructor Preparation for Learning Activity
Instructor Notes:
Scanning, as a method for discovering exploitable holes in the network has been utilized primarily by hackers for many years but it is steadily becoming common place by system administrators. System administrators needed a way of penetration testing their networks rapidly and that is where Nmap comes into the picture. It allows an administrator to perform numerous scans for surveying the protocols and ports on which a target machine or range of machines is listening. Nmap provides valuable information that can be used to harden network defenses and gain insight as to how an attack may have occurred. In most cases a defensive posture is taken by IT personnel and it is only after an attack has occurred that security becomes a factor. It is important to note that a huge amount of data can be derived from using Nmap and that students should be instructed about acceptable use policies as applicable. Students should also identify resources that will allow them to gain more insight into uses for Nmap. Some of the most common scans will be listed in the next section.
[pic]
[pic]
Scan Types and Benefits:
There are numerous scan types that are available with Nmap and all offer valuable information to the Administrator and hacker alike. This is a listing of the most common scans:
• Connect() scanning : This is the most basic form of TCP scanning. The connect() system call provided by most operating systems is designed to open a connection to all interesting ports on a machine or network. In the event the port is listening, connect() will be successful, otherwise a notification that the port isn't reachable will be displayed. Connect scans are the quickest scans supported by Nmap but it is also the easiest to detect and filter. Most notably is when the administrator checks their security logs and it displays numerous connections and error messages alerting them to a potential breach and they will shutdown those ports (in theory).
• SYN scanning : This technique is referred to as "half-open" scanning, because you don't open a full TCP connection. You send a SYN packet to the target as if you are going to open a real connection and wait for a response whether it is a ACK or NAK. A SYN ACK indicates the port is listening. Showing that a potential exploit exists. The main advantage to this type of scan is that few sites log this type of activity.
• FIN scanning : SYN scans are usually sent in under the “radar” of most firewalls and IDS’s but some firewalls actually watch for SYN scans on restricted ports so occasionally a deeper scan is required and that is where a FIN scans comes into play. With this scan type, closed ports often reply to FIN packet with the proper RST. Open ports tend to ignore the packet all together.
• Ping Sweep (ICMP echo scanning): Isn't actually a port scan, since ICMP doesn't have a port abstraction. Its main purpose is to scan a large number of hosts to determine if they are up or not. The hosts are all scanned in parallel, allowing this type of scan to be very quick.
• UDP Scan (UDP ICMP port unreachable scanning) : This scanning method is different from most scans as it uses the UDP protocol instead of TCP. While this protocol is less complicated scanning it is more difficult. Due largely in part to the fact that open ports are not required to send a response to our probes.
****NOTE****
There are several other scan types that will be discussed in more detail in the next Nmap lab.
[pic]
To scan or not to scan, that is the question!
The benefit to scanning a network is that you can use it in your finger printing techniques. A benefit to learning the OS remotely can be extremely valuable since most exploits are based on OS and ports. For instance, you are testing a network and find that Port 80 is active and you want to try and gain access. It is extremely important that you know what OS is running because you can in effect crash the system before you have had the chance to infiltrate the network.
Scanning can also be used in Social Engineering attacks. If you have identified the OS and ports that are open, you can use this information to gain even more valuable information by pretending to be IT support. Simply by telling them that your are “insert name here” from IT and that due to excessive traffic on port “insert port number here” we are trying to tailor the bandwidth to your needs. May I have your USERID and PASSWORD so we can setup the appropriate TxPort channels so your internet connection will be faster? Sadly, this approach is often very successful.
[pic]
Starting a basic scan:
Recommended Instructor Preparation for Learning Activity
Instructor Notes:
During this portion of the lab the students will install Nmap on the machines. The instructor will have a machine designated as the target host with a static IP address to enable continued scanning of the same IP address. A server running IIS with a web page or an FTP server will add to the realism of the lab. Students can also choose a range of IP addresses that the instructor wants scanned. Have the students take note of the task bar on Nmap that shows all of the command line commands that are used to accomplish the same tasks. The instructor can require the students to take note of all output and have them research potential exploits and counter measures for each exploit.
Steps:
1. The students will start the Nmap program.
2. The students will choose a scan type based on the needs of the scan. (OS finger print, port scan etc.)
3. The students will use the address that was given by the instructor to begin their scan. (ex. 192.168.0.6)
[pic]
****Choose a ping scan first to show an error message.****
4. The student will enter the address and select ping scan. Then click the scan button.
[pic]
****Notice the warning about using a ping sweep to conduct OS fingerprints!!! As discussed earlier, Nmap will give an error if the scan you choose doesn’t work.****
5. The student will enter the address and select SYN scan. Then click the scan button.
[pic]
****The students should take note that not only did the scan reveal open ports, it was able to determine the OS in under 5 seconds!!!!****
****Based on the results of the scan, have students lookup potential exploits of the ports or services and present those to the instructor.****
Interesting ports on HOST (192.168.0.6):
(The 1591 ports scanned but not shown below are in state: closed)
Port State Service
21/tcp open ftp
25/tcp open smtp
80/tcp open http
135/tcp open loc-srv
139/tcp open netbios-ssn
443/tcp open https
445/tcp open microsoft-ds
1025/tcp open NFS-or-IIS
1027/tcp open IIS
5000/tcp open UPnP
Remote operating system guess: Windows 2000/XP/ME
Nmap run completed -- 1 IP address (1 host up) scanned in 1 second
****Here is what a typical SYN scan looks like on an Intrusion Detection System:
This is a snort log of a SYN scan.
[**] [111:13:1] spp_stream4: STEALTH ACTIVITY (SYN FIN scan) detection [**]
07/15-14:45:47.877211 192.168.0.3:10004 -> 202.87.19.229:1002
TCP TTL:255 TOS:0x0 ID:2304 IpLen:20 DgmLen:40
******SF Seq: 0x90AB213 Ack: 0x0 Win: 0x1000 TcpLen: 20
Jul 16 11:52:17 192.168.0.4:1460 -> 192.168.0.3:1109 SYN ******S*
Jul 16 11:52:17 192.168.0.4:1461 -> 192.168.0.3:317 SYN ******S*
Jul 16 11:52:17 192.168.0.4:1462 -> 192.168.0.3:174 SYN ******S*
Jul 16 11:52:17 192.168.0.4:1463 -> 192.168.0.3:504 SYN ******S*
Jul 16 11:52:17 192.168.0.4:1464 -> 192.168.0.3:343 SYN ******S*
Jul 16 11:52:17 192.168.0.4:1465 -> 192.168.0.3:672 SYN ******S*
****
Instructor Notes:
During this portion of the lab the students will be scanning using the UDP protocol. UDP is a connection-less protocol that simply sends out packets and is considered a best effort delivery method. UDP is useful for streaming audio or video. Nmap will send a 0 (zero) byte packet to the ports. When a ICMP port unreachable message is received Nmap believes that the port is closed. If no message is received then the port is considered open. Since UDP is considered unreliable, it is often not monitored. This provides a huge hole in the perimeter of the networks security.
6. The student will enter the address and select UDP scan. Then click the scan button.
[pic]
****Have the students note that a UDP scan could not identify the OS.****
Instructor Notes:
Have the students look up potential exploits that are unique to UDP protocols and present those to the instructor. A good place to try and gather information about exploits is at:
Instructor Notes:
During this portion of the lab the students will be scanning using the TCP connect scan. TCP is a connection-oriented protocol that attempts to establish a 3 way handshake with the target. If the session is established then the port is considered interesting (open), and if not the scanner moves on to the next port. This provides valuable information to a would be hacker about the security of your network.
7. The student will enter the address and select TCP connect scan. Then click the scan button.
[pic]
****This scan doesn’t provide verbose amounts of information but when you only need to see if you can connect with the host there is no need for extra information…..yet.****
Typical output from an Intrusion Detection System by a TCP connect scan.
[**] [100:2:1] spp_portscan: portscan status from 192.168.0.4: 261 connections across 1 hosts: TCP(261), UDP(0) [**]
07/16-12:01:44.071271
[**] [1:469:1] ICMP PING NMAP [**]
[Classification: Attempted Information Leak] [Priority: 2]
07/16-12:01:46.050056 192.168.0.4 -> 192.168.0.3
ICMP TTL:45 TOS:0x0 ID:17750 IpLen:20 DgmLen:28
Type:8 Code:0 ID:31266 Seq:8282 ECHO
[Xref => ]
Jul 16 12:19:39 192.168.0.4:2418 -> 192.168.0.3:7006 SYN ******S*
Jul 16 12:19:39 192.168.0.4:2419 -> 192.168.0.3:7006 SYN ******S*
Jul 16 12:19:39 192.168.0.4:2420 -> 192.168.0.3:7006 SYN ******S*
Instructor Notes:
How does a three way handshake work?
[pic]
8. The student will enter the address and select SYN scan with the verbose option selected. Then click the scan button.
****First select the verbose option located under the options tab.****
[pic]
****Then select SYN scan and press scan.****
Pay particular attention to the output from the scan.
[pic]
[pic]
Instructor’s notes:
Point out to the students that the sequence numbers are being displayed and why this information can be used in a playback type of attack. Especially since the increments are only by one for every packet.
Instructor Notes:
At the end of this portion the students should have a basic knowledge of how to use Nmap and its capabilities. Provide adequate time for the students to use and practice with the GUI and command line versions. As practice is needed to become more proficient.
Nmap Quiz:
1. Why would an administrator want to scan their own system or network?
2. What is the major difference between a TCP connect and a UDP scan?
3. Using Nmap, provide a scan of additional hosts and document the different results.
4. Using Nmap, provide a scan of the same host using all available scan options.
5. What information is gained by running a scan with the verbose options selected?
6. In the process of identify potential exploits, what additional knowledge was gained?
7. Why is it important to perform an OS fingerprint?
8. Why should ICMP be disabled on a network?
9. Why is UDP used to scan a network more than TCP scans?
10. When using GUI version of Nmap versus the command line, what is the benefit to using one over the other?
[pic]
Common Flags and Settings:
These settings are taken directly from the MAN pages and are considered free to distribute. Feel free to allow the students to practice with both the GUI version of Nmap and the command line Nmap.
OPTIONS:
Most options sets within Nmap can be utilized together. There are however, some options that are specific to certain scan modes and Nmap will warn you of a combination of options are unsupported or not allowed.
SCAN TYPES
-sS TCP SYN scan: This technique is often referred to as "half-open"
scanning, because you don’t open a full TCP connection. You send
a SYN packet, as if you are going to open a real connection and
you wait for a response. A SYN|ACK indicates the port is listen-
ing. A RST is indicative of a non-listener. If a SYN|ACK is
received, a RST is immediately sent to tear down the connection
(actually our OS kernel does this for us). The primary advantage
to this scanning technique is that fewer sites will log it.
Unfortunately you need root privileges to build these custom SYN
packets. This is the default scan type for privileged users.
-sT TCP connect() scan: This is the most basic form of TCP scanning.
The connect() system call provided by your operating system is
used to open a connection to every interesting port on the
machine. If the port is listening, connect() will succeed, oth-
erwise the port isn’t reachable. One strong advantage to this
technique is that you don’t need any special privileges. Any
user on most UNIX boxes is free to use this call.
This sort of scan is easily detectable as target host logs will
show a bunch of connection and error messages for the services
which accept() the connection just to have it immediately shut-
down. This is the default scan type for unprivileged users.
-sF -sX -sN
Stealth FIN, Xmas Tree, or Null scan modes: There are times when
even SYN scanning isn’t clandestine enough. Some firewalls and
packet filters watch for SYNs to restricted ports, and programs
like Synlogger and Courtney are available to detect these scans.
These advanced scans, on the other hand, may be able to pass
through unmolested.
The idea is that closed ports are required to reply to your
probe packet with an RST, while open ports must ignore the pack-
ets in question (see RFC 793 pp 64). The FIN scan uses a bare
(surprise) FIN packet as the probe, while the Xmas tree scan
turns on the FIN, URG, and PUSH flags. The Null scan turns off
all flags. Unfortunately Microsoft (like usual) decided to com-
pletely ignore the standard and do things their own way. Thus
this scan type will not work against systems running Win-
dows95/NT. On the positive side, this is a good way to distin-
guish between the two platforms. If the scan finds open ports,
you know the machine is not a Windows box. If a -sF,-sX,or -sN
scan shows all ports closed, yet a SYN (-sS) scan shows ports
being opened, you are probably looking at a Windows box. This
is less useful now that nmap has proper OS detection built in.
There are also a few other systems that are broken in the same
way Windows is. They include Cisco, BSDI, HP/UX, MVS, and IRIX.
All of the above send resets from the open ports when they
should just drop the packet.
-sP Ping scanning: Sometimes you only want to know which hosts on a
network are up. Nmap can do this by sending ICMP echo request
packets to every IP address on the networks you specify. Hosts
that respond are up. Unfortunately, some sites such as
block echo request packets. Thus nmap can also
send a TCP ack packet to (by default) port 80. If we get an RST
back, that machine is up. A third technique involves sending a
SYN packet and waiting for a RST or a SYN/ACK. For non-root
users, a connect() method is used.
By default (for root users), nmap uses both the ICMP and ACK
techniques in parallel. You can change the -P option described
later.
Note that pinging is done by default anyway, and only hosts that
respond are scanned. Only use this option if you wish to ping
sweep without doing any actual port scans.
-sV Version detection: Afer TCP and/or UDP ports are discovered
using one of the other scan methods, version detection communi-
cates with those ports to try and determine more about what is
actually running. A file called nmap-service-probes is used to
determine the best probes for detecting various services and the
match strings to expect. Nmap tries to determine the service
protocol (e.g. ftp, ssh, telnet, http), the application name
(e.g. ISC Bind, Apache httpd, Solaris telnetd), the version num-
ber, and sometimes miscellaneous details like whether an X
server is open to connections or the SSH protocol version). If
Nmap was compiled with OpenSSL support, it will connect to SSL
servers to deduce the service listening behind the encryption.
When RPC services are discovered, the Nmap RPC grinder is used
to determine the RPC program and version numbers. Note that the
Nmap -A option also enables this feature. For a much more
detailed description of Nmap service detection, read our paper
at . There is a
related --version_trace option which causes Nmap to print out
extensive debugging info about what version scanning is doing
(this is a subset of what you would get with --packet_trace).
-sU UDP scans: This method is used to determine which UDP (User
Datagram Protocol, RFC 768) ports are open on a host. The tech-
nique is to send 0 byte UDP packets to each port on the target
machine. If we receive an ICMP port unreachable message, then
the port is closed. Otherwise we assume it is open. Unfortu-
nately, firewalls often block the port unreachable messages,
causing the port to appear open. Sometimes an ISP will block
only a few specific dangerous ports such as 31337 (back orifice)
and 139 (Windows NetBIOS), making it look like these vulnerable
ports are open. So don’t panic immediately. Unfortunately, it
isn’t always trivial to differentiate between real open UDP
ports and these filtered false-positives.
Some people think UDP scanning is pointless. I usually remind
them of the Solaris rpcbind hole. Rpcbind can be found hiding on
an undocumented UDP port somewhere above 32770. So it doesn’t
matter that 111 is blocked by the firewall. But can you find
which of the more than 30,000 high ports it is listening on?
With a UDP scanner you can! There is also the cDc Back Orifice
backdoor program which hides on a configurable UDP port on Win-
dows machines. Not to mention the many commonly vulnerable ser-
vices that utilize UDP such as snmp, tftp, NFS, etc.
Unfortunately UDP scanning is sometimes painfully slow since
most hosts implement a suggestion in RFC 1812 (section 4.3.2.8)
of limiting the ICMP error message rate. For example, the Linux
kernel (in net/ipv4/icmp.h) limits destination unreachable mes-
sage generation to 80 per 4 seconds, with a 1/4 second penalty
if that is exceeded. Solaris has much more strict limits (about
2 messages per second) and thus takes even longer to scan. nmap
detects this rate limiting and slows down accordingly, rather
than flood the network with useless packets that will be ignored
by the target machine.
As is typical, Microsoft ignored the suggestion of the RFC and
does not seem to do any rate limiting at all on Win95 and NT
machines. Thus we can scan all 65K ports of a Windows machine
very quickly. Whoop!
-sO IP protocol scans: This method is used to determine which IP
protocols are supported on a host. The technique is to send raw
IP packets without any further protocol header to each specified
protocol on the target machine. If we receive an ICMP protocol
unreachable message, then the protocol is not in use. Otherwise
we assume it is open. Note that some hosts (AIX, HP-UX, Digital
UNIX) and firewalls may not send protocol unreachable messages.
This causes all of the protocols to appear "open".
Because the implemented technique is very similar to UDP port
scanning, ICMP rate limit might apply too. But the IP protocol
field has only 8 bits, so at most 256 protocols can be probed
which should be possible in reasonable time anyway.
-sI
Idlescan: This advanced scan method allows for a truly blind TCP
port scan of the target (meaning no packets are sent to the tar-
get from your real IP address). Instead, a unique side-channel
attack exploits predictable "IP fragmentation ID" sequence gen-
eration on the zombie host to glean information about the open
ports on the target. IDS systems will display the scan as com-
ing from the zombie machine you specify (which must be up and
meet certain criteria). I wrote an informal paper about this
technique at .
Besides being extraordinarily stealthy (due to its blind
nature), this scan type permits mapping out IP-based trust rela-
tionships between machines. The port listing shows open ports
from the perspective of the zombie host. So you can try scan-
ning a target using various zombies that you think might be
trusted (via router/packet filter rules). Obviously this is
crucial information when prioritizing attack targets. Other-
wise, you penetration testers might have to expend considerable
resources "owning" an intermediate system, only to find out that
its IP isn’t even trusted by the target host/network you are
ultimately after.
You can add a colon followed by a port number if you wish to
probe a particular port on the zombie host for IPID changes.
Otherwise Nmap will use the port it uses by default for "tcp
pings".
-sA ACK scan: This advanced method is usually used to map out fire-
wall rulesets. In particular, it can help determine whether a
firewall is stateful or just a simple packet filter that blocks
incoming SYN packets.
This scan type sends an ACK packet (with random looking acknowl-
edgment/sequence numbers) to the ports specified. If a RST
comes back, the ports is classified as "unfiltered". If nothing
comes back (or if an ICMP unreachable is returned), the port is
classified as "filtered". Note that nmap usually doesn’t print
"unfiltered" ports, so getting no ports shown in the output is
usually a sign that all the probes got through (and returned
RSTs). This scan will obviously never show ports in the "open"
state.
-sW Window scan: This advanced scan is very similar to the ACK scan,
except that it can sometimes detect open ports as well as fil-
tered/unfiltered due to an anomaly in the TCP window size
reporting by some operating systems. Systems vulnerable to this
include at least some versions of AIX, Amiga, BeOS, BSDI, Cray,
Tru64 UNIX, DG/UX, OpenVMS, Digital UNIX, FreeBSD, HP-UX, OS/2,
IRIX, MacOS, NetBSD, OpenBSD, OpenStep, QNX, Rhapsody, SunOS
4.X, Ultrix, VAX, and VxWorks. See the nmap-hackers mailing
list archive for a full list.
-sR RPC scan. This method works in combination with the various
port scan methods of Nmap. It takes all the TCP/UDP ports found
open and then floods them with SunRPC program NULL commands in
an attempt to determine whether they are RPC ports, and if so,
what program and version number they serve up. Thus you can
effectively obtain the same info as "rpcinfo -p" even if the
target’s portmapper is behind a firewall (or protected by TCP
wrappers). Decoys do not currently work with RPC scan, at some
point I may add decoy support for UDP RPC scans.
-sL List scan. This method simply generates and prints a list of IP
addresses or hostnames without actually pinging or port scanning
them. DNS name resolution will be performed unless you use -n.
-b
FTP bounce attack: An interesting "feature" of the ftp protocol
(RFC 959) is support for "proxy" ftp connections. In other
words, I should be able to connect from to the FTP
server of and request that the server send a file
ANYWHERE on the Internet! Now this may have worked well in 1985
when the RFC was written. But in today’s Internet, we can’t have
people hijacking ftp servers and requesting that data be spit
out to arbitrary points on the Internet. As *Hobbit* wrote back
in 1995, this protocol flaw "can be used to post virtually
untraceable mail and news, hammer on servers at various sites,
fill up disks, try to hop firewalls, and generally be annoying
and hard to track down at the same time." What we will exploit
this for is to (surprise, surprise) scan TCP ports from a
"proxy" ftp server. Thus you could connect to an ftp server
behind a firewall, and then scan ports that are more likely to
be blocked (139 is a good one). If the ftp server allows reading
from and writing to some directory (such as /incoming), you can
send arbitrary data to ports that you do find open (nmap doesn’t
do this for you though).
The argument passed to the "b" option is the host you want to
use as a proxy, in standard URL notation. The format is: user-
name:password@server:port. Everything but server is optional.
To determine what servers are vulnerable to this attack, you can
see my article in Phrack 51. An updated version is available at
the nmap URL ().
GENERAL OPTIONS
None of these are required but some can be quite useful. Note
that the -P options can now be combined -- you can increase your
odds of penetrating strict firewalls by sending many probe types
using different TCP ports/flags and ICMP codes.
-P0 Do not try to ping hosts at all before scanning them. This
allows the scanning of networks that don’t allow ICMP echo
requests (or responses) through their firewall.
is an example of such a network, and thus you should always use
-P0 or -PT80 when portscanning . Note tht "ping"
in this context may involve more than the traditional ICMP echo
request packet. Nmap supports many such probes, including arbi-
trary combinations of TCP, UDP, and ICMP probes. By default,
Nmap sends an ICMP echo request and a TCP ACK packet to port 80.
-PT [portlist]
Use TCP "ping" to determine what hosts are up. Instead of send-
ing ICMP echo request packets and waiting for a response, we
spew out TCP ACK packets throughout the target network (or to a
single machine) and then wait for responses to trickle back.
Hosts that are up should respond with a RST. This option pre-
serves the efficiency of only scanning hosts that are up while
still allowing you to scan networks/hosts that block ping pack-
ets. For non root users, we use connect(). To set the destina-
tion ports of the probe packets use -PT[,port2][...].
The default port is 80, since this port is often not filtered
out. Note that this option now accepts multiple, comma-sepa-
rated port numbers.
-PS [portlist]
This option uses SYN (connection request) packets instead of ACK
packets for root users. Hosts that are up should respond with a
RST (or, rarely, a SYN|ACK). You can set the destination ports
in the same manner as -PT above.
-PU [portlist]
This option sends UDP probes to the specified hosts, expecting
an ICMP port unreachable packet (or possibly a UDP response if
the port is open) if the host is up. Since many UDP services
won’t reply to an empty packet, your best bet might be to send
this to expected-closed ports rather than open ones.
-PE This option uses a true ping (ICMP echo request) packet. It
finds hosts that are up and also looks for subnet-directed
broadcast addresses on your network. These are IP addresses
which are externally reachable and translate to a broadcast of
incoming IP packets to a subnet of computers. These should be
eliminated if found as they allow for numerous denial of service
attacks (Smurf is the most common).
-PP Uses an ICMP timestamp request (type 13) packet to find listen-
ing hosts.
-PM Same as -PE and -PP except uses a netmask request (ICMP type
17).
-PB This is the default ping type. It uses both the ACK ( -PT ) and
ICMP echo request ( -PE ) sweeps in parallel. This way you can
get firewalls that filter either one (but not both). The TCP
probe destination port can be set in the same manner as with -PT
above. Note that this flag is now deprecated as pingtype flags
can now be used in combination. So you should use both "PE" and
"PT" to achieve this same effect.
-O This option activates remote host identification via TCP/IP fin-
gerprinting. In other words, it uses a bunch of techniques to
detect subtleties in the underlying operating system network
stack of the computers you are scanning. It uses this informa-
tion to create a "fingerprint" which it compares with its
database of known OS fingerprints (the nmap-os-fingerprints
file) to decide what type of system you are scanning.
If Nmap is unable to guess the OS of a machine, and conditions
are good (e.g. at least one open port), Nmap will provide a URL
you can use to submit the fingerprint if you know (for sure) the
OS running on the machine. By doing this you contribute to the
pool of operating systems known to nmap and thus it will be more
accurate for everyone. Note that if you leave an IP address on
the form, the machine may be scanned when we add the fingerprint
(to validate that it works).
The -O option also enables several other tests. One is the
"Uptime" measurement, which uses the TCP timestamp option (RFC
1323) to guess when a machine was last rebooted. This is only
reported for machines which provide this information.
Another test enabled by -O is TCP Sequence Predictability Clas-
sification. This is a measure that describes approximately how
hard it is to establish a forged TCP connection against the
remote host. This is useful for exploiting source-IP based
trust relationships (rlogin, firewall filters, etc) or for hid-
ing the source of an attack. The actual difficulty number is
based on statistical sampling and may fluctuate. It is gener-
ally better to use the English classification such as "worthy
challenge" or "trivial joke". This is only reported in normal
output with -v.
When verbose mode (-v) is on with -O, IPID Sequence Generation
is also reported. Most machines are in the "incremental" class,
which means that they increment the "ID" field in the IP header
for each packet they send. This makes them vulnerable to sev-
eral advanced information gathering and spoofing attacks.
-A This option enables _a_dditional _a_dvanced and _a_ggressive
options. I haven’t decided exactly which it stands for yet :).
Presently this enables OS Detection (-O) and version scanning
(-sV). More features may be added in the future. The point is
to enable a comprehensive set of scan options without people
having to remember a large set of flags. This option only
enables features, and not timing options (such as -T4) or ver-
bosity options (-v) that you might wan’t as well.
-6 This options enables IPv6 support. All targets must be IPv6 if
this option is used, and they can be specified via normal DNS
name (AAAA record) or as a literal IP address such as
3ffe:501:4819:2000:210:f3ff:fe03:4d0 . Currently, connect() TCP
scan and TCP connect() Ping scan are supported. If you need UDP
or other scan types, have a look at
.
-I This turns on TCP reverse ident scanning. As noted by Dave Gold-
smith in a 1996 Bugtraq post, the ident protocol (RFC 1413)
allows for the disclosure of the username that owns any process
connected via TCP, even if that process didn’t initiate the con-
nection. So you can, for example, connect to the http port and
then use identd to find out whether the server is running as
root. This can only be done with a full TCP connection to the
target port (i.e. the -sT scanning option). When -I is used,
the remote host’s identd is queried for each open port found.
Obviously this won’t work if the host is not running identd.
-f This option causes the requested SYN, FIN, XMAS, or NULL scan to
use tiny fragmented IP packets. The idea is to split up the TCP
header over several packets to make it harder for packet fil-
ters, intrusion detection systems, and other annoyances to
detect what you are doing. Be careful with this! Some programs
have trouble handling these tiny packets. My favorite sniffer
segmentation faulted immediately upon receiving the first
36-byte fragment. After that comes a 24 byte one! While this
method won’t get by packet filters and firewalls that queue all
IP fragments (like the CONFIG_IP_ALWAYS_DEFRAG option in the
Linux kernel), some networks can’t afford the performance hit
this causes and thus leave it disabled.
Note that I do not yet have this option working on all systems.
It works fine for my Linux, FreeBSD, and OpenBSD boxes and some
people have reported success with other *NIX variants.
-v Verbose mode. This is a highly recommended option and it gives
out more information about what is going on. You can use it
twice for greater effect. You can also use -d a few times if
you really want to get crazy with scrolling the screen!
-h This handy option display a quick reference screen of nmap usage
options. As you may have noticed, this man page is not exactly
a "quick reference" :)
-oN
This logs the results of your scans in a normal human readable
form into the file you specify as an argument.
-oX
This logs the results of your scans in XML form into the file
you specify as an argument. This allows programs to easily cap-
ture and interpret Nmap results. You can give the argument "-"
(without quotes) to shoot output into stdout (for shell
pipelines, etc). In this case normal output will be suppressed.
Watch out for error messages if you use this (they will still go
to stderr). Also note that "-v" may cause some extra informa-
tion to be printed. The Document Type Definition (DTD) defining
the XML output structure is available at
nmap/data/nmap.dtd .
-oG
This logs the results of your scans in a grepable form into the
file you specify as an argument. This simple format provides
all the information on one line (so you can easily grep for port
or OS information and see all the IPs. This used to be the pre-
ferred mechanism for programs to interact with Nmap, but now we
recommend XML output (-oX instead). This simple format may not
contain as much information as the other formats. You can give
the argument "-" (without quotes) to shoot output into stdout
(for shell pipelines, etc). In this case normal output will be
suppressed. Watch out for error messages if you use this (they
will still go to stderr). Also note that "-v" will cause some
extra information to be printed.
-oA
This tells Nmap to log in ALL the major formats (normal,
grepable, and XML). You give a base for the filename, and the
output files will be base.nmap, base.gnmap, and base.xml.
-oS
thIs l0gz th3 r3suLtS of YouR ScanZ iN a s| ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- advanced host detection insecure
- port numbers del mar college
- washington university in st louis
- nmap network security scanner man page
- nmap network security scanner
- software for network administrators and security guards
- new mexico institute of mining and technology
- itsy 2443 learning activity plans
- a project of
Related searches
- watershed activity for kids
- ecological succession activity cards
- ecological succession activity picture cards
- succession activity answer key
- two year old activity sheets
- water activity for toddlers
- 2 year old activity worksheet
- professional learning plans for teachers
- activity lesson plans for toddlers
- online learning platform | kids learning games | sumdog
- activity plans for preschoolers
- online learning platform kids learning games sumdog