๐ Nmap โ Network Mapper Tool
Nmap (Network Mapper) is a free and open-source tool used for network discovery, security auditing, and port scanning. Itโs a favorite among ethical hackers, system admins, and cybersecurity professionals.
________________________________________
โก What is Nmap?
Nmap is a command-line tool used to discover hosts and services on a computer network by sending packets and analyzing the responses.
________________________________________
๐ ๏ธ Common Uses
Use Case Description
Port Scanning Discover open/closed ports on a host
Network Discovery Find devices connected to a network
OS Detection Determine the operating system running on a target
Service Version Detection Identify software and version running on services
Vulnerability Scanning Identify known vulnerabilities via NSE scripts
Firewall Evasion Test firewall rules and bypassing techniques
________________________________________
๐ฆ How to Install Nmap
๐ง Linux:
sudo apt install nmap
๐ช Windows:
Download from: https://nmap.org/download.html
________________________________________
๐ป Basic Commands
Command Description
nmap <target> Basic scan of the target IP/hostname
nmap -p 1-65535 <target> Scan all ports
nmap -sV <target> Service version detection
nmap -O <target> OS detection
nmap -A <target> Aggressive scan (OS, services, traceroute)
nmap -Pn <target> Scan without ping (useful if ICMP is blocked)
________________________________________
๐งฉ Example
nmap -A 192.168.1.1
Scans the device at 192.168.1.1 for services, OS details, and traceroute.
________________________________________
๐ Nmap Scripting Engine (NSE)
Nmap comes with powerful scripts for:
โข Vulnerability detection
โข Malware scanning
โข Brute force attacks
โข Default credentials testing
โข Web service detection
nmap --script vuln <target>
________________________________________
๐ง Real-Life Applications
โข ๐ Penetration Testing โ to find open ports and exploitable services
โข ๐ฅ๏ธ Network Inventory โ map all devices on a LAN
โข ๐ช Firewall Testing โ verify if ports are filtered or exposed
โข ๐ฎ Security Auditing โ assess network exposure
________________________________________
๐งโ๐ซ Teaching Nmap โ What You Can Cover
1. What is Nmap and why it's used
2. Installation on Windows & Linux
3. Basic command-line usage
4. Hands-on: Scanning local network IPs
5. Explanation of port states (open, closed, filtered)
6. Real-world ethical hacking scenario
7. Introduction to NSE scripting
________________________________________
๐ Learning Resources
โข ๐ Official Site & Docs
โข YouTube: Nmap tutorials for beginners
โข Book: Nmap Network Scanning by Gordon Lyon (Nmapโs creator)