How would you run a scan that outputs to multiple formats and to a file on disk using -oA with a specific base name?

Study for the Nmap/ZenMap Switches Test. Prepare with flashcards and multiple choice questions, each question provides hints and explanations. Get ready for your exam!

Multiple Choice

How would you run a scan that outputs to multiple formats and to a file on disk using -oA with a specific base name?

Explanation:
The -oA option with a base name makes Nmap save three output formats in one go and place them on disk using that base name. Specifically, it creates and writes: <basename>.nmap (normal), <basename>.xml (XML), and <basename>.gnmap (grepable). So using -oA <basename> will generate those three files named after the base you provide. The other statements aren’t correct because -oA doesn’t limit output to XML only, doesn’t print to stdout, and doesn’t export only to JSON; it writes all three formats to files on disk with the base name.

The -oA option with a base name makes Nmap save three output formats in one go and place them on disk using that base name. Specifically, it creates and writes: .nmap (normal), .xml (XML), and .gnmap (grepable). So using -oA will generate those three files named after the base you provide. The other statements aren’t correct because -oA doesn’t limit output to XML only, doesn’t print to stdout, and doesn’t export only to JSON; it writes all three formats to files on disk with the base name.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy