Complete Nmap Commands Cheat Sheet 2025 + PDF

Nmap (Network Mapper) is a powerful, free, and open-source tool designed for network discovery, security auditing, and troubleshooting. Developed by Gordon Lyon (also known as Fyodor), Nmap has become a go-to utility for network administrators, penetration testers, and cybersecurity professionals around the world.

Originally released in 1997, Nmap is renowned for its flexibility and effectiveness in both small internal networks and large-scale enterprise environments. Whether you're mapping out your local network or identifying open ports on remote servers, Nmap offers the tools needed for accurate and detailed analysis.

What You Can Do With Nmap:

  • Detect live hosts on a network
  • Identify open ports and running services
  • Discover operating systems and software versions
  • Detect misconfigurations or potential vulnerabilities
  • Bypass firewalls and evade intrusion detection systems (with advanced options)
  • Automate scanning tasks with the Nmap Scripting Engine (NSE)

Platforms Supported:

  • Windows
  • Linux
  • macOS
  • FreeBSD and other Unix-like systems

Nmap also comes with a graphical interface called Zenmap, which simplifies usage for beginners while still offering the power of command-line features.

Key Features

Nmap offers a comprehensive set of features that make it one of the most versatile tools for network exploration and security assessment. Below are some of its core capabilities:

Host Discovery and Network Mapping

Identify live systems on a network and build a map of the connected devices.

Port Scanning and Service Detection

Determine which ports are open on a host and detect the services running on them, including their versions.

Operating System Detection

Use TCP/IP stack fingerprinting to guess the target system’s operating system and hardware characteristics.

Vulnerability Assessment

Detect potential vulnerabilities and misconfigurations by using Nmap’s scripting engine and custom scan options.

Scriptable Interaction with Network Services

Leverage the Nmap Scripting Engine (NSE) to automate tasks such as brute-force attacks, service discovery, and vulnerability scanning.

Support for IPv4 and IPv6

Fully supports scanning over both IPv4 and IPv6, ensuring compatibility with modern networks.

Cross-Platform Compatibility

Available on all major operating systems, including Windows, Linux, macOS, and BSD variants.

Use Cases

Nmap is a versatile tool used in a wide range of network and security-related scenarios. Its powerful scanning and detection capabilities make it an essential utility in both offensive and defensive security operations. Below are some of the most common use cases:

Network Inventory and Asset Discovery

Scan entire networks to identify active hosts, connected devices, and their open ports—helpful for building or updating a network inventory.

Security Auditing and Penetration Testing

Evaluate the security of a system or network by detecting open ports, exposed services, outdated software, and possible misconfigurations.

Network Troubleshooting

Diagnose connectivity issues, service availability, and configuration errors by probing hosts and analyzing responses.

Monitoring Host and Service Uptime

Use regular scans or scripting to track whether hosts and services are online and responsive over time.

Firewall Rule Testing

Assess firewall rules and configurations by sending different types of probes to verify which ports are filtered, blocked, or open.

Installation Guide

Installing Nmap is straightforward across most platforms. Below is the installation process for common operating systems.

Linux (Ubuntu/Debian)

To install Nmap on Ubuntu or Debian-based systems, open a terminal and run the following commands:

Nmap Installation – Ubuntu / Debian
Linux (Ubuntu / Debian)
sudo apt update
sudo apt install nmap

This will install the latest version available in your distribution’s repository.

Linux (CentOS/RHEL/Fedora)

CentOS / RHEL:

Nmap Installation – RedHat / CentOS
Linux (RedHat / CentOS)
sudo yum install nmap

Fedora:

Nmap Installation – Fedora / RHEL 8+
Linux (Fedora / RHEL 8+)
sudo dnf install nmap

These commands install Nmap using the respective package managers. Make sure your system has internet access and appropriate privileges.

macOS

There are two common ways to install Nmap on macOS: using Homebrew or MacPorts.

Using Homebrew:

Nmap Installation – macOS (Homebrew)
macOS (Homebrew)
brew install nmap

Using MacPorts:

Nmap Installation – macOS (MacPorts)
macOS (MacPorts)
sudo port install nmap

Ensure that either Homebrew or MacPorts is installed on your system before using the above commands.

Windows

  1. Download from official site: https://nmap.org/download.html
  2. Run the installer as Administrator
  3. Choose installation options (include Zenmap GUI if needed)

From Source

To build and install Nmap from source (Linux/Unix systems):

Nmap Installation – From Source
wget https://nmap.org/dist/nmap-7.94.tar.bz2
tar xjf nmap-7.94.tar.bz2
cd nmap-7.94
./configure
make
sudo make install

This method provides the latest version directly from the Nmap developers, which may include features not yet available in package managers.

Verification

After installation, you can verify that Nmap is properly installed and check its version using the following command:

Check Nmap Version
nmap --version

This will display the installed version along with supported features and libraries.

Basic Syntax

The general syntax for using Nmap is:

Nmap Basic Syntax
nmap [scan type] [options] [target specification]

Parameters Explained:

  • [scan type] – Defines the type of scan (e.g., -sS for SYN scan, -sU for UDP scan).
  • [options] – Additional parameters to customize the scan (e.g., -p for ports, -T4 for speed).
  • [target specification] – IP address, domain name, range, or file containing a list of targets.

Example:

Nmap TCP SYN Scan Example
nmap -sS -p 22,80,443 -T4 192.168.1.1

This runs a SYN scan (-sS) on ports 22, 80, and 443 with increased speed (-T4) against the target 192.168.1.1.

Target Specification

Nmap supports flexible ways to specify targets, allowing you to scan individual hosts, ranges, entire subnets, or even lists of IPs. Below are commonly used target specification formats:

Single IP Address

🎯 Basic Nmap Host Scan
nmap 192.168.1.1

IP Range

🌐 Nmap IP Range Scan
nmap 192.168.1.1-254

Scans all addresses from 192.168.1.1 to 192.168.1.254.

Subnet (CIDR Notation)

📡 Nmap CIDR Subnet Scan
nmap 192.168.1.0/24

Scans the entire subnet (256 addresses).

Multiple IPs

🎯 Scan Specific Hosts
nmap 192.168.1.1 192.168.1.2

Scan specific IP addresses listed in sequence.

Hostname

🌐 Scan a Domain
nmap google.com

DNS is resolved automatically to scan the IP behind the domain.

File Input (List of Targets)

📂 Scan Targets from File
nmap -iL targets.txt

Scans all targets listed line-by-line in the targets.txt file.

Exclude Specific Targets

🚫 Subnet Scan (Excluding IP)
nmap 192.168.1.0/24 --exclude 192.168.1.1

Scans the entire subnet but excludes 192.168.1.1.

Common Scan Types

Nmap provides a variety of scan techniques to suit different network environments and purposes. Below are some of the most commonly used scan types:

TCP SYN Scan (Default)

🕵️‍♂️ TCP SYN Scan (Stealth)
nmap -sS target

Performs a stealthy SYN scan (also called half-open scan). Fast and less likely to be logged.

TCP Connect Scan

🔌 TCP Connect Scan
nmap -sT target

Uses the full TCP connection (three-way handshake). Useful when SYN scan is not permitted (e.g., without raw socket privileges).

UDP Scan

📡 UDP Scan
nmap -sU target

Scans for open UDP ports. Slower than TCP scans but essential for identifying services like DNS, SNMP, etc.

Comprehensive Scan

🧠 Full TCP+UDP+OS+Aggressive Scan
nmap -sS -sU -O -A target

Performs TCP SYN and UDP scans, OS detection (-O), and aggressive scan (-A) which includes service/version detection, script scanning, and traceroute.

Ping Scan (Host Discovery)

📶 Ping Scan (No Port Scan)
nmap -sn target

Detects which hosts are up without scanning ports.

TCP ACK Scan

🛡 ACK Scan (Firewall Rule Testing)
nmap -sA target

Used for firewall rule testing. It doesn’t determine open ports but can identify whether a firewall is blocking traffic.

TCP Window Scan

📐 TCP Window Scan
nmap -sW target

Advanced scan based on TCP window size. Can sometimes detect open ports when ACK scan fails.

TCP Maimon Scan

🧪 TCP Maimon Scan
nmap -sM target

An obscure scan that sends FIN/ACK probes. Useful for certain firewall and packet filter configurations.

Port Specification

Nmap allows flexible control over which ports to scan. This is useful for narrowing down scan time or focusing on specific services.

Specific Ports

🎯 Scan Specific Ports (22, 80, 443)
nmap -p 22,80,443 target

Scans only the listed ports — in this case, SSH (22), HTTP (80), and HTTPS (443).

Port Range

📊 Scan Port Range (1–1000)
nmap -p 1-1000 target

Scans ports from 1 to 1000.

All Ports

🧿 Full Port Scan (All 65535 Ports)
nmap -p- target

Scans all 65,535 TCP ports.

Top Ports

📈 Scan Top 1000 Common Ports
nmap --top-ports 1000 target

Scans the 1,000 most commonly used ports based on frequency data from large-scale scans.

Fast Scan

⚡ Fast Scan (Less Ports)
nmap -F target

Scans the top 100 ports only. Useful for quick checks or large network sweeps.

Host Discovery Options

Host discovery helps determine which hosts are online before running detailed scans. Nmap provides several options to customize this process:

Ping Scan Only

📶 Ping Scan (Host Discovery Only)
nmap -sn target

Checks which hosts are up without scanning any ports.

Skip Ping

🚫 Skip Ping / Treat Host as Up
nmap -Pn target

Skips host discovery and treats all hosts as online. Useful when ping is blocked by firewalls.

ICMP Echo Request

📨 ICMP Echo Request Ping Scan
nmap -PE target

Sends ICMP echo requests (standard “ping”) to discover hosts.

ICMP Timestamp Request

🕒 ICMP Timestamp Request Ping Scan
nmap -PP target

Sends ICMP timestamp requests to identify live hosts.

ICMP Netmask Request

🧮 ICMP Netmask Request Ping Scan
nmap -PM target

Sends ICMP netmask requests for host discovery.

TCP SYN Ping

📡 TCP SYN Ping (Ports 22, 80, 443)
nmap -PS22,80,443 target

Sends TCP SYN packets to specified ports (e.g., 22, 80, 443) to check if hosts respond.

TCP ACK Ping

📡 TCP ACK Ping (Ports 22, 80, 443)
nmap -PA22,80,443 target

Sends TCP ACK packets to specified ports for host discovery.

UDP Ping

📨 UDP Ping Scan
nmap -PU target

Sends UDP packets to check if hosts respond.

Service and Version Detection

Nmap can probe open ports to determine what service is running and its version. This helps identify software, detect outdated services, and find potential vulnerabilities.

Version Detection

🔍 Service Version Detection
nmap -sV target

Performs standard version detection to identify services and versions running on open ports.

Aggressive Version Detection

🔍 High-Intensity Service Version Detection
nmap -sV --version-intensity 9 target

Uses the highest intensity level (0–9) for deeper probing. May be slower but more accurate.

Light Version Detection

🕵️‍♂️ Light Version Detection (Stealth Mode)
nmap -sV --version-intensity 0 target

Performs minimal probing to avoid disrupting services or triggering alerts.

Default Service Detection (with Scripts)

📜 Default Script Scan
nmap -sC target

Runs a set of default scripts (equivalent to --script=default) which includes basic service and version detection.

Note: -sC is often used with -sV in comprehensive scans like nmap -sC -sV target.

Operating System Detection

Nmap uses TCP/IP stack fingerprinting to determine the operating system and hardware characteristics of a target. This helps identify not only the OS type but also its version and other details.

OS Fingerprinting

💻 OS Detection
nmap -O target

Enables OS detection. Requires root or administrator privileges.

Aggressive OS Detection

🧠 OS Detection (with Guessing)
nmap -O --osscan-guess target

Attempts to guess the OS more aggressively, even when confidence is low.

OS Detection with Version and More (Aggressive Scan)

⚡ Aggressive Scan Mode
nmap -A target

Performs an aggressive scan that includes OS detection, version detection, script scanning, and traceroute.

Note: -A combines several powerful features and is often used in thorough scans, but may be noisy or trigger security systems.

NSE (Nmap Scripting Engine)

The Nmap Scripting Engine (NSE) allows users to automate a wide range of scanning tasks using custom or built-in scripts. NSE scripts can perform service detection, brute forcing, vulnerability scanning, and more.

Default Scripts

📜 Default Script Scan
nmap -sC target

Runs the default set of scripts (same as --script=default). Useful for quick service and vulnerability checks.

Specific Script

🔧 Run Specific Nmap Script
nmap --script=scriptname target

Executes a single script, such as http-title or ssh-hostkey.

Script Categories

🛡 Vulnerability Scan (NSE Script)
nmap --script=vuln target

Runs all scripts in the specified category. Common categories include:

  • default
  • vuln
  • auth
  • discovery
  • safe
  • intrusive

Multiple Scripts Using Wildcards

🌐 Run All HTTP Scripts
nmap --script="http-*" target

Runs all scripts that match the wildcard pattern (e.g., all HTTP-related scripts).

Script Help

📘 Get Help for an NSE Script
nmap --script-help scriptname

Displays detailed information about a specific script, including usage and categories.

Tip: You can find all available scripts in the /scripts/ directory of your Nmap installation or view them online at nmap.org/nsedoc.

Popular NSE Script Categories

Nmap scripts are organized into categories based on their functionality. These categories help users select scripts suited to specific tasks, such as vulnerability scanning or brute-force testing.

vuln – Vulnerability Detection

Detects known vulnerabilities in services, software, or configurations.

exploit – Exploitation Scripts

Attempts to exploit identified vulnerabilities (use with caution).

auth – Authentication Scripts

Tests or bypasses authentication mechanisms on services like SSH, FTP, or databases.

brute – Brute Force Scripts

Performs brute-force attacks to guess passwords or authentication tokens.

discovery – Network Discovery

Helps map network infrastructure, gather information about hosts, services, and users.

dos – Denial of Service

Launches DoS attacks (for testing purposes only; often disabled by default).

fuzzer – Fuzzing Scripts

Sends unexpected or malformed input to identify potential software crashes or vulnerabilities.

malware – Malware Detection

Scans for signs of malware infections or backdoors on the target system.

safe – Safe Scripts

Considered non-intrusive and unlikely to crash or disrupt services. Used in -sC scans by default.

intrusive – Intrusive Scripts

More aggressive or disruptive. May trigger alerts or affect service availability.

To list all scripts in a category:

📂 Run Script Category
nmap --script "category-name" target

Timing and Performance

Nmap provides various options to control scan speed, timing precision, and system load. These settings are essential when scanning large networks, avoiding detection, or fine-tuning performance.

Timing Templates

Use -T<0–5> to quickly set predefined timing profiles:

⏱ Timing Template Selection
nmap -T<0-5> target
TemplateNameDescription
-T0ParanoidVery slow, used to avoid detection by IDS
-T1SneakySlow, less detectable
-T2PoliteSlower, reduces bandwidth and CPU usage
-T3NormalDefault scan speed
-T4AggressiveFaster, may trigger detection
-T5InsaneVery fast, suitable for reliable and responsive targets

Parallel Scanning

🚀 Minimum Parallelism
nmap --min-parallelism 10 target

Forces a minimum of 10 parallel probes. Helps speed up scans on fast and stable networks.

Rate Limiting

📈 Max Packet Rate Limit
nmap --max-rate 1000 target

Limits the number of packets sent per second. Useful for avoiding overloading the network or avoiding detection.

Host Timeout

⏳ Per-Host Timeout Limit
nmap --host-timeout 5m target

Sets a maximum time (e.g., 5 minutes) to scan a single host. Prevents Nmap from hanging on unresponsive targets.

Firewall/IDS Evasion

Nmap offers several options to evade firewalls, intrusion detection systems (IDS), and logging mechanisms. These techniques can help bypass security filters or perform stealthy scans, but they should be used ethically and legally.

Fragment Packets

🔐 Packet Fragmentation Mode
nmap -f target

Sends fragmented IP packets to bypass some packet filters or firewalls.

Decoy Scan

🕵️ Decoy Scanning
nmap -D decoy1,decoy2,ME target

Generates traffic from decoy IPs along with your own, making it harder for IDS to identify the real source. Replace ME with your scanner’s IP position.

Idle Scan

🧟 Idle/Zombie Scan
nmap -sI zombie_host target

Performs a completely stealthy scan using a "zombie" host. The attacker never directly interacts with the target.

Source Port Spoofing

🎭 Spoof Source Port (Port 53)
nmap --source-port 53 target

Spoofs the source port (e.g., 53 for DNS) to possibly bypass firewalls that allow specific port-based traffic.

Random Data Payload

📦 Custom Payload Size
nmap --data-length 25 target

Appends random data to packets, which may help evade some detection systems or avoid signature-based filtering.

MAC Address Spoofing

🪪 MAC Address Spoofing
nmap --spoof-mac 00:11:22:33:44:55 target

Sends packets using a spoofed MAC address. You can also use keywords like 0, RANDOM, or Apple for automatic generation.

Output Options

Nmap provides several output formats to help you record, analyze, or parse scan results efficiently. These can be used for documentation, automation, or integration with other tools.

Normal Output

🗂 Save Output (Normal Format)
nmap -oN output.txt target

Saves results in human-readable format. This is the default view you see in the terminal.

XML Output

📄 Save Output (XML Format)
nmap -oX output.xml target

Generates machine-readable XML output, useful for importing into other tools or parsing with scripts.

Grepable Output

🔍 Save Output (Grepable Format)
nmap -oG output.grep target

Saves scan data in a format suitable for grep, awk, or other command-line filters.

All Formats Simultaneously

🧾 Save All Output Formats
nmap -oA output target

Creates normal (.nmap), XML (.xml), and grepable (.gnmap) outputs with the same base filename (output in this case).

Verbose Output

🔊 Verbose Mode
nmap -v target

Increases the amount of information displayed during and after the scan.

Debug Output

🧪 Debug Mode
nmap -d target

Enables debug messages for troubleshooting and analysis. Multiple -d flags increase the level of detail (e.g., -d2, -d3).

Common Useful Commands

Below are practical Nmap commands grouped by common tasks such as network discovery, web scanning, vulnerability checks, and stealth operations.

Basic Network Discovery

📡 Common Scanning Examples
# Discover live hosts in a subnet nmap -sn 192.168.1.0/24 # Quick scan of top 100 common ports nmap -F 192.168.1.1 # Comprehensive scan with OS, version, script, and traceroute nmap -A 192.168.1.1

Web Server Scanning

🌐 HTTP/HTTPS Script Scans
# Detect HTTP services and enumerate common directories nmap -p 80,443 --script http-enum 192.168.1.1 # Retrieve SSL certificate information nmap -p 443 --script ssl-cert 192.168.1.1 # Check allowed HTTP methods (e.g., GET, POST, PUT) nmap -p 80 --script http-methods 192.168.1.1

Vulnerability Scanning

🚨 Vulnerability Detection Scans
# Run general vulnerability detection scripts nmap --script vuln 192.168.1.1 # Scan for known SMB vulnerabilities nmap --script smb-vuln-* 192.168.1.1 # Check for SSH-related vulnerabilities nmap --script ssh-* 192.168.1.1

Stealth Scanning

🕵️‍♂️ Evasion & Stealth Techniques
# Slow, fragmented SYN scan for stealth nmap -sS -T1 -f 192.168.1.1 # Decoy scan using fake IPs to mask real source nmap -sS -D 192.168.1.2,192.168.1.3,ME 192.168.1.1

Advanced Techniques

For experienced users, Nmap offers powerful ways to combine scan types, target-specific vulnerabilities, and use automation scripts for deep network assessments.

Custom Scan Combinations

These commands combine multiple scan options to perform in-depth audits:

📊 Comprehensive Network Audits
# Full TCP and UDP scan with OS detection, service detection, and vulnerability scripts nmap -sS -sU -O -A --script=default,vuln 192.168.1.1 # Comprehensive network audit across all ports with all available scripts nmap -sS -sU -O -A -p- --script=all 192.168.1.0/24


Scripting Examples

Use Nmap's scripting engine (NSE) for targeted automation and protocol-specific enumeration:

🔐 Brute Force & Enumeration Scans
# Attempt SSH brute force login nmap --script ssh-brute 192.168.1.1 # Perform DNS subdomain brute-forcing nmap --script dns-brute domain.com # Enumerate SNMP services and attempt brute force nmap -sU -p 161 --script snmp-brute 192.168.1.1

These techniques are especially useful for penetration testing, red teaming, and automating security checks against commonly exposed services.

Nmap Switches Quick Reference

Scan Types

SwitchDescription
-sSTCP SYN scan (default, stealthy)
-sTTCP connect scan (full handshake)
-sUUDP scan
-snPing scan (host discovery only)
-sATCP ACK scan (firewall rule testing)
-sWTCP Window scan
-sMTCP Maimon scan (FIN/ACK probes)

Host Discovery

SwitchDescription
-snPing scan only (no port scan)
-PnSkip host discovery (treat all as online)
-PESend ICMP echo request
-PSSend TCP SYN ping to specified ports
-PASend TCP ACK ping to specified ports
-PUSend UDP ping to specified ports

Port Specification

SwitchDescription
-pSpecify individual ports or port ranges (e.g., -p 22,80,443 or -p 1-1000)
-FFast scan (top 100 most common ports)
--top-portsScan top N ports based on frequency data (e.g., --top-ports 1000)
-p-Scan all 65,535 ports

Service Detection

SwitchDescription
-sVDetect service versions on open ports
-sCRun default NSE scripts (equivalent to --script=default)
-AAggressive scan (includes -sV, -sC, -O, and traceroute)
-ODetect operating system using TCP/IP fingerprinting

Output

SwitchDescription
-oNSave output in normal (human-readable) format
-oXSave output in XML format
-oGSave output in grepable format
-oASave in all formats (.nmap, .xml, .gnmap) with shared filename prefix
-vEnable verbose mode (add -v, -vv for more detail)
-dEnable debug mode (add -d, -d2, etc. for more levels)

Performance

SwitchDescription
-T0 to -T5Timing templates (from Paranoid to Insane) for scan speed and stealth balance
--min-rateSet minimum number of packets per second (e.g., --min-rate 100)
--max-rateLimit packet sending rate per second (e.g., --max-rate 1000)
--min-parallelismMinimum number of parallel scan probes (e.g., --min-parallelism 10)

Best Practices

Legal and Ethical Usage

Using Nmap responsibly is critical to avoid legal consequences and unintentional disruption. Follow these guidelines:

  • Scan only with permission
    Always obtain explicit authorization before scanning any network, system, or IP range that you do not own.
  • Practice responsible disclosure
    If you discover a vulnerability, report it to the appropriate administrator or organization through official channels.
  • Know the law
    Understand and comply with local laws, industry regulations, and your organization’s security policies.
  • Scan carefully
    Use appropriate timing and rate-limiting options (e.g., -T2, --max-rate) to avoid impacting production systems or triggering alerts.

Note: Unauthorized scanning can result in legal action, blocked IP addresses, or service disruptions. Always act ethically and within legal boundaries.

Performance Optimization

Efficient Nmap usage helps reduce scan time, network load, and detection risk. Follow these tips to optimize performance:

  • Use appropriate timing templates
    Adjust scan speed using -T options (-T3 for balanced, -T4 for faster scans on stable networks).
  • Limit scan scope when possible
    Target only necessary hosts, ports, or services to avoid scanning unused assets.
  • Use parallel scanning for large networks
    Increase scan concurrency using options like --min-parallelism to speed up scans on responsive networks.
  • Save results for later analysis
    Use output options (-oN, -oA) to log scan results for documentation, auditing, or further processing.

Effective Scanning Strategy

A well-planned scanning approach improves efficiency and ensures comprehensive coverage. Follow these key phases:

  • Discovery Phase
    Begin with host discovery (e.g., nmap -sn) to identify which systems are online before scanning ports.
  • Port Scanning
    Start with common ports using fast scans (-F or --top-ports), then expand to full range (-p-) if needed.
  • Service Detection
    Use version detection (-sV) and default scripts (-sC) to determine active services and software details.
  • Vulnerability Assessment
    Run relevant NSE scripts (--script=vuln) to identify known security issues.
  • Documentation
    Save all scan results (-oN, -oA) with timestamps for future reference, audit trails, and reporting.

Common Nmap Errors and Solutions

Troubleshooting common issues can help you get accurate results faster and avoid frustration during scans.

Permission Issues

  • Problem:
    Operation not permitted or similar errors.
  • Solution:
    Run Nmap with elevated privileges (e.g., sudo) or use -sT (TCP Connect) instead of -sS (SYN scan), which requires raw socket access.

Slow Scans

  • Problem:
    Scans are taking an unusually long time to complete.
  • Solution:
    • Use a faster timing template (e.g., -T4).
    • Limit the number of scanned ports (e.g., -p 1-1000).
    • Increase scan speed with --min-rate or --min-parallelism.

Firewall Blocking

  • Problem:
    Target appears offline or unresponsive; no results returned.
  • Solution:
    • Use -Pn to skip host discovery and treat the host as up.
    • Try alternate scan types like -sT, -sA, or -sU.
    • Use packet fragmentation with -f to bypass basic filtering.

GUI Alternatives to Nmap

Zenmap (Official GUI)

Zenmap is the official graphical user interface for Nmap, designed to make scanning and analysis more accessible—especially for users who prefer a visual approach.

Key Features:

  • Point-and-click interface
    Easily configure and run scans without needing to memorize command-line options.
  • Network topology visualization
    See scanned hosts and services on an interactive map.
  • Scan result comparison
    Compare past and current scans to detect changes in the network.
  • Profile management
    Save and reuse custom scan profiles for repeatable testing.
  • Real-time scan progress
    View live updates during scanning, including host and port discovery.

Zenmap is cross-platform and available for Linux, Windows, and macOS. It’s especially useful for beginners or for documenting scans in a visual format.

Installation

You can install Zenmap on various platforms depending on your OS:

📦 Zenmap Installation (Debian/Ubuntu)
# Linux (Debian/Ubuntu) sudo apt install zenmap
  • Windows:
    Zenmap is included in the official Nmap installer from nmap.org. Just select Zenmap during installation.
  • macOS:
    Zenmap is no longer officially maintained for macOS, but older builds may be available on nmap.org. Use with caution or consider running it via a Linux VM.

Other GUI Tools

In addition to Zenmap, several other GUI-based tools offer scanning, discovery, and analysis features—some built on top of Nmap, others as independent utilities.

Nmap GUI

A lightweight, web-based interface for Nmap. Useful for quick scans via browser on local or remote systems.

NetworkMiner

A network forensic analysis tool that passively captures and analyzes packets. Excellent for extracting metadata and reconstructing sessions.

Angry IP Scanner

A fast, open-source IP scanner with a clean interface. Supports plugin-based extensions and works on Windows, macOS, and Linux.

Advanced IP Scanner

Windows-only network scanner known for its ease of use. Useful for discovering shared folders, MAC addresses, and remote access.

Fing

A mobile-friendly network scanner app for iOS and Android. Great for quick device discovery and basic diagnostics on local networks.

Web-based Interfaces

These platforms offer network scanning, device discovery, and reconnaissance tools through a web interface—ideal for quick checks or remote access.

Nmap Online

A browser-based frontend for Nmap. It allows you to run basic scans without installing anything locally. Limited in features compared to full Nmap.

Shodan

A powerful search engine for discovering internet-connected devices and services (e.g., webcams, servers, routers).

  • Website: https://www.shodan.io
  • Use case: Passive reconnaissance, finding exposed ports and banners globally.

Censys

Another search engine for Internet-facing hosts, with a focus on security research and compliance.

  • Website: https://censys.io
  • Use case: Analyzing global exposure of services like HTTPS, SSH, and databases.

Note: These tools don't replace Nmap but can complement it by offering global context and passive intelligence.

Here is the pdf Link: Complete Nmap Cheat Sheet

Frequently Asked Questions

Is Nmap legal to use?

Yes, Nmap is legal when used on networks you own or are authorized to scan. Always ensure proper permission before conducting any scan.

Can Nmap be detected by firewalls?

Yes. Most firewalls and intrusion detection systems (IDS) can detect Nmap activity. Using stealth options like -sS, -Pn, and timing templates (e.g., -T2) may help reduce detection.

What's the difference between TCP and UDP scanning?

TCP scans use reliable, connection-oriented protocols. UDP scans are connectionless and less predictable, making them slower and harder to detect but useful for discovering services like DNS or SNMP.

Why does Nmap require root privileges?

Features like SYN scanning (-sS), OS detection (-O), and low-level packet control require raw socket access, which typically needs root or administrator privileges. Use -sT for scans without elevated access.

How accurate is Nmap's OS detection?

OS detection is usually 85–95% accurate but can vary depending on network conditions and the target's TCP/IP stack behavior.

Can I scan IPv6 addresses?

Yes. Use the -6 flag like so:
nmap -6 target

How can I speed up Nmap scans?

Try using faster timing templates (-T4), limiting port ranges (-p 1-1000), increasing --min-rate, or scanning multiple hosts in parallel.

Why is UDP scanning so slow?

UDP doesn’t acknowledge packets, so Nmap must wait for timeouts or ICMP responses. This slows down scans. Use --max-rate to help increase speed.

What's the fastest way to scan a large network?

First, use ping sweep (-sn) to identify live hosts. Then scan only those hosts for ports and services.

How do I find available NSE scripts?

Use:
nmap --script-help all
Or browse the script directory, typically:
/usr/share/nmap/scripts/

Can I write custom NSE scripts?

Yes. NSE scripts are written in Lua. Refer to the NSE documentation for details and examples.

Are NSE scripts safe to use?

Most default scripts are safe. However, scripts in categories like intrusive, brute, or dos may disrupt target systems and should be used with caution.

Sia
Written by Sia

Sia is the co-founder of Corenexis and one of the earliest voices shaping its editorial direction. With years of hands-on experience covering AI and technology, she has been writing about the digital world long before it became everyone's favorite topic — and she still does it better than most.

View all posts by Sia →