Nmap Scanning for Beginners
TL;DR: Learn how to use Nmap to scan networks, identify open ports, and discover services on a target system.
Get new hands-on cybersecurity labs every week.
Introduction
Nmap is one of the most important tools in cybersecurity. It allows you to discover hosts, scan ports, and identify services running on a system.
What is Nmap?
Nmap (Network Mapper) is an open-source tool used for network discovery and security auditing.
Basic Nmap Scan
Run a simple scan:
nmap <target-ip>
This shows open ports on the target system.
Service Detection
Use:
nmap -sV <target-ip>
This identifies services and versions running on open ports.
Aggressive Scan
Run:
nmap -A <target-ip>
This provides OS detection, version detection, and more detailed results.
Common Mistakes
- Scanning the wrong IP address
- Running scans without proper permissions
- Ignoring scan results
Real-World Use
Nmap is used by penetration testers to identify potential attack surfaces and vulnerabilities in systems.
Next Steps
Follow the full beginner penetration testing path:
- 1. Set up your lab (Metasploitable 3)
- 2. Scan the target with Nmap
- 3. Exploit vulnerabilities with Metasploit
Try a full vulnerability scanning lab →
Want more hands-on labs? Explore all training →
Want more labs like this? Subscribe and get them weekly →