CompTIACompTIA
PT0-002 · Question #48
PT0-002 Question #48: Real Exam Question with Answer & Explanation
Sign in or unlock PT0-002 to reveal the answer and full explanation for question #48. The question stem and answer options stay visible for context.
Attacks and Exploits
Question
A tester who is performing a penetration test on a website receives the following output: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /var/www/search.php on line 62 Which of the following commands can be used to further attack the website?
Options
- A<script>var adr= `../evil.php?test=' + escape(document.cookie);</script>
- B../../../../../../../../../../etc/passwd
- C/var/www/html/index.php;whoami
- D1 UNION SELECT 1, DATABASE(),3--
Unlock PT0-002 to see the answer
You've previewed enough free PT0-002 questions. Unlock PT0-002 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.
Topics
#SQL Injection#Web Application Hacking#Database Exploitation#Error-based Injection