Suppose that you test an application for the SQL injection vulnerability. Which of the following SQL commands are you expecting to be executed by the server

QuestionsCategory: 312-50v12Suppose that you test an application for the SQL injection vulnerability. Which of the following SQL commands are you expecting to be executed by the server
Admin Staff asked 1 year ago
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:

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?

A. select * from Users where UserName = `attack' ' or 1=1 -- and UserPassword = `123456'

B. select * from Users where UserName = `attack' or 1=1 -- and UserPassword = `123456'

C. select * from Users where UserName = `attack or 1=1 -- and UserPassword = `123456'

D. select * from Users where UserName = `attack' or 1=1 --' and UserPassword = `123456'










Correct Answer: A

This question is in 312-50v12 exam
For getting CEH Certificate


Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.