CompTIA
PT0-002 · Question #188
A penetration tester downloaded the following Perl script that can be used to identify vulnerabilities in network switches. However, the script is not working properly. Which of the following changes
Sign in or unlock PT0-002 to reveal the answer and full explanation for question #188. The question stem and answer options stay visible for context.
Tools and Code Analysis
Question
A penetration tester downloaded the following Perl script that can be used to identify vulnerabilities in network switches. However, the script is not working properly. Which of the following changes should the tester apply to make the script work as intended?
Exhibit
Options
- AChange line 2 to $ip= 10.192.168.254;
- BRemove lines 3, 5, and 6.
- CRemove line 6.
- DMove all the lines below line 7 to the top of the script.
Unlock PT0-002 to see the answer
You've previewed enough free PT0-002 questions. Unlock PT0-002 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
#Perl Scripting#Script Debugging#Vulnerability Scanning#Penetration Testing Tools
