ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 113 - PT0-002 discussion

Report
Export

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?

A.
<script>var adr= '../evil.php?test=' + escape(document.cookie);</script>
Answers
A.
<script>var adr= '../evil.php?test=' + escape(document.cookie);</script>
B.
../../../../../../../../../../etc/passwd
Answers
B.
../../../../../../../../../../etc/passwd
C.
/var/www/html/index.php;whoami
Answers
C.
/var/www/html/index.php;whoami
D.
1 UNION SELECT 1, DATABASE(),3--
Answers
D.
1 UNION SELECT 1, DATABASE(),3--
Suggested answer: D
asked 02/10/2024
Priyantha Perea
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first