Which of the following Nmap commands performs a full TCP SYN port scan with OS and version detection and outputs XML?

Prepare for the Certified Ethical Hacker Version 11 Exam with a comprehensive test featuring flashcards and multiple choice questions, each accompanied by hints and explanations to ensure a thorough understanding. Ace your ethical hacking exam with confidence!

Multiple Choice

Which of the following Nmap commands performs a full TCP SYN port scan with OS and version detection and outputs XML?

Explanation:
The main idea is to perform a full TCP SYN port sweep while gathering host details and producing XML output. A SYN scan is invoked with -sS, which probes ports without completing the TCP three-way handshake. To cover every TCP port, the port specification must include the entire range for TCP, written as -pT:0-65535 with no space after the colon. The option -A enables OS detection and version detection (and runs scripts), giving you both the operating system information and service versions. Using -Pn skips initial host discovery so the scan targets the host directly, and -n avoids DNS lookups for speed. -oX directs the results into XML, and -v adds verbosity for progress. The correct command uses the exact port-spec syntax without the space after the colon, ensuring Nmap parses the full 0-65535 TCP range correctly while applying the OS/version detection and XML output. The other version introduces a stray space in the port specification, which can break the command’s parsing and prevent it from running as intended.

The main idea is to perform a full TCP SYN port sweep while gathering host details and producing XML output. A SYN scan is invoked with -sS, which probes ports without completing the TCP three-way handshake. To cover every TCP port, the port specification must include the entire range for TCP, written as -pT:0-65535 with no space after the colon. The option -A enables OS detection and version detection (and runs scripts), giving you both the operating system information and service versions. Using -Pn skips initial host discovery so the scan targets the host directly, and -n avoids DNS lookups for speed. -oX directs the results into XML, and -v adds verbosity for progress.

The correct command uses the exact port-spec syntax without the space after the colon, ensuring Nmap parses the full 0-65535 TCP range correctly while applying the OS/version detection and XML output. The other version introduces a stray space in the port specification, which can break the command’s parsing and prevent it from running as intended.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy