Valid PT0-003 Dumps shared by ExamDiscuss.com for Helping Passing PT0-003 Exam! ExamDiscuss.com now offer the newest PT0-003 exam dumps, the ExamDiscuss.com PT0-003 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com PT0-003 dumps with Test Engine here:
A penetration tester writes a Bash script to automate the execution of a ping command on a Class C network: for var in --MISSING TEXT-- do ping -c 1 192.168.10.$var done Which of the following pieces of code should the penetration tester use in place of -MISSING TEXT-?
Correct Answer: B
The seq command generates a sequence of numbers, making it the best choice for iterating through IP addresses in a Class C subnet. * Option A (crunch) #: Crunch generates wordlists, not IP ranges. * Option B (seq 1 254) #: Correct. Generates the range 1-254 for a Class C subnet. * Option C (echo 1-254) #: Outputs the string "1-254" instead of expanding it into numbers. * Option D (fl..254) #: Incorrect syntax. # Reference: CompTIA PenTest+ PT0-003 Official Guide - Bash Scripting for Automation