How can you save Nmap output in multiple formats in a single command, and which formats does -oA produce?

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 can you save Nmap output in multiple formats in a single command, and which formats does -oA produce?

Explanation:
Using the -oA option with a basename saves all three output formats in one go. It expands to running -oN, -oX, and -oG together, giving you a normal (human-readable) output, an XML file, and a grepable text file. The resulting files will be named using the provided basename with extensions: basename.nmap, basename.xml, and basename.gnmap. This is the convenient way to keep all common formats available from a single command. If you only need one format, you’d use the specific option alone, rather than -oA.

Using the -oA option with a basename saves all three output formats in one go. It expands to running -oN, -oX, and -oG together, giving you a normal (human-readable) output, an XML file, and a grepable text file. The resulting files will be named using the provided basename with extensions: basename.nmap, basename.xml, and basename.gnmap. This is the convenient way to keep all common formats available from a single command. If you only need one format, you’d use the specific option alone, rather than -oA.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy