312-50V11 · Question #737
What does the -oX flag do in an Nmap scan?
The correct answer is D. Output the results in XML format to a file. The Nmap -oX flag directs scan output to be written to a specified file in XML format, enabling machine-readable results for parsing and reporting.
Question
What does the -oX flag do in an Nmap scan?
Options
- APerform an Xmas scan
- BPerform an eXpress scan
- COutput the results in truncated format to the screen
- DOutput the results in XML format to a file
How the community answered
(20 responses)- C5% (1)
- D95% (19)
Why each option
The Nmap -oX flag directs scan output to be written to a specified file in XML format, enabling machine-readable results for parsing and reporting.
An Xmas scan is invoked with the -sX flag (scan type), not -oX; the lowercase 'o' prefix in Nmap flags designates output format, not scan type.
There is no 'eXpress scan' mode in Nmap; this is a fabricated option that does not correspond to any valid Nmap flag.
Nmap does not have a truncated screen output format; the -oX flag writes to a file, not to the screen, and produces full XML-structured output rather than a shortened view.
The -oX <filename> flag in Nmap outputs results in structured XML format to the named file, allowing integration with other security tools, vulnerability management platforms, and automated parsers. It is one of three major output format flags in Nmap (-oN for normal, -oG for grepable, -oX for XML). The -oA flag can be used to output all three formats simultaneously.
Concept tested: Nmap XML output format flag -oX
Source: https://nmap.org/book/output-formats-xml-output.html
Topics
Community Discussion
No community discussion yet for this question.