Listen to this Post
Nmap (Network Mapper) is a powerful open-source tool for network discovery and security auditing. Whether you’re a cybersecurity analyst or a penetration tester, mastering Nmap is essential for identifying hosts, services, and vulnerabilities in a network.
Why Nmap?
- Network Discovery: Scan and map networks to detect live hosts.
- Port Scanning: Identify open ports and running services.
- Vulnerability Detection: Find potential security weaknesses.
- Scriptable Interactions: Use NSE (Nmap Scripting Engine) for advanced probing.
You Should Know: Essential Nmap Commands & Techniques
1. Basic Host Discovery
nmap -sn 192.168.1.0/24
This command performs a ping sweep to find live hosts without port scanning.
#### **2. TCP SYN Scan (Stealth Scan)**
nmap -sS 192.168.1.1
A fast and stealthy scan that doesnβt complete the TCP handshake.
#### **3. Aggressive Service Detection**
nmap -A 192.168.1.1
Enables OS detection, version detection, script scanning, and traceroute.
#### **4. Scan Specific Ports**
nmap -p 22,80,443 192.168.1.1
Checks only ports 22 (SSH), 80 (HTTP), and 443 (HTTPS).
#### **5. UDP Port Scanning**
nmap -sU 192.168.1.1
Scans for open UDP ports, which are often overlooked.
#### **6. NSE Scripting for Vulnerability Scanning**
nmap --script vuln 192.168.1.1
Runs vulnerability detection scripts against the target.
#### **7. Save Scan Results**
nmap -oN output.txt 192.168.1.1
Saves results in a normal format. Other options:
– `-oX` (XML)
– `-oG` (Grepable)
#### **8. Bypass Firewalls with Fragmentation**
nmap -f 192.168.1.1
Sends fragmented packets to evade basic firewall rules.
#### **9. Timing and Performance Control**
nmap -T4 192.168.1.1
– `T0` (Paranoid) β Slowest, avoids detection
– `T5` (Insane) β Fastest, but may miss results
#### **10. Detect OS and Services**
nmap -O -sV 192.168.1.1
Identifies the operating system (-O) and service versions (-sV).
### **What Undercode Say**
Nmap is an indispensable tool for cybersecurity professionals. Regular practice with different scan types, NSE scripts, and evasion techniques will enhance your network assessment skills. Combine Nmap with tools like Wireshark, Metasploit, and Nessus for comprehensive security testing.
Pro Tip: Always ensure you have proper authorization before scanning networks to avoid legal issues.
### **Expected Output:**
A well-structured Nmap scan report with host details, open ports, service versions, and potential vulnerabilities.
**Further Reading:**
(End of )
References:
Reported By: Alexrweyemamu Mastering – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass β



