{"id":155,"date":"2022-11-26T07:51:40","date_gmt":"2022-11-26T07:51:40","guid":{"rendered":"https:\/\/exampracticetests.com\/c\/PT0-002\/comptia-pentest-pt0-002-question147\/"},"modified":"2022-11-26T07:51:40","modified_gmt":"2022-11-26T07:51:40","slug":"comptia-pentest-pt0-002-question147","status":"publish","type":"post","link":"https:\/\/exampracticetests.com\/c\/PT0-002\/comptia-pentest-pt0-002-question147\/","title":{"rendered":"CompTIA PenTest+ PT0-002 &#8211; Question147"},"content":{"rendered":"<div class=\"question\">A tester who is performing a penetration test on a website receives the following output:<br \/>\nWarning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in \/var\/www\/search.php on line 62<br \/>\nWhich of the following commands can be used to further attack the website?<br \/><strong><br \/>A.<\/strong> &lt;script&gt;var adr = &#039;..\/evil.php?test=&#039; + escape(document.cookie);&lt;\/script&gt;<br \/><strong>B.<\/strong> ..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/etc\/passwd<br \/><strong>C.<\/strong> \/var\/www\/html\/index.php;whoami<br \/><strong>D.<\/strong> 1 UNION SELECT 1, DATABASE (), 3 &#8212;<\/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>A tester who is performing a penetration test on a website receives the following output: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in \/var\/www\/search.php on line 62 Which of the following commands can be used to further attack the website?A. &lt;script&gt;var adr = &#039;..\/evil.php?test=&#039; + escape(document.cookie);&lt;\/script&gt;B. ..\/..\/..\/..\/..\/..\/..\/..\/..\/..\/etc\/passwdC. \/var\/www\/html\/index.php;whoamiD. 1 UNION SELECT 1, [&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,150],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-comptia-pentest-pt0-002","tag-comptia-pentest-pt0-002","tag-question-147"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/comments?post=155"}],"version-history":[{"count":0,"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/posts\/155\/revisions"}],"wp:attachment":[{"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/media?parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/categories?post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/tags?post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}