CompTIA PenTest+ (PT0-002) — Question 95
A penetration tester needs to upload the results of a port scan to a centralized security tool. Which of the following commands would allow the tester to save the results in an interchangeable format?
Answer options
- A. nmap -iL results 192.168.0.10-100
- B. nmap 192.168.0.10-100 -O > results
- C. nmap -A 192.168.0.10-100 -oX results
- D. nmap 192.168.0.10-100 | grep "results"
Correct answer: C
Explanation
The correct answer is C, as it uses the '-oX' option to save the results in XML format, which is widely accepted by various security tools for interoperability. Options A and B do not specify a format suitable for centralized tools, and option D merely filters the output without saving it in a usable format.