QuestionQ841

Web Application Injection Attacks

You are a Network Penetration tester at Secure Inc. Your company undertakes projects to test the security of various companies. Recently, Secure Inc. assigned you a project to test the security of a website. On the website login page, you run the following SQL query:

Question Image

What task will the preceding SQL query perform?

  • A Deletes the database in which members table resides.
  • B Deletes the rows of members table where email id is '[email protected]' given.
  • C Performs the XSS attacks.
  • D Deletes the entire members table.
Explanation

The DROP TABLE members statement deletes the complete members table. The semicolon ends the preceding query, and the SQL comment marker prevents the remaining text from affecting execution.

Community Discussion

No comments yet. Be the first to start the discussion!