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

Prepare for the Nmap and ZenMap Tests. Access flashcards and multiple choice questions, with hints and explanations for each question. Ensure success in 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 Passetra

You can unsubscribe at any time. Read our privacy policy