EC-Council
EC0-350 · Question #187
What will the following command produce on a website's login page if executed successfully? SELECT email, passwd, login_id, full_name FROM members WHERE email = '[email protected]'; DROP TABLE…
The correct answer is B. This command will delete the entire members table. See the full explanation below for the reasoning.
Question
What will the following command produce on a website's login page if executed successfully? SELECT email, passwd, login_id, full_name FROM members WHERE email = '[email protected]'; DROP TABLE members; --'
Options
- AThis code will insert the [email protected] email address into the members table.
- BThis command will delete the entire members table.
- CIt retrieves the password for the first user in the members table.
- DThis command will not produce anything since the syntax is incorrect.
How the community answered
(49 responses)- A8% (4)
- B73% (36)
- C14% (7)
- D4% (2)
Community Discussion
No community discussion yet for this question.