CloakForge

Privacy Security Freedom

Nmap - Network Discovery and Security Auditing

Free and open source utility for network discovery and security auditing

Nmap is a network exploration tool and security/port scanner. It uses raw IP packets to determine what hosts are available on the network, what services those hosts are offering, what operating systems they are running, and dozens of other characteristics.

Common Use Cases

Network Inventory

1
2
3
4
5
# Discover hosts on local network
nmap -sn 192.168.1.0/24

# Basic port scan
nmap scanme.nmap.org

Security Auditing

1
2
3
4
5
# Comprehensive scan with OS detection
nmap -A -T4 target.com

# Vulnerability scan using NSE scripts
nmap --script vuln target.com

Service Discovery

1
2
3
4
5
# Service version detection
nmap -sV target.com

# Common ports scan
nmap --top-ports 1000 target.com

Essential Nmap Commands

Command Description
nmap -sS target SYN stealth scan
nmap -sU target UDP scan
nmap -O target OS detection
nmap -A target Aggressive scan (OS, version, script, traceroute)
nmap -p 80,443 target Scan specific ports
nmap --script=safe target Run safe NSE scripts

NSE (Nmap Scripting Engine)

Nmap includes hundreds of scripts for:

1
2
3
4
5
# List available scripts
nmap --script-help all

# Run specific script category
nmap --script auth target.com

🚨 Warning: Only scan networks and systems you own or have explicit permission to test. Unauthorized scanning may be illegal and could be considered a hostile act.

Best Practices

Installation

1
2
3
4
5
6
7
8
# Ubuntu/Debian
sudo apt-get install nmap

# macOS (via Homebrew)
brew install nmap

# Windows
# Download from: https://nmap.org/download.html

Learning Resources

Rating: ⭐⭐⭐⭐⭐

Difficulty: Beginner to Advanced
Usefulness: Essential for network reconnaissance

Tags: