IMPLEMENTATION OF NMAP TOOL
AIM:
To implement the Nmap tool to sniff a network and audit the security of a system.
DEFINITION:
Nmap (Network Mapper) is an open-source network scanning tool used to discover hosts and
services on a network and assess their security.
Algorithm:
1. Install Nmap: Ensure Nmap is installed on the system.
Command:
sudo apt install nmap
2. Define Target: Specify the target IP or subnet to scan.
3. Execute Nmap Commands: Use Nmap commands to perform different types of scans. Examples:
- Ping Scan: To check live hosts.
Command: nmap -sn <target_ip>
- Port Scan: To check open ports on the target system.
Command: nmap -p 1-65535 <target_ip>
- Service Version Detection: To identify software versions on open ports.
Command: nmap -sV <target_ip>
- Vulnerability Scan: To check for common vulnerabilities.
Command: nmap --script vuln <target_ip>
Additional Nmap Commands:
1. Verbose Mode: Display detailed output during scanning.
Command: nmap -v <target_ip>
2. OS Detection: Identify the operating system running on the target host.
Command: nmap -O <target_ip>
3. Aggressive Scan: Perform an all-in-one scan (OS detection, version detection, etc.).
Command: nmap -A <target_ip>
4. Save Output to a File: Save scan results for documentation.
Command: nmap -oN [Link] <target_ip>
5. Scan for Specific Ports: Scan specific ports instead of the entire range.
Command: nmap -p 22,80,443 <target_ip>
OUTPUT:
Starting Nmap 7.94 ( [Link] ) at 2025-02-12 14:00 UTC
Nmap scan report for [Link]
Host is up (0.0030s latency)
Not shown: 999 filtered ports
PORT STATE SERVICE
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 2.42 seconds
CONCLUSION:
Hence, the Nmap tool to sniff a network and audit the security of a system is performed
successfully.