In this lab, we’ll use a well-known network and host scanning tool named NMAP to scan a host for open ports and attempt to identify which services are running on those ports.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Install NMAP.
- Switch from the
cloud_user
account toroot
by runningsudo su
and entering thecloud_user
password. - Run the command
apt-get update
. - Run the command
apt-get install -y nmap
.
- Switch from the
- Scan the localhost with NMAP and output results to a file named `scan.txt`.
Run the following command:
nmap -sV localhost -oN scan.txt