{"id":141,"date":"2019-05-13T14:54:27","date_gmt":"2019-05-13T06:54:27","guid":{"rendered":"http:\/\/www.luyouli.com\/?p=141"},"modified":"2019-05-15T16:15:47","modified_gmt":"2019-05-15T08:15:47","slug":"centos-7-%e5%ae%89%e8%a3%85-openvas-9","status":"publish","type":"post","link":"https:\/\/www.luyouli.com\/?p=141","title":{"rendered":"Centos 7 \u5b89\u88c5 OpenVAS 9"},"content":{"rendered":"<p>OpenVAS &#8211; Open Vulnerability<\/p>\n<p>Assessment SystemOpenVAS &#8211; \u5f00\u653e\u6f0f\u6d1e\u8bc4\u4f30\u7cfb\u7edf<\/p>\n<p>OpenVAS is a full-featured vulnerability scanner. Its capabilities include unauthenticated testing, authenticated testing, various high level and low level Internet and industrial protocols, performance tuning for large-scale scans and a powerful internal programming language to implement any type of vulnerability test.<\/p>\n<p><!--more--><\/p>\n<p>OpenVAS\u662f\u4e00\u4e2a\u529f\u80fd\u9f50\u5168\u7684\u6f0f\u6d1e\u626b\u63cf\u7a0b\u5e8f\u3002\u5176\u529f\u80fd\u5305\u62ec\u672a\u7ecf\u9a8c\u8bc1\u7684\u6d4b\u8bd5\uff0c\u7ecf\u8fc7\u8eab\u4efd\u9a8c\u8bc1\u7684\u6d4b\u8bd5\uff0c\u5404\u79cd\u9ad8\u7ea7\u548c\u4f4e\u7ea7Internet\u548c\u5de5\u4e1a\u534f\u8bae\uff0c\u7528\u4e8e\u5927\u89c4\u6a21\u626b\u63cf\u7684\u6027\u80fd\u8c03\u6574\u4ee5\u53ca\u7528\u4e8e\u5b9e\u73b0\u4efb\u4f55\u7c7b\u578b\u7684\u6f0f\u6d1e\u6d4b\u8bd5\u7684\u5f3a\u5927\u5185\u90e8\u7f16\u7a0b\u8bed\u8a00\u3002<\/p>\n<p>\u8bdd\u4e0d\u591a\u8bf4\uff0c\u76f4\u63a5\u5f00\u6574\uff1a<\/p>\n<p>\u7cfb\u7edf\uff1aCentos 7.6<\/p>\n<p>1\u3001\u5173\u95edselinux<br \/>\n# vim \/etc\/selinux\/config<\/p>\n<p>2\u3001\u66f4\u65b0\u7cfb\u7edf\u5230\u6700\u65b0<br \/>\n# yum -y update<\/p>\n<p>3\u3001\u5b89\u88c5\u5fc5\u8981\u7ec4\u4ef6<br \/>\n# yum install -y wget bzip2 texlive net-tools alien gnutls-utils<\/p>\n<p>4\u3001\u5b89\u88c5\u6e90\u7ad9<br \/>\n# wget -q -O &#8211; https:\/\/www.atomicorp.com\/installers\/atomic | sh<\/p>\n<p>5\u3001yum\u5b89\u88c5openvas 9<br \/>\n# yum install openvas -y<\/p>\n<p>6\u3001\u7f16\u8f91redis.conf\u653e\u5f00sock\u548c700\u6743\u9650<br \/>\n# vim \/etc\/redis.conf<br \/>\nunixsocket \/tmp\/redis.sock<br \/>\nunixsocketperm 700<\/p>\n<p>7\u3001\u91cd\u542fredis\u5e76\u5f00\u673a\u81ea\u542f\u52a8<br \/>\n# systemctl enable redis &amp;&amp; systemctl restart redis<\/p>\n<p>8\u3001\u5f00\u59cb\u5b89\u88c5openvas<br \/>\n# openvas-setup  # \u8fd9\u4e00\u6b65\u9700\u8981\u7b49\u5f85\u5f88\u4e45\uff0c\u4f1a\u4e0b\u8f7d\u975e\u5e38\u591a\u7684\u6587\u4ef6<\/p>\n<p>9\u3001\u9632\u706b\u5899\u5f00\u653e9392\u7aef\u53e3<br \/>\n# firewall-cmd &#8211;permanent &#8211;add-port=9392\/tcp<br \/>\n# firewall-cmd &#8211;reload<br \/>\n# firewall-cmd &#8211;list-port<\/p>\n<p>10\u3001\u5b89\u88c5\u5b8c\u6bd5\u540e\u68c0\u6d4b<br \/>\n# openvas-check-setup &#8211;v9<br \/>\nIt seems like your OpenVAS-9 installation is OK.<br \/>\n# \u51fa\u73b0\u4e0a\u9762\u8fd9\u4e00\u53e5\u57fa\u672c\u4e0a\u6ca1\u95ee\u9898\uff0c\u4e0a\u9762\u8fd8\u6709\u6709\u4e00\u4e9bWARNING\uff0c\u89c6\u60c5\u51b5\u4fee\u590d\u6216\u8005\u6539\u6b63<\/p>\n<p>11\u3001\u5185\u7f51\u767b\u9646openvas<br \/>\n\u5982\u679c\u5728\u5185\u7f51\u5b89\u88c5\u7684openvas\uff0c\u90a3\u4e48\u76f4\u63a5\u8bbf\u95ee http:\/\/<ip-address>:9392\u5373\u53ef<\/ip-address><\/p>\n<p>12\u3001\u5916\u7f51\u767b\u9646openvas<br \/>\n\u5047\u5982openvas\u5b89\u88c5\u5728ECS\u7b49\u5916\u7f51\u73af\u5883\uff0c\u9700\u8981\u4fee\u6539\u4e00\u4e9b\u914d\u7f6e\u53c2\u6570\u624d\u53ef\u4ee5\u8bbf\u95ee\uff0c\u4fee\u6539\u5982\u4e0b\uff1a<br \/>\n# vim \/etc\/sysconfig\/gsad<br \/>\nOPTIONS=&#8221;&#8221;<br \/>\n\u4fee\u6539\u4e3a<br \/>\nOPTIONS=&#8221;&#8211;http-only&#8221;<\/p>\n<p># systemctl restart gsad    # \u91cd\u542fgsad<\/p>\n<p>\u8bbf\u95eeopenvas\uff0c\u8f93\u5165\u5e10\u53f7\u5bc6\u7801<br \/>\nhttp:\/\/www.xxx.com:9392\/login\/login.html<\/p>\n<p>13\u3001\u6bcf\u5929\u66f4\u65b0\u5b89\u5168\u5e93<br \/>\n# \/usr\/sbin\/greenbone-nvt-sync &amp;&amp; \/usr\/sbin\/greenbone-scapdata-sync &amp;&amp; \/usr\/sbin\/greenbone-certdata-sync<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenVAS &#8211; Open Vulnerability Assessment SystemOpe [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-14"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"views":15701,"_links":{"self":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=141"}],"version-history":[{"count":3,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":144,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions\/144"}],"wp:attachment":[{"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.luyouli.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}