nerdexam
EC-Council

312-49V9 · Question #421

What will the following command produce on a website login page? SELECT email, passwd, login_id, full_name FROM members WHERE email = '[email protected]'; DROP TABLE members; --'

The correct answer is C. Deletes the entire members table. The third line deletes the table named members.

Investigating Web Attacks

Question

What will the following command produce on a website login page? SELECT email, passwd, login_id, full_name FROM members WHERE email = '[email protected]'; DROP TABLE members; --'

Options

  • ARetrieves the password for the first user in the members table
  • BThis command will not produce anything since the syntax is incorrect
  • CDeletes the entire members table
  • DInserts the Error! Reference source not found. email address into the members table

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    14% (3)
  • C
    77% (17)
  • D
    5% (1)

Explanation

The third line deletes the table named members.

Topics

#SQL injection#DROP TABLE#stacked queries#web attack

Community Discussion

No community discussion yet for this question.

Full 312-49V9 Practice