ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 175 - PT0-002 discussion

Report
Export

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?

A.
Change line 2 to $ip= ;Ä? Ä10.192.168.254 ?
Answers
A.
Change line 2 to $ip= ;Ä? Ä10.192.168.254 ?
B.
Remove lines 3, 5, and 6.
Answers
B.
Remove lines 3, 5, and 6.
C.
Remove line 6.
Answers
C.
Remove line 6.
D.
Move all the lines below line 7 to the top of the script.
Answers
D.
Move all the lines below line 7 to the top of the script.
Suggested answer: B

Explanation:

https://www.asc.ohio-state.edu/lewis.239/Class/Perl/perl.html

Example script:

#!/usr/bin/perl

$ip=$argv[1];

attack($ip);

sub attack {

print("x");

}

asked 02/10/2024
Herlinda Cantu
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first