Browse all practice questions for the Nmap/ZenMap Switches Practice Test. Search by topic, open any question and review its full explanation, then test yourself in the practice quiz.

Nmap/ZenMap Switches Practice Test course image
More practice questions

These questions are part of the practice quiz. Start practicing

  • Which option speeds up version scanning by using a lighter mode?
  • If an NSE script times out, what happens to the script and the scan?
  • Which flag controls output to XML, normal, etc?
  • How can you run Nmap to scan the most common 100 ports across a list of hosts provided in a file, and save all outputs?
  • Which statement about the -sV option is true?
  • Which timing template is labeled Insane (5) speed in Nmap?
  • Which statement describes the effect of the -Pn option on Nmap scans?
  • Which option specifies a TCP Ping to ports 100 and 90?
  • Which combination is commonly used to enable traceroute alongside broader discovery features?
  • Why is traceroute information useful in scan results?
  • When would you use -sC versus -sV and -A, and what does the -A option enable?
  • How is -A different from explicitly enabling -O, -sV, and NSE, and what are the risks of using -A?
  • What does the -f option do, and why would you fragment packets?
  • What does the -Pn option do, and when would you use it?
  • How can you limit a scan's total time per host using --host-timeout, and why is this useful for large networks?
  • Which option controls port scanning in Nmap?
  • Which scan type establishes a full three-way handshake (TCP Connect Scan)?
  • Which option makes requested scans use tiny fragmented IP packets, helping evasion?
  • Which option yields a rapid scan of roughly the 100 most common ports, and how can you disable DNS resolution for speed?
  • Which option performs a UDP Ping to ports 100 and 90?
  • Which port state indicates the port is accessible and responds to probes, but there is no application listening on it?
  • Which option allows you to specify NSE scripts by name or category on the Nmap command line?
  • What is one risk or consideration of idle scans?
  • Which command initiates a UDP scan and targets UDP port 123?
  • What is the effect of the --open flag, and how does it influence the output?
  • To scan a single specified port, which Nmap option would you use?
  • What is the purpose of the -O option, and how does it complement -sV?
  • What does the -sU option specify in Nmap?
  • Which flag enables IPv6 scanning, and what is a correct example of its usage?
  • Which timing template corresponds to Paranoid (0) IDS evasion?
  • Which option performs an ICMP Ping?
  • What is the purpose of the -oA option in Nmap?
  • Which port state means Nmap cannot determine whether a port is open or filtered, typically for UDP, IP protocol, FIN, NULL, and Xmas scans?
  • Why is it important to obtain permission and verify policy compliance before running vulnerability scans?
  • What does the -A option do in Nmap and what are the risks of using it on sensitive networks?
  • In addition to network load, what is another reason to adjust --min-rate and --max-rate?
  • Which option allows Nmap to read targets from a file to scan?
  • Compare the scanning techniques -sN, -sF, and -sX in terms of the TCP flags they send and the typical OS behavior they exploit.
  • DNS Scan aka List Scan: Which scan is used to list IPs for all listed subnets on the command line?
  • Which input method lets you feed Nmap a list of IPs, subnets, and hostnames one per line?
  • Distinguish between safe and intrusive NSE scripts and give an example usage scenario for each.
  • Which option excludes specific IPs or ranges from the scan?
  • How do you run a scan to display only open ports within a subset of ports (e.g., 80 and 443) using --open?
  • What is the purpose of the -e option and the -S/--source-address options, and when would you use them?
  • What does the -O switch do and what are its typical limitations?
  • Which statement best describes the relationship between -A and OS detection (-O)?
  • What is the purpose of -oG and how can you parse its output to extract open ports?
  • How do you feed Nmap with a list of targets using -iL, and what advantages does it provide?
  • Which statement about the -oA output is correct?
  • Which option implements a traceroute to target hosts?
  • Which option performs a TCP SYN Ping to ports 100 and 90?
  • The --traceroute feature provides information about what aspect of the network?
  • To scan both TCP and UDP ports in a single -p specification, which option is valid?
  • Which option initiates a UDP scan?
  • How would you parse an Nmap XML output programmatically, and what is a typical use case?
  • Which statement best describes idle scans in Nmap?
  • Which timing template corresponds to the default 'Parallel, normal speed scan' when no speed is assigned?
  • Which option enables operating system detection in an Nmap scan?
  • Which option allows you to adjust the version detection intensity with a specific parameter?
  • Which option filters results to show only ports that are open (or possibly open)?
  • What is a potential risk of OS detection requiring root privileges?
  • What is the difference between -S (spoof source IP) and --source-port, and when would you use each?
  • Which option disables host discovery, performing a port scan only?
  • How would you limit version detection to a subset of ports?
  • Which elements does Nmap use for OS fingerprinting, and what data is typically reported?
  • In Zenmap, what is a profile and how do you use it to reproduce scans?
  • Which command demonstrates inspecting versions only on port 80 and 443?
  • Which command line includes both a TCP connect scan and operating system detection?
  • Which option enables remote OS detection using TCP/IP stack fingerprinting?
  • Slower scans are less detectable?
  • What is the purpose of the -D decoy option, and what are potential caveats?
  • What is the initial action of a UDP port scan?
  • Why does using the -n option speed up Nmap scans?
  • What is the effect of --top-ports 100 in an Nmap scan?
  • How does --version-intensity affect version detection and when would you adjust it?
  • Which flag is used to run Nmap Scripting Engine (NSE) scripts?
  • What precautions should you take when validating an NSE script vulnerability in a controlled environment?
  • Which flag would you use to perform operating system detection via TCP/IP fingerprinting?
  • What is the purpose of the -sA option and what does an ACK scan reveal about firewall behavior?
  • Which option would you use to perform service version detection on a target?
  • What is an idle (s0) scan and how does -sI <zombie> work?
  • What is the primary difference between a SYN scan (-sS) and a TCP connect scan (-sT), and when would you choose one over the other?
  • What is a typical use case for Nmap XML output in security workflows?
  • How does the -v option affect output, and what does -vv add?
  • How does IPv6 scanning interact with the -6 option and what should you be aware of when scanning IPv6 networks?
  • How does a SYN stealth scan (-sS) differ from a TCP connect scan (-sT) in terms of connection behavior and detectability?
  • Which two flags were used in previous versions to indicate no host discovery?
  • What does the -sV option do in Nmap?
  • Which option would you use to perform a UDP scan?
  • If Nmap reports a host's port state as open, what does that imply, and how would you interpret closed and filtered states?
  • How does a UDP scan (-sU) operate and why are UDP results often incomplete compared to TCP scans?
  • What does the --reason option do and why would you enable it?
  • Which flags are generally required to spoof a scan so the targets believe someone else is scanning?
  • How would you validate a vulnerability found by an NSE script in a controlled environment, and what precautions should you take?
  • In older versions of Nmap, which flag was used to disable host discovery?
  • Which switch enables version detection to determine the service running on a port?
  • Which is the correct syntax to scan ports in a range from 1 to 20?
  • When is it generally inadvisable to use the most aggressive timing template?
  • How can you reuse a saved scan profile in Zenmap to ensure reproducibility across environments?
  • What is the general effect of using a higher timing template on a scan?
  • Compared to idle scans, standard scans are described as
  • What are the scan types -sN, -sF, and -sX, and when might you use each?
  • Which scan type is described as SYN/Stealth/Half Open Scan, with an initial SYN flag?
  • Null Scan: Which scan sends a packet with no flags set?
  • How do you scan a specific port range in Nmap, for example ports 80, 443, and 1024-1050?
  • What does the -T2 (Polite) timing template do?
  • Which statement accurately describes the http-* category for NSE scripts?
  • Which timing template corresponds to the Polite (2) setting that slows the scan to use less bandwidth and resources?
  • What determines the type of scan to perform?
  • What is the practical use of grepable output (-oG) from a scan?
  • In the given material, which tool is described as a passive fingerprinting utility outside of Nmap?
  • When would you use -Pn (no ping) and what is the trade-off?
  • What outputs do -oN, -oX, -oG, and -oA produce, and how would you save all formats with a single base filename?
  • In older Nmap releases, what was the equivalent flag for performing a host discovery without port scanning (-sn)?
  • What does the -A option enable in Nmap?
  • How would you run a script-based vulnerability check on a target using NSE's vuln category, and what considerations apply?
  • What is the effect of the -n option in Nmap, and when would you disable DNS resolution?
  • What does the -n option do in Nmap?
  • Which option writes scan results in XML Output format?
  • Which option performs a TCP connect scan?
  • Which timing template represents a parallel, normal-speed scan?
  • Which scan type corresponds to the RPC Scan?
  • Explain the use of --min-hostgroup and --max-hostgroup and how they affect parallel host scanning.
  • How can you identify which NSE scripts require elevated privileges or may be unsafe to run in production?
  • How can you specify both TCP and UDP ports in a single -p specification, and what would an example look like?
  • What does the --traceroute option do and what information does it provide?
  • Which command line fragment correctly scans the top ports across a target list and saves the output in all formats?
  • In the context of idle scans, which statement best describes how it achieves stealth?
  • What does the --ttl option influence in Nmap scanning?
  • Which Nmap scan type checks which IP protocols are supported on the target by sending raw IP packets?
  • What is --data-length used for, and when would you apply it?
  • What is the meaning of a half-open SYN scan in practice?
  • Which switch instructs Nmap to examine the 100 most commonly used ports for speed?
  • Which option differs from -sL by printing only hosts that responded to host discovery probes (no port scanning)?
  • Can you combine -sS and -sU in a single Nmap command, and why would you do so?
  • How would you invoke NSE scripts for a specific category, and how would you run the default safe scripts only?
  • How can you specify a custom network interface to use for scanning and which option achieves this?
  • Which option performs an ARP Ping?
  • Which timing template would you select if you want relatively fast but moderate detection risk?
  • Which scan type performs a TCP three-way handshake?
  • Which syntax scans ports that are in the nmap-services list below a threshold?
  • Which option enables UDP port scanning in Nmap, and what is a common drawback compared to TCP scanning?
  • Which scan type is used to determine whether a host is protected by some kind of filtering system and uses ACK packets?
  • How do you invoke NSE scripts from the command line and run a category like http-*?
  • What does the --max-retries option do, and how does adjusting it affect scan reliability and duration?
  • If you want to run only discovery NSE scripts, which flag would you use?
  • How do you interpret NSE script results in the scan output and what should you do if scripts fail due to privileges?
  • What is the purpose of the --script-args option when running NSE scripts?
  • How does --version-intensity affect version detection (and when would you adjust it)?
  • Idle Scan: Which scan uses a zombie host and relies on IPID behavior?
  • The --open option shows which port states?
  • What is the effect of the -R option and when would you want to use it?
  • Which scan type scans UDP ports?
  • Which statement describes why a UDP scan can show open|filtered results?
  • Which option selects a lighter version scanning mode via an alias for a specific intensity?
  • Which statement best describes UDP scanning relative to TCP scanning?
  • The -iL option expects what kind of input?
  • Idle scan relies on which side-channel to infer port states?
  • What does the -O option do in Nmap?
  • Which utility sends ICMP packets to a host?
  • Which of the following correctly pairs an NSE script category with a typical use?
  • Which Nmap option disables port scanning while still performing host discovery and prints only hosts that responded?
  • What does the -oA option do?
  • Which syntax scans ports by protocol name such as http and ftp?
  • Which option enables operating system detection in Nmap?
  • How would you use Zenmap to compare two scans and identify differences in hosts or services?
  • Which statement best describes Idle scan (-sI) and its prerequisites/risks?
  • Which flag would you use to perform a comprehensive scan including OS detection, script scanning, version detection, and traceroute?
  • How can you increase NSE's depth of version detection for more aggressive probing, and what is the corresponding option?
  • How are NSE script arguments passed and what is the general syntax for --script-args?
  • Which option enables a TCP ACK Ping to ports 100 and 90?
  • Which statement best describes an intrusive NSE script?
  • Which option makes scans originate from spoofed IP addresses?
  • How can you pass arguments to NSE scripts via --script-args, with an example?
  • How does the -D option implement decoy scans and what effect does that have on the target's logs?
  • In UDP port scanning, what is the Open Response?
  • Why might OS detection (-O) require elevated privileges, and what are the implications?
  • Which Nmap scan type is used for a Ping Scan?
  • As of the described installation, how many NSE scripts are available?
  • Which statement about running an aggressive scan with -A on a sensitive network is true?
  • Which port state means a port is accessible, but Nmap is unable to determine whether it is open or closed?
  • Which statement about an ACK scan (-sA) is true?
  • What is the meaning of Nmap's fingerprinting, and which options contribute to it (OS, service/version, NSE) and how do they complement each other?
  • Explain the timing templates -T0 to -T5 and the trade-offs between speed, stealth, and reliability.
  • Which option is used to scan UDP ports?
  • Which timing template corresponds to the Paranoid (0) IDS evasion level?
  • Which NSE script category would you specify to perform a broad vulnerability check?
  • Which timing template corresponds to the Sneaky (1) IDS evasion level?
  • Which scan type is referred to as Windows Scan?
  • Which switch tells Nmap to scan all possible ports from 1 to 65535?
  • Which scan uses FIN, PSH, and URG flags for probing and is known as a Fin scan?
  • Which statement about idle (s0) scan is true?
  • Which option slash scanning times by avoiding DNS resolution?
  • Which tool is described as a passive fingerprinting tool not used in Nmap?
  • What is the purpose of the -sV switch in Nmap, and what kind of data does it attempt to extract from open ports?
  • Which port state is used only for the IP ID idle scan where Nmap can't determine if closed or filtered?
  • How do you specify a source port with -g or --source-port, and why might it be useful?
  • Define the standard port-state terms open, closed, filtered, unfiltered, and open|filtered as reported by Nmap.
  • Which option instructs Nmap version detection to consider all ports during detection?
  • What is the -oG output format primarily used for?
  • Which statement describes a risk associated with using -f fragmentation?
  • What is the purpose of the --badsum option and when would you use it?
  • Which option enables OS detection, version detection, script scanning, and traceroute in a single scan?
  • If you want to scan only ports 22 and 3389, which -p syntax would you use?
  • Which timing template corresponds to the Polite (2) that slows down the scan to use less bandwidth and resources?
  • What data does Nmap typically report after OS fingerprinting?
  • What does the version intensity option control in Nmap?
  • What is required to scan both UDP and TCP ports?
  • Which combination helps reproduce results across environments?
  • Which statement correctly describes the relationship between -sV and --version-intensity 0 vs 9?
  • How can you enumerate SMB shares using an NSE script, and what is the script name?
  • Which option increases verbosity of the scan output?
  • How would you run a scan that outputs to multiple formats and to a file on disk using -oA with a specific base name?
  • What does the -oA option do in an Nmap command?
  • Which option sets the source IP address used for outgoing packets in Nmap?
  • Which option enables traceroute information in scan results?
  • If an application is actively accepting TCP connections on a port, what is the likely port state?
  • How can you control the rate of packets sent with --min-rate and --max-rate, and why would you adjust it?
  • How can you disable DNS resolution and why would you do this on large networks?
  • In UDP port scanning, what is the Filtered Response?
  • What is the purpose of the --top-ports option and how would you scan the top 50 ports?
  • How can you ensure reproducible results across repeated runs by using Nmap's and Zenmap's features?
  • Which port state indicates the port is being blocked or not reachable due to packet filtering, and probes do not reach the port?
  • What is the effect of --min-rate and --max-rate on scan throughput, and why would you adjust them?
  • TCP Xmas Tree Scan: Which scan sends the FIN, PSH, and URG flags to resemble a Christmas tree?
  • Which statement about the -sC option is true?
  • Which timing template corresponds to Sneaky (1) IDS evasion?
  • Which option outputs results in the normal (default) format?
  • How can you balance speed and stealth by combining timing templates with rate limiting?
  • In Zenmap, what is a Profile and how does it relate to repeatable scans?
  • Which statement about -oA is incorrect?
  • Which Nmap timing template corresponds to aggressive speed suitable for fast networks?
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy