{"id":419,"date":"2022-02-25T19:45:15","date_gmt":"2022-02-25T19:38:54","guid":{"rendered":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/certified-ethical-hacker-v11-312-50v11-question278\/"},"modified":"2022-02-25T19:46:28","modified_gmt":"2022-02-25T19:46:28","slug":"certified-ethical-hacker-v11-312-50v11-question278","status":"publish","type":"post","link":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/certified-ethical-hacker-v11-312-50v11-question278\/","title":{"rendered":"Certified Ethical Hacker v11 312-50v11 &#8211; Question278"},"content":{"rendered":"<div class=\"question\">\n<blockquote class=\"wp-block-quote code\"><p>\n#!\/usr\/bin\/python import socket buffer=[&quot;&quot;A&quot;&quot;] counter=50 while len(buffer)&lt;=100:<br \/>\nbuffer. append (&quot;&quot;a&quot;&quot;*counter) counter=counter+50 commands= [&quot;&quot;HELP&quot;&quot;, &quot;&quot;STATS .&quot;&quot;,<br \/>\n&quot;&quot;RTIME .&quot;&quot;, &quot;&quot;LIME. &quot;&quot;,&quot;&quot;SRUN .&quot;&#039; ,&quot;&quot;TRUN .&quot;&quot;, &quot;&quot;GMON .&quot;&quot;, &quot;&quot;GDOG .&quot;&quot;,&quot;&quot;KSTET .&quot;,<br \/>\n&quot;&quot;GTER .&quot;&quot;, &quot;&quot;HTER .&quot;&quot;, &quot;&quot;LTER .&quot;,&quot;&quot;KSTAN .&quot;&quot;] for command in commands: for<br \/>\nbuffstring in buffer: print &quot;Exploiting&quot; +command +&quot;&quot;:&quot;&quot;+str(len(buffstring))<br \/>\ns=socket.socket (socket.AF_INET, socket.SOCK_STREAM) s.connect((&#039;127.0.0.1&#039;, 9999))<br \/><strong>s.<\/strong>recv(50) s.send(command+buffstring) s.close()\n<\/p><\/blockquote>\n<p>What is the code written for?<br \/><strong><br \/>A.<\/strong> Denial-of-service (DOS)<br \/><strong>B.<\/strong> Buffer Overflow<br \/><strong>C.<\/strong> Bruteforce<br \/><strong>D.<\/strong> Encryption<\/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>B<\/strong><\/div>\n<p><\/strong><\/span> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>#!\/usr\/bin\/python import socket buffer=[&quot;&quot;A&quot;&quot;] counter=50 while len(buffer)&lt;=100: buffer. append (&quot;&quot;a&quot;&quot;*counter) counter=counter+50 commands= [&quot;&quot;HELP&quot;&quot;, &quot;&quot;STATS .&quot;&quot;, &quot;&quot;RTIME .&quot;&quot;, &quot;&quot;LIME. &quot;&quot;,&quot;&quot;SRUN .&quot;&#039; ,&quot;&quot;TRUN .&quot;&quot;, &quot;&quot;GMON .&quot;&quot;, &quot;&quot;GDOG .&quot;&quot;,&quot;&quot;KSTET .&quot;, &quot;&quot;GTER .&quot;&quot;, &quot;&quot;HTER .&quot;&quot;, &quot;&quot;LTER .&quot;,&quot;&quot;KSTAN .&quot;&quot;] for command in commands: for buffstring in buffer: print &quot;Exploiting&quot; +command +&quot;&quot;:&quot;&quot;+str(len(buffstring)) s=socket.socket (socket.AF_INET, socket.SOCK_STREAM) s.connect((&#039;127.0.0.1&#039;, 9999))s.recv(50) s.send(command+buffstring) s.close() What is [&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,281],"class_list":["post-419","post","type-post","status-publish","format-standard","hentry","category-certified-ethical-hacker-v11-312-50v11","tag-certified-ethical-hacker-v11-312-50v11","tag-question-278"],"_links":{"self":[{"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/posts\/419","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=419"}],"version-history":[{"count":1,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/posts\/419\/revisions"}],"predecessor-version":[{"id":646,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/posts\/419\/revisions\/646"}],"wp:attachment":[{"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/media?parent=419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/categories?post=419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exampracticetests.com\/eccouncil\/ceh-v11\/wp-json\/wp\/v2\/tags?post=419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}