Recommend!! Get the Full PT0-003 dumps in VCE and PDF From SurePassExam
https://www.surepassexam.com/PT0-003-exam-dumps.html (298 New Questions)
CompTIA
Exam Questions PT0-003
CompTIA PenTest+ Exam
Passing Certification Exams Made Easy visit - https://www.surepassexam.com
, Recommend!! Get the Full PT0-003 dumps in VCE and PDF From SurePassExam
https://www.surepassexam.com/PT0-003-exam-dumps.html (298 New Questions)
NEW QUESTION 1
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?
A. Change line 2 to {"domain1", "domain2", "domain3", }.
B. Change line 3 to while true; read -r i; do.
C. Change line 4 to nikto $i | tee scan-$i.txt.
D. Change line 5 to done < "$DOMAINS_LIST".
Answer: D
Explanation:
The issue with the script lies in how the while loop reads the file containing the list of domains. The current script doesn't correctly redirect the file's content to the
loop. Changing line 5 to done < "$DOMAINS_LIST" correctly directs the loop to read from the file.
Step-by-Step Explanation
? Original Script: DOMAINS_LIST="/path/to/list.txt" while read -r i; do
nikto -h $i -o scan-$i.txt & done
? Identified Problem:
? Solution: DOMAINS_LIST="/path/to/list.txt" while read -r i; do
nikto -h $i -o scan-$i.txt & done < "$DOMAINS_LIST"
? Explanation
? References from Pentesting Literature:
=================
NEW QUESTION 2
HOTSPOT
You are a security analyst tasked with hardening a web server.
You have been given a list of HTTP payloads that were flagged as malicious. INSTRUCTIONS
Given the following attack signatures, determine the attack type, and then identify the associated remediation to prevent the attack in the future.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
Passing Certification Exams Made Easy visit - https://www.surepassexam.com
https://www.surepassexam.com/PT0-003-exam-dumps.html (298 New Questions)
CompTIA
Exam Questions PT0-003
CompTIA PenTest+ Exam
Passing Certification Exams Made Easy visit - https://www.surepassexam.com
, Recommend!! Get the Full PT0-003 dumps in VCE and PDF From SurePassExam
https://www.surepassexam.com/PT0-003-exam-dumps.html (298 New Questions)
NEW QUESTION 1
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?
A. Change line 2 to {"domain1", "domain2", "domain3", }.
B. Change line 3 to while true; read -r i; do.
C. Change line 4 to nikto $i | tee scan-$i.txt.
D. Change line 5 to done < "$DOMAINS_LIST".
Answer: D
Explanation:
The issue with the script lies in how the while loop reads the file containing the list of domains. The current script doesn't correctly redirect the file's content to the
loop. Changing line 5 to done < "$DOMAINS_LIST" correctly directs the loop to read from the file.
Step-by-Step Explanation
? Original Script: DOMAINS_LIST="/path/to/list.txt" while read -r i; do
nikto -h $i -o scan-$i.txt & done
? Identified Problem:
? Solution: DOMAINS_LIST="/path/to/list.txt" while read -r i; do
nikto -h $i -o scan-$i.txt & done < "$DOMAINS_LIST"
? Explanation
? References from Pentesting Literature:
=================
NEW QUESTION 2
HOTSPOT
You are a security analyst tasked with hardening a web server.
You have been given a list of HTTP payloads that were flagged as malicious. INSTRUCTIONS
Given the following attack signatures, determine the attack type, and then identify the associated remediation to prevent the attack in the future.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
Passing Certification Exams Made Easy visit - https://www.surepassexam.com