Lab 3 Nmap
Lab 3 Nmap
LAB RECORD
Semester-I
LAB OBJECTIVE –
1. Understand the basics of Nmap and its importance in network scanning.
2. Perform network discovery to identify active hosts and services.
3. Explore various Nmap scanning techniques for vulnerability assessment.
THEORY
• Nmap (Network Mapper) is a free, open-source tool used for network discovery and
security auditing. It can:
• Detect live hosts on a network.
• Identify open ports and associated services.
• Determine operating system details and potential vulnerabilities.
• Support a variety of scanning techniques, including TCP, UDP, SYN, and others.
PROCEDURE:
Task 1: Basic Host Discovery
1. Lunch the terminal on your system.
2. Execute the following command to identify live hosts in a subnet:
3. Observe the output and note the live hosts discovered.
3
Task 4: OS Detection
1. Determine the operating system running on the target machine:
2. Note the operating system information.
4
Summary of Commands
1. Host Discovery:
nmap -sn 192.168.1.22/24
2. Port Scanning:
nmap -p 1-1000 192.168.1.22
3. Service and Version Detection
nmap -sV 192.168.1.22
4. OS Detection:
nmap -O 192.168.1.22
5. Aggressive Scan:
nmap -A 192.168.1.22
5
Results:
• List the live hosts discovered.
• Record open ports, services, and their versions.
• Note the OS details and any vulnerabilities found.
Precautions:
1. Always ensure you have explicit permission to scan any network or
host.
2. Use a controlled environment like virtual labs or dedicated test
systems.
3. Document findings responsibly and do not share sensitive
information.
Conclusion:
This lab demonstrates the utility of Nmap in network discovery and
security assessment. By performing various scans, users can identify
potential vulnerabilities and secure their systems proactively.
6
Signature Of Faculty –