9.3.8 Lab - Exploring Nmap
9.3.8 Lab - Exploring Nmap
Topology
Objectives
Part 1: Exploring Nmap
Part 2: Scanning for Open Ports
Background / Scenario
Port scanning is usually part of a reconnaissance attack. There are a variety of port scanning methods that
can be used. We will explore how to use the Nmap utility. Nmap is a powerful network utility that is used for
network discovery and security auditing.
Required Resources
CyberOps Workstation virtual machine
Internet access
Instructions
What is Nmap?
- A open source tool for network exploration and security. It was design to rapidly scan large networks,
although it works fine against single hosts. Nmap use raw IP packets in novel ways to determine what
hosts are available on the network, what services (applications name and version) those host are
offering, what operating system (and OS versions) they are running, what type of packet
filters/firewalls are in use, and dozen of other characteristics.
2017 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 7 www.netacad.com
Lab - Exploring Nmap
d. While in the man page, you can use the up and down arrow keys to scroll through the pages. You can
also press the space bar to forward one page at a time.
To search for a specific term or phrase use enter a forward slash (/) or question mark (?) followed by the
term or phrase. The forward slash searches forward through the document, and the question mark
searches backward through the document. The key n moves to the next match.
Type /example and press ENTER. This will search for the word example forward through the man page.
2017 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 7 www.netacad.com
Lab - Exploring Nmap
e. In the first instance of example, you see three matches. To move to the next match, press n.
Look at Example 1.
Question:
f. Scroll through the page to learn more about nmap. Type q when finished.
2017 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 7 www.netacad.com
Lab - Exploring Nmap
2017 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 7 www.netacad.com
Lab - Exploring Nmap
b. To locate other hosts on this LAN, enter nmap -A -T4 network address/prefix. The last octet of the IP
address should be replaced with a zero. For example, in the IP address 10.0.2.15, the .15 is the last
octet. Therefore, the network address is 10.0.2.0. The /24 is called the prefix and is a shorthand for the
netmask 255.255.255.0. If your VM has a different netmask, search the internet for a “CIDR conversion
table” to find your prefix. For example, 255.255.0.0 would be /16. The network address 10.0.2.0/24 is
used in this example
Note: This operation can take some time, especially if you have many devices attached to the network. In
one test environment, the scan took about 4 minutes.
[analyst@secOps ~]$ nmap -A -T4 10.0.2.0/24
2017 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 7 www.netacad.com
Lab - Exploring Nmap
From your Nmap results, list the IP addresses of the hosts that are on the same LAN as your VM. List
some of the services that are available on the detected hosts.
Type your answers here.
2017 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 7 www.netacad.com
Lab - Exploring Nmap
Reflection Question
Nmap is a powerful tool for network exploration and management. How can Nmap help with network security?
How can Nmap be used by a threat actor as a nefarious tool?
- Nmap can be used to scan an internal network for specific open ports to identify the extent of a
security breach. It can also be used to inventory a network to ensure that all the systems are probably
patched against security concerns. On the other hand, nmap can be used for reconnaissance to
determine open ports and other information about the network.
Type your answers here.
End of document
2017 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 7 www.netacad.com