nerdexam
Exams312-50V11Questions#824
EC-Council

312-50V11 · Question #824

312-50V11 Question #824: Real Exam Question with Answer & Explanation

Sign in or unlock 312-50V11 to reveal the answer and full explanation for question #824. The question stem and answer options stay visible for context.

Question

Suppose that you test an application for the SQL injection vulnerability. You know that the backend database is based on Microsoft SQL Server. In the login/password form, you enter the following credentials: Username: attack' or 1=1 -- Password: 123456 Based on the above credentials, which of the following SQL commands are you expecting to be executed by the server, if there is indeed an SQL injection vulnerability?

Options

  • Aselect * from Users where UserName = 'attack'' or 1=1 -- and UserPassword = '123456'
  • Bselect * from Users where UserName = 'attack' or 1=1 -- and UserPassword = '123456'
  • Cselect * from Users where UserName = 'attack or 1=1 -- and UserPassword = '123456'
  • Dselect * from Users where UserName = 'attack' or 1=1 --' and UserPassword = '123456'

Unlock 312-50V11 to see the answer

You've previewed enough free 312-50V11 questions. Unlock 312-50V11 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 312-50V11 Practice
Suppose that you test an application for the SQL injection... | 312-50V11 Q#824 Answer | NerdExam