CompTIA PT0-003 Question Answer
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?
CompTIA PT0-003 Summary
- Vendor: CompTIA
- Product: PT0-003
- Update on: Sep 5, 2025
- Questions: 252