Network Discovery. Port Scanning. Security Assessment.
Master network reconnaissance with Nmap (Network Mapper). Your complete reference guide to port scanning, service detection, OS fingerprinting, and vulnerability assessment. From basic discovery to advanced stealth techniques.
#๐ What is Nmap?
Nmap is a powerful network discovery and security auditing tool used to discover hosts, services, and vulnerabilities across networks. It's essential for network administrators, security professionals, and ethical hackers.
#โ ๏ธ Legal and Ethical Warning
- Permission Required: Only scan networks you own or have explicit permission to test
- Responsible Use: Use Nmap ethically for security assessment and education
- Rate Limiting: Aggressive scans can impact network performance
- Legal Compliance: Unauthorized scanning may violate laws in your jurisdiction
- Documentation: Always document your scanning activities for legitimate purposes
#๐ฏ Basic Discovery & Host Detection
Essential commands for network discovery and host enumeration
#๐ Port Scanning Techniques
Different scanning methods for various scenarios
#๐ฏ Port Specification & Timing
Control which ports to scan and scan timing
#๐ง Service & Version Detection
Identify services and their versions
#๐ NSE Scripts & Vulnerability Detection
Leverage Nmap Scripting Engine for advanced testing
โข
auth - Authentication bypassingโข
brute - Brute force attacksโข
discovery - Network discoveryโข
dos - Denial of Serviceโข
exploit - Vulnerability exploitationโข
intrusive - May impact targetโข
malware - Malware detectionโข
safe - Safe to runโข
vuln - Vulnerability detection
#๐ฅท Stealth & Evasion Techniques
Avoid detection and bypass firewalls
#๐ Output & Reporting
Save and format scan results
#๐ Quick Reference & Common Combinations
Ready-to-use command combinations for common scenarios
โข Use
-Pn if hosts don't respond to pingโข Combine
-sS -sU for TCP and UDP scanningโข Use
--script-help=script-name for script documentationโข Run
nmap --script-updatedb to update script databaseโข Use
--min-rate and --max-rate to control scan speed
#๐ข Common Ports Reference
Essential ports and their services
© 2025 theLAB Wiki | Nmap Security Cheat Sheet | Built for ethical security professionals