{"id":325,"date":"2022-02-25T19:43:39","date_gmt":"2022-02-25T19:37:13","guid":{"rendered":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/certified-ethical-hacker-v11-312-50v11-question184\/"},"modified":"2022-02-25T19:46:26","modified_gmt":"2022-02-25T19:46:26","slug":"certified-ethical-hacker-v11-312-50v11-question184","status":"publish","type":"post","link":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/certified-ethical-hacker-v11-312-50v11-question184\/","title":{"rendered":"Certified Ethical Hacker v11 312-50v11 &#8211; Question184"},"content":{"rendered":"<div class=\"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:<\/p>\n<blockquote class=\"wp-block-quote code\"><p>\nUsername: attack&#039; or 1=1 &#8211;<br \/>\nPassword: 123456\n<\/p><\/blockquote>\n<p>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?<br \/><strong><br \/>A.<\/strong> select * from Users where UserName = `attack&#039; &#039; or 1=1 &#8212; and UserPassword = `123456&#039;<br \/><strong>B.<\/strong> select * from Users where UserName = `attack&#039; or 1=1 &#8212; and UserPassword = `123456&#039;<br \/><strong>C.<\/strong> select * from Users where UserName = `attack or 1=1 &#8212; and UserPassword = `123456&#039;<br \/><strong>D.<\/strong> select * from Users where UserName = `attack&#039; or 1=1 &#8211;&#039; and UserPassword = `123456&#039;<\/div>\n<p><\/p>\n<style> .hidden-div{ display:none } <\/style>\n<p>\t\t\t\t\t\t\t<button onclick=\"getElementById('hidden-div').style.display = 'block'\"> Show Answer <\/button> <button onclick=\"getElementById('hidden-div').style.display = 'none'\">Hide Answer<\/button><\/p>\n<div class=\"hidden-div\" id=\"hidden-div\"><span style=\"\"><\/p>\n<div class=\"answer\">Correct Answer: <strong>A<\/strong><\/div>\n<p><\/strong><\/span> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>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&#039; or 1=1 &#8211; Password: 123456 Based on the above credentials, which of the following SQL commands are you expecting to be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,187],"class_list":["post-325","post","type-post","status-publish","format-standard","hentry","category-certified-ethical-hacker-v11-312-50v11","tag-certified-ethical-hacker-v11-312-50v11","tag-question-184"],"_links":{"self":[{"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/posts\/325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/comments?post=325"}],"version-history":[{"count":1,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/posts\/325\/revisions"}],"predecessor-version":[{"id":552,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/posts\/325\/revisions\/552"}],"wp:attachment":[{"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/media?parent=325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/categories?post=325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/tags?post=325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}