{"id":107,"date":"2022-11-26T07:50:50","date_gmt":"2022-11-26T07:50:50","guid":{"rendered":"https:\/\/exampracticetests.com\/c\/PT0-002\/comptia-pentest-pt0-002-question099\/"},"modified":"2022-11-26T07:50:50","modified_gmt":"2022-11-26T07:50:50","slug":"comptia-pentest-pt0-002-question099","status":"publish","type":"post","link":"https:\/\/exampracticetests.com\/c\/PT0-002\/comptia-pentest-pt0-002-question099\/","title":{"rendered":"CompTIA PenTest+ PT0-002 &#8211; Question099"},"content":{"rendered":"<div class=\"question\">A penetration tester ran a simple Python-based scanner. The following is a snippet of the code:<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full\" src=\"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-content\/uploads\/exam\/0099-0000.jpg\" \/><br \/>\nWhich of the following BEST describes why this script triggered a &quot;probable port scan&quot; alert in the organization&#039;s IDS?<br \/><strong><br \/>A.<\/strong> sock.settimeout(20) on line 7 caused each next socket to be created every 20 milliseconds.<br \/><strong>B.<\/strong> *range(1, 1025) on line 1 populated the portList list in numerical order.<br \/><strong>C.<\/strong> Line 6 uses socket.SOCK_STREAM instead of socket.SOCK_DGRAM<br \/><strong>D.<\/strong> The remoteSvr variable has neither been type-hinted nor initialized.<\/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 penetration tester ran a simple Python-based scanner. The following is a snippet of the code: Which of the following BEST describes why this script triggered a &quot;probable port scan&quot; alert in the organization&#039;s IDS?A. sock.settimeout(20) on line 7 caused each next socket to be created every 20 milliseconds.B. *range(1, 1025) on line 1 populated [&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,102],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-comptia-pentest-pt0-002","tag-comptia-pentest-pt0-002","tag-question-099"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/posts\/107","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=107"}],"version-history":[{"count":0,"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"wp:attachment":[{"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exampracticetests.com\/c\/PT0-002\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}