312-50V10 · 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 Nmap to save scan results in XML format to a specified output file, enabling programmatic parsing and integration with other tools.
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
(48 responses)- B2% (1)
- C4% (2)
- D94% (45)
Why each option
The Nmap -oX flag directs Nmap to save scan results in XML format to a specified output file, enabling programmatic parsing and integration with other tools.
An Xmas scan is performed using the -sX flag, not -oX; -sX sets the FIN, PSH, and URG TCP flags, while -oX solely controls output format.
There is no 'eXpress scan' mode in Nmap; -oX is strictly an output formatting option and does not alter scan speed or technique.
Outputting truncated results to the screen corresponds to normal or grepable output modes such as -oN or -oG; -oX writes structured XML to a file, not abbreviated console output.
The -oX <filename> option in Nmap writes the scan results to a file in well-formed XML format. This output type is machine-readable and commonly used to feed results into vulnerability management platforms, custom scripts, or reporting tools that can parse structured XML data.
Concept tested: Nmap output format flags and XML reporting
Source: https://nmap.org/book/output-formats-xml-output.html
Topics
Community Discussion
No community discussion yet for this question.