Free online tool · CertCrack Tools

Nmap Simulator

PenTest+ PBQs do not ask you to recite Nmap flags — they hand you a scenario and real scan output and expect you to work like a tester: build the right command (Adding Nmap Scan Capabilities) and then read what came back (Reading Nmap Scan Output). This simulator trains both halves. Pick a mission, build a command from real flags — or type it yourself — run it, and answer questions on your own output.

Step 1 — Pick your mission

Step 2 — Build the command

Tap flags to add or remove them. The command line below is live — you can also type in it directly, exactly as you would in a real terminal.

Timing template (optional — quieter on the left, faster on the right):

# The terminal is idle. Build a command above and press Run scan. # Everything runs in your browser — no real host is scanned, and the # results below are the truthful output for the flags you chose.

The flags in this lab

FlagWhat it doesWhen to use it
-sSTCP SYN (half-open) scan — sends SYN, reads the reply, never completes the handshakeThe default scan type with root privileges; the quiet general-purpose choice
-sTTCP connect scan — completes the full three-way handshakeWhen you lack raw-socket privileges; noisier and easily logged
-sVService and version detection — probes each open port and fills the VERSION columnWhenever you need to know exactly what is listening, e.g. to spot a vulnerable build
-sUUDP port scan (this lab simulates TCP; -sU is covered here for the exam)To find UDP services such as DNS, SNMP and TFTP that TCP scans never see
-OOS detection — fingerprints the target's TCP/IP stackTo identify the operating system family and version of a host
-sCRuns the default NSE script set against open portsFor quick extra detail (banners, titles, common checks) without picking scripts by hand
-AAggressive scan — turns on -O, -sV, -sC and traceroute togetherWhen you want everything at once and stealth does not matter
-PnSkips host discovery — treats every target as onlineWhen a host blocks ping probes and Nmap wrongly reports it as down
-snPing scan — host discovery only, port scanning disabledTo map which hosts are alive on a network before scanning any of them
-pScans only the ports you list, e.g. -p 22,80,443 or -p- for all 65,535To focus on specific services, or to check one port across many hosts
--top-portsScans the N most common ports, e.g. --top-ports 100For a fast first pass; note it ranks by frequency, not by port number
-T0 … -T5Timing templates: -T0 paranoid, -T1 sneaky, -T2 polite, -T3 normal (default), -T4 aggressive, -T5 insaneLower is slower and quieter — what you pick when the rules of engagement say low-and-slow

Three port states you must not mix up

StateWhat Nmap actually sawWhat it means
openA SYN/ACK came backA service is listening and accepting connections
closedA RST came back from the host itselfThe host is reachable, but nothing listens on that port
filteredNothing usable came back — a filter dropped or rejected the probeA firewall is interfering; Nmap cannot tell open from closed

The “Not shown” line is the count of scanned ports Nmap did not list individually — by default it scans the 1,000 most common TCP ports, so a host showing 5 ports reads “Not shown: 995 …”. If those unlisted ports are closed, the host answered for them; on a firewalled host they show as filtered instead, which is itself a finding.

Nmap FAQ

What is the difference between -sS and -sV in Nmap?

They do different jobs. -sS chooses how ports are probed: a TCP SYN (half-open) scan that sends a SYN packet and never completes the handshake. -sV adds service and version detection: after finding open ports, Nmap probes each one to identify the application and version listening, which is what fills the VERSION column.

Why does Nmap report a host as down when it is switched on?

Before scanning, Nmap runs host discovery (ping probes). If a host or its firewall blocks those probes, Nmap assumes the host is down and skips it, printing “Host seems down”. Adding -Pn disables host discovery and treats every target as online, so the port scan runs anyway.

What does a filtered port mean in Nmap output?

A filtered port is one where a packet filter — usually a firewall — prevented Nmap from determining whether the port is open or closed, because the probes were dropped or rejected. It is different from closed, which means the host itself answered with a RST and no service is listening.

What does the -A flag turn on in Nmap?

-A is aggressive scan: it enables OS detection (-O), version detection (-sV), the default NSE script set (-sC) and traceroute in a single flag. It is thorough but noisy, so it is a poor choice when the rules of engagement call for a quiet scan.

This simulator mirrors the Nmap PBQs in the PenTest+ book — building scan capabilities flag by flag, then reading real scan output line by line. The full PenTest+ practice package on certcrack.com adds all 10 PBQ labs, including Adding Nmap Scan Capabilities and Reading Nmap Scan Output, free with the book code.

Keep going

PenTest+ Practice Exams700 questions, 6 tests, PBQ labs PBQ Practice LabsPerformance-based questions like the real exam Log Triage LabRead authentication logs like an analyst Ports QuizDrill the port numbers cold All Free ToolsThe CertCrack tools hub