GIAC
GPEN · Question #75
GPEN Question #75: Real Exam Question with Answer & Explanation
Sign in or unlock GPEN to reveal the answer and full explanation for question #75. The question stem and answer options stay visible for context.
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 perform port scanning to the hosts given in the IP address list.
- BYou want to transfer file hostlist.txt to the hosts given in the IP address list.
- CYou want to perform banner grabbing to the hosts given in the IP address list.
- DYou want to put nmap in the listen mode to the hosts given in the IP address list.
Unlock GPEN to see the answer
You've previewed enough free GPEN questions. Unlock GPEN 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.