GIAC
GCIH · Question #263
You run the following bash script in Linux: for i in 'cat hostlist.txt' ;do nc -q 2 -v $i 80 < request.txt done Where, hostlist.txt file contains the list of IP addresses and request.txt is the output
Sign in or unlock GCIH to reveal the answer and full explanation for question #263. The question stem and answer options stay visible for context.
Reconnaissance, Scanning, and Enumeration
Question
You run the following bash script in Linux:
for i in 'cat hostlist.txt' ;do nc -q 2 -v $i 80 < request.txt done Where, hostlist.txt file contains the list of IP addresses and request.txt is the output file. Which of the following tasks do you want to perform by running this script?
Options
- AYou want to put nmap in the listen mode to the hosts given in the IP address list.
- BYou want to perform banner grabbing to the hosts given in the IP address list.
- CYou want to perform port scanning to the hosts given in the IP address list.
- DYou want to transfer file hostlist.txt to the hosts given in the IP address list.
Unlock GCIH to see the answer
You've previewed enough free GCIH questions. Unlock GCIH for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#banner grabbing#netcat#bash scripting#service enumeration