- This project demonstrates network reconnaissance and service enumeration using Kali Linux and Nmap against an intentionally vulnerable Metasploitable 2 virtual machine.
- The project was performed in a controlled VirtualBox lab environment.
- The main objective was to identify the target, verify connectivity, discover open ports, identify running services and analyze the exposed attack surface.
| Component | Details |
|---|---|
| Security Testing Machine | Kali Linux |
| Target Machine | Metasploitable 2 |
| Kali IP | 192.168.56.101 |
| Target IP | 192.168.56.102 |
| Network | 192.168.56.0/24 |
| Interface | eth0 |
| Virtualization | VirtualBox |
| Tool | Nmap |
First, the IP configuration of the Kali Linux machine was checked.
ip addr
- Kali Linux was assigned:192.168.56.101/24
- The active interface was:eth0
- The target Metasploitable 2 machine was:192.168.56.102
- Both machines were on the same 192.168.56.0/24 network.
Connectivity between Kali Linux and Metasploitable was tested using ICMP Ping.
ping -c 4 192.168.56.102
- 64 bytes from 192.168.56.102: icmp_seq=1 ttl=64
- 64 bytes from 192.168.56.102: icmp_seq=2 ttl=64
- 64 bytes from 192.168.56.102: icmp_seq=3 ttl=64
- 64 bytes from 192.168.56.102: icmp_seq=4 ttl=64
4 packets transmitted 4 received 0% packet loss
The result confirmed that:
- The target host was reachable.
- ICMP communication was working.
- No packet loss was observed.
- Kali Linux could communicate with the target.
Kali Linux | | ICMP Echo Request β Metasploitable | | ICMP Echo Reply β Kali Linux
ARP was used to verify Layer-2 connectivity with the target.
sudo arping -I eth0 192.168.56.102
-
The target responded with the MAC address: 08:00:27:22:3A:D9
-
Final result:
40 packets transmitted 40 packets received 0% unanswered
-
This confirmed that Kali Linux could resolve the target IP address to its MAC address.
-
IP Address: 192.168.56.102 β ARP β MAC Address 08:00:27:22:3A:D9
-
ARP stands for Address Resolution Protocol.
-
It is used on an IPv4 local network to find the MAC address associated with an IP address.
After confirming connectivity, a basic Nmap scan was performed.
nmap 192.168.56.102
Nmap identified the following open TCP ports:
| Port | State | Service |
|---|---|---|
| 21/tcp | Open | FTP |
| 22/tcp | Open | SSH |
| 23/tcp | Open | Telnet |
| 25/tcp | Open | SMTP |
| 53/tcp | Open | DNS |
| 80/tcp | Open | HTTP |
| 111/tcp | Open | RPCBind |
| 139/tcp | Open | NetBIOS-SSN / SMB |
| 445/tcp | Open | Microsoft-DS / SMB |
| 512/tcp | Open | Exec |
| 513/tcp | Open | Login |
| 514/tcp | Open | Shell |
| 1099/tcp | Open | RMI Registry |
| 1524/tcp | Open | IngresLock |
| 2049/tcp | Open | NFS |
| 2121/tcp | Open | FTP |
| 3306/tcp | Open | MySQL |
| 5432/tcp | Open | PostgreSQL |
| 5900/tcp | Open | VNC |
| 6000/tcp | Open | X11 |
| 6667/tcp | Open | IRC |
| 8009/tcp | Open | AJP13 |
| 8180/tcp | Open | HTTP |
- Nmap also reported 977 closed TCP ports. -Nmap also reported:
- 977 closed TCP ports
Examples of discovered services:
-
21 β FTP
-
22 β SSH
-
23 β Telnet
-
80 β HTTP
-
139 β SMB
-
445 β SMB
-
3306 β MySQL
-
5432 β PostgreSQL
-
5900 β VNC
-
An open port means that a service is listening and accepting network connections on that port.
-
An open port does not automatically mean that the service is vulnerable. Further investigation is required.
After identifying open ports, service and version detection was performed.
nmap -sV 192.168.56.102
The -sV option attempts to identify the service and version running on open ports.
| Port | State | Service | Version |
|---|---|---|---|
| 21/tcp | Open | FTP | vsftpd 2.3.4 |
| 22/tcp | Open | SSH | OpenSSH 4.7p1 |
| 23/tcp | Open | Telnet | Linux telnetd |
| 25/tcp | Open | SMTP | Postfix smtpd |
| 53/tcp | Open | DNS | ISC BIND 9.4.2 |
| 80/tcp | Open | HTTP | Apache httpd 2.2.8 |
| 111/tcp | Open | RPCBind | 2 |
| 139/tcp | Open | NetBIOS-SSN | Samba smbd 3.Xβ4.X |
| 445/tcp | Open | SMB | Samba smbd 3.Xβ4.X |
| 512/tcp | Open | Exec | netkit-rsh rexecd |
| 513/tcp | Open | Login | rlogind |
| 514/tcp | Open | Shell | Netkit rshd |
| 1099/tcp | Open | Java RMI | GNU Classpath grmiregistry |
| 1524/tcp | Open | Bind Shell | Metasploitable root shell |
| 2049/tcp | Open | NFS | Version 2β4 |
| 2121/tcp | Open | FTP | ProFTPD 1.3.1 |
| 3306/tcp | Open | MySQL | MySQL 5.0.51a-3ubuntu5 |
| 5432/tcp | Open | PostgreSQL | PostgreSQL 8.3.0β8.3.7 |
| 5900/tcp | Open | VNC | VNC Protocol 3.3 |
| 6000/tcp | Open | X11 | Access denied |
| 6667/tcp | Open | IRC | UnrealIRCd |
| 8009/tcp | Open | AJP13 | Apache Jserv Protocol v1.3 |
| 8180/tcp | Open | HTTP | Apache Tomcat/Coyote JSP 1.1 |
- Target MAC Address: 08:00:27:22:3A:D9
- Nmap identified the target as: metasploitable.localdomain
- Operating system information: Unix / Linux
- Service enumeration provides more information than a basic port scan.
- For example: 22/tcp open ssh
- only tells us that SSH is available.
- After version detection:
- 22/tcp open ssh OpenSSH 4.7p1
- we have additional information about the software running on that port.
- This information can help security teams identify outdated software and prioritize security assessment and patching.
The scan identified several categories of exposed services.
22 β SSH 23 β Telnet 5900 β VNC
These services provide remote access capabilities and should be properly secured and monitored.
80 β HTTP 8009 β AJP13 8180 β Apache Tomcat
Web-facing services should be patched, securely configured and monitored.
21 β FTP 139 β SMB 445 β SMB 2049 β NFS 2121 β FTP
File-sharing services should be restricted to authorized users and systems.
3306 β MySQL 5432 β PostgreSQL
Database services should not be unnecessarily exposed to untrusted networks.
The reconnaissance exercise identified:
- Multiple open TCP ports
- Multiple remote-access services
- Legacy network services
- Multiple web services
- File-sharing services
- Database services
- Service and version information
- A large exposed attack surface
The target is Metasploitable 2, which is intentionally vulnerable and designed for security training.
- Network reconnaissance is important from a SOC Analyst perspective.
- An attacker may perform scanning before attempting exploitation.
A SOC Analyst may detect:
- Multiple connection attempts
- Connections to many ports
- Port scanning
- Service enumeration
- Repeated network requests
- Scanning activity from a single source IP
Such activity can be investigated using:
- SIEM
- Firewall logs
- IDS/IPS
- Network traffic analysis
- Authentication logs
- Endpoint logs
For example, if one source IP rapidly attempts connections to many ports on the same target, a SOC Analyst may investigate it as possible reconnaissance activity.
-
IP Configuration
Check the IP address and network interface of the Kali Linux machine. -
Target Identification
Identify the Metasploitable 2 target IP address. -
Connectivity Testing
Use ICMP Ping to verify communication between Kali Linux and the target. -
ARP Verification
Use ARP to verify the target's MAC address on the local network. -
Port Scanning
Use Nmap to identify open TCP ports. -
Service Enumeration
Use Nmap-sVto identify running services and their versions. -
Attack Surface Analysis
Categorize the exposed services and potential entry points. -
Security Findings
Document the discovered services, legacy software, and exposed attack surface. -
SOC Analyst Relevance
Understand how reconnaissance and port-scanning activity can be detected and investigated by a SOC Analyst.
This project demonstrated a complete network reconnaissance and service enumeration workflow using Kali Linux and Nmap against an intentionally vulnerable Metasploitable 2 virtual machine.
The project covered:
- IP configuration
- ICMP Ping
- TTL
- ARP
- MAC address identification
- TCP port discovery
- Service enumeration
- Version detection
- Attack surface analysis
- Security observations
- SOC Analyst relevance
The practical exercise provided hands-on experience in identifying exposed network services and understanding how reconnaissance activity can be relevant to SOC monitoring and investigation.




