CompTIA
PT0-002 · Question #80
A penetration tester conducted a discovery scan that generated the following: Which of the following commands generated the results above and will transform them into a list of active hosts for…
The correct answer is B. nmap -sn 192.168.0.1-254 , grep "Nmap scan" | awk `{print S5}'. Since those results are from host discovery (-sn) and no ports are reported. AWK command is used in combination with grep to manipulate the output.
Information Gathering and Vulnerability Scanning
Question
A penetration tester conducted a discovery scan that generated the following:
Which of the following commands generated the results above and will transform them into a list of active hosts for further analysis?
Exhibit
Options
- Anmap -oG list.txt 192.168.0.1-254 , sort
- Bnmap -sn 192.168.0.1-254 , grep "Nmap scan" | awk `{print S5}'
- Cnmap --open 192.168.0.1-254, uniq
- Dnmap -o 192.168.0.1-254, cut -f 2
How the community answered
(48 responses)- A2% (1)
- B79% (38)
- C13% (6)
- D6% (3)
Explanation
Since those results are from host discovery (-sn) and no ports are reported. AWK command is used in combination with grep to manipulate the output.
Topics
#Nmap#Host Discovery#Command-line Tools#Text Processing
Community Discussion
No community discussion yet for this question.
