PT0-003 · Question #30
PT0-003 Question #30: Real Exam Question with Answer & Explanation
Sign in or unlock PT0-003 to reveal the answer and full explanation for question #30. The question stem and answer options stay visible for context.
Question
A penetration tester creates a list of target domains that require further enumeration. The tester writes the following script to perform vulnerability scanning across the domains: line 1: #!/usr/bin/bash line 2: DOMAINS_LIST = "/path/to/list.txt" line 3: while read -r i; do line 4: nikto -h $i -o scan-$i.txt & line 5: done The script does not work as intended. Which of the following should the tester do to fix the script?
Options
- AChange line 2 to {"domain1", "domain2", "domain3", }.
- BChange line 3 to while true; read -r i; do.
- CChange line 4 to nikto $i | tee scan-$i.txt.
- DChange line 5 to done < "$DOMAINS_LIST".
Unlock PT0-003 to see the answer
You've previewed enough free PT0-003 questions. Unlock PT0-003 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.