nerdexam
EC-Council

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.

Scanning Networks

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)
  • B
    2% (1)
  • C
    4% (2)
  • D
    94% (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.

APerform an Xmas scan

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.

BPerform an eXpress scan

There is no 'eXpress scan' mode in Nmap; -oX is strictly an output formatting option and does not alter scan speed or technique.

COutput the results in truncated format to the screen

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.

DOutput the results in XML format to a fileCorrect

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

#Nmap#XML output#output flags#scan results

Community Discussion

No community discussion yet for this question.

Full 312-50V10 Practice