{"id":276,"date":"2021-04-28T17:39:05","date_gmt":"2021-04-28T09:39:05","guid":{"rendered":"https:\/\/blog.scxs.vip\/?p=276"},"modified":"2021-04-28T17:39:06","modified_gmt":"2021-04-28T09:39:06","slug":"%e4%bb%a5docker%e5%ae%b9%e5%99%a8%e7%9a%84%e5%bd%a2%e5%bc%8f%e8%bf%90%e8%a1%8cgvm-11","status":"publish","type":"post","link":"https:\/\/blog.scxs.vip\/?p=276","title":{"rendered":"\u4ee5Docker\u5bb9\u5668\u7684\u5f62\u5f0f\u8fd0\u884cGVM-11"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h2-1\">\u4e00\u3001<strong>\u64cd\u4f5c\u76ee\u7684\u548c\u5e94\u7528\u573a\u666f<\/strong><\/h2>\n\n\n\n<p><strong>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u5f6d\u745e\u3002<\/strong><\/p>\n\n\n\n<p><strong>\u524d\u9762\u6211\u53d1\u8868\u4e86\u4e00\u7bc7\u5173\u4e8eOpenVAS\u7684\u6587\u7ae0\uff0c\u8bb2\u8ff0\u5982\u4f55\u4ee5docker\u5bb9\u5668\u7684\u65b9\u5f0f\u8fd0\u884cOpenVAS\u8fdb\u884c\u6f0f\u6d1e\u626b\u63cf\u3002\u968f\u7740OpenVAS\u8f6f\u4ef6\u7684\u4e0d\u65ad\u5347\u7ea7\uff0c\u4ece\u7248\u672c10\u5f00\u59cb\uff0cOpenVAS\u88ab\u6539\u540d\u4e3aGVM-10\uff08Greenbone Vulnerability Management\uff09\u3002\u4e0b\u9762\u6211\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e00\u4e0bdocker\u7248\u672c\u7684GVM-11\u7684\u4f7f\u7528\u65b9\u6cd5\u3002<\/strong><\/p>\n\n\n\n<p>OpenVAS\uff08Open Vulnerability Assessment System\uff09\u662f\u5728nessus\u57fa\u7840\u4e0a\u53d1\u5c55\u8d77\u6765\u7684\u4e00\u4e2a\u5f00\u6e90\u7684\u6f0f\u6d1e\u626b\u63cf\u7a0b\u5e8f\uff0c\u5176\u6838\u5fc3\u90e8\u4ef6\u662f\u4e00\u5957\u6f0f\u6d1e\u6d4b\u8bd5\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u68c0\u6d4b\u8fdc\u7a0b\u7cfb\u7edf\u548c\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u5b89\u5168\u95ee\u9898\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h2-2\">\u4e8c\u3001<strong>\u5e73\u53f0\u53ca\u5de5\u5177\u7248\u672c<\/strong><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>host\u7cfb\u7edf\uff1alinux mint 19.3<\/p><p>\u8f6f\u4ef6\uff1aGVM 11\u3001docker<\/p><p>\u8ba1\u7b97\u673a\u786c\u4ef6\uff1a\u7b14\u8bb0\u672c\u7535\u8111<\/p><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h2-3\">\u4e09\u3001<strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong><\/h2>\n\n\n\n<p>\uff08\u4e00\uff09<strong>\u5728linux mint\u7cfb\u7edf\u4e2d\u5b89\u88c5docker<\/strong><\/p>\n\n\n\n<p>apt install docker.io &nbsp;\/\/\u5728\u7ebf\u5b89\u88c5docker<\/p>\n\n\n\n<p>systemctl start docker &nbsp;\/\/\u542f\u52a8docker\u670d\u52a1<\/p>\n\n\n\n<p>systemctl enable docker &nbsp;\/\/\u8bbe\u7f6e\u5f00\u673a\u81ea\u52a8\u542f\u52a8<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572036_5ebef1c4dfa45.png!small\">docker version &nbsp;\/\/\u67e5\u770bdocker\u7248\u672c<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572048_5ebef1d0eb53d.png!small\">\u53ef\u4ee5\u6b63\u5e38\u663e\u793a\u7248\u672c\u4fe1\u606f\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n\n\n\n<p>\uff08\u4e8c\uff09<strong>\u4e0b\u8f7d\u548c\u8fd0\u884cGVM\u7684docker\u955c\u50cf<\/strong><\/p>\n\n\n\n<p><strong>1\u3001<\/strong><strong>\u4e0b\u8f7dGVM 11\u7684docker\u955c\u50cf<\/strong><\/p>\n\n\n\n<p>docker search gvm<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572079_5ebef1ef8a86f.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u7b2c\u4e00\u4e2a\u955c\u50cf\u662f\u6211\u4eec\u9700\u8981\u7684\u3002<\/p>\n\n\n\n<p>docker pull securecompliance\/gvm&nbsp; \/\/\u5c06\u955c\u50cfpull\u5230\u672c\u5730<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572106_5ebef20ab8ac7.png!small\">docker search gvm &nbsp;\/\/\u67e5\u770b\u672c\u5730\u7684docker\u955c\u50cf<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572119_5ebef2175b61b.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>2\u3001\u8fd0\u884cGVM 11\u955c\u50cf<\/strong><\/p>\n\n\n\n<p>docker run -d -p 8080:9392 &#8211;name gvm securecompliance\/gvm<\/p>\n\n\n\n<p>run\u547d\u4ee4\u88c5\u8f7ddocker\u955c\u50cf\u5230\u5185\u5b58\uff0c\u5f62\u6210\u5bb9\u5668\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>-d &nbsp;\/\/\u540e\u53f0\u8fd0\u884c\u5bb9\u5668<\/p><p>-p &nbsp;\/\/\u5c06host\u76848080\u7aef\u53e3\u6620\u5c04\u5230\u5bb9\u5668\u76849392\u7aef\u53e3<\/p><p>&#8211;name &nbsp;\/\/\u7ed9\u5bb9\u5668\u8d77\u4e2a\u540d\u5b57<\/p><\/blockquote>\n\n\n\n<p>docker ps &nbsp;\/\/\u67e5\u770b\u6b63\u5728\u8fd0\u884c\u7684docker\u5bb9\u5668\uff0c\u53ef\u4ee5\u770b\u5230GVM\u5bb9\u5668\u5df2\u7ecf\u8fd0\u884c\u8d77\u6765\u4e86<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572135_5ebef227dcbe5.png!small\">\u6839\u636e\u8ba1\u7b97\u673a\u914d\u7f6e\u7684\u4e0d\u540c\uff0c\u5bb9\u5668\u542f\u52a8\u540e\u9700\u8981\u51e0\u79d2\u5230\u51e0\u5341\u5206\u949f\u5de6\u53f3\u7684\u65f6\u95f4\u8fdb\u884c\u521d\u59cb\u5316\uff0c\u4e3b\u8981\u5de5\u4f5c\u662fNVT\u7279\u5f81\u82e6\u66f4\u65b0\u548c\u6570\u636e\u5e93\u6784\u5efa\u3002\u5728\u5bbf\u4e3b\u673a\u4e0a\u6293\u5305\u5f97\u5230\u7684\u4fe1\u606f\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572148_5ebef23438fd9.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u8fd9\u4e2a\u5de5\u4f5c\u5b8c\u6210\u540e\u4f1a\u521b\u5efa\u9ed8\u8ba4\u7684admin\u8d26\u6237\u3002\u5982\u679c\u65e0\u6cd5\u8bbf\u95eeweb\u754c\u9762\uff0c\u5219\u8bf4\u660e\u5bb9\u5668\u8fd8\u5728\u51c6\u5907\u4e2d\u3002\u5982\u679c\u60f3\u77e5\u9053\u5bb9\u5668\u7684\u51c6\u5907\u5de5\u4f5c\u5230\u4e86\u4ec0\u4e48\u9636\u6bb5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n\n\n\n<p>docker logs gvm<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572160_5ebef24068672.png!small\">\u82e5\u770b\u5230\u201cour GVM 11 container is now ready to use!\u201d\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86\u3002\uff08\u65f6\u95f4\u8f83\u957f\uff0c\u8bf7\u8010\u5fc3\u7b49\u5f85\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572170_5ebef24ad193e.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p>\uff08\u4e09\uff09<strong>\u4f7f\u7528GVM\u8fdb\u884c\u6f0f\u6d1e\u626b\u63cf<\/strong><\/p>\n\n\n\n<p><strong>1\u3001\u767b\u5f55<\/strong><\/p>\n\n\n\n<p>\u6d4f\u89c8\u5668\u6253\u5f00GVM\u7684\u63a7\u5236\u53f0\u754c\u9762\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><a href=\"http:\/\/192.168.1.7:8080\/login\">http:\/\/192.168.1.7:8080\/login<\/a><\/p><\/blockquote>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572187_5ebef25b9e373.png!small\">\u7528\u6237\u540d\/\u53e3\u4ee4\uff1aadmin\/admin\uff0c\u70b9\u51fblogin\u6309\u94ae\u767b\u5f55\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f\uff0c\u8fd9\u91cc\u7528\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><a href=\"https:\/\/localhost:8080\/\">https:\/\/localhost:8080<\/a><\/p><\/blockquote>\n\n\n\n<p>\u662f\u65e0\u6cd5\u8bbf\u95eeGVM\u63a7\u5236\u53f0\u7684\u3002<\/p>\n\n\n\n<p><strong>2\u3001\u521b\u5efa\u626b\u63cf\u4efb\u52a1<\/strong><\/p>\n\n\n\n<p>\u4e0b\u9762\u521b\u5efa\u7b80\u5355\u7684\u626b\u63cf\u4efb\u52a1\uff0c\u5bf9metasploitable 2\u9776\u673a\u8fdb\u884c\u6f0f\u6d1e\u626b\u63cf\u3002<\/p>\n\n\n\n<p>\uff081\uff09\u521b\u5efa\u626b\u63cf\u4efb\u52a1<\/p>\n\n\n\n<p>Scans\u2014Tasks<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572210_5ebef27259047.png!small\">\u70b9\u51fb\u5de6\u4fa7\u5e26\u6709\u4e94\u89d2\u661f\u7684\u65b9\u6846\uff0c\u70b9\u51fb\u5f39\u51fa\u7684\u201cNew Tasks\u201d\u9879\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572237_5ebef28dd6481.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u5728\u201cNew task\u201d\u7a97\u53e3\uff0c\u586b\u5199\u4e0b\u9762\u7684\u4fe1\u606f\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Name\uff1a\u6307\u5b9a\u626b\u63cf\u540d\u79f0\uff0c\u5982\u201cmetasploitable 2\u201d<\/p><p>Comment\uff1a\u586b\u5199\u5173\u4e8e\u626b\u63cf\u4efb\u52a1\u7684\u63cf\u8ff0\u6587\u5b57\uff08\u53ef\u9009\uff09<\/p><p>Scan Targets\uff1a\u70b9\u51fb\u53f3\u4fa7\u4e94\u89d2\u661f\uff0c\u5f39\u51faNew Target\u8868\u5355\u3002\u6307\u5b9a\u76ee\u6807IP\u5730\u5740\uff0c\u586b\u5199\u5b8c\u6210\u540e\u70b9\u51fbSave\u6309\u94ae\u63d0\u4ea4\uff1a<\/p><\/blockquote>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572257_5ebef2a18a741.png!small\">\u5176\u5b83\u7684\u9009\u9879\u4fdd\u6301\u9ed8\u8ba4\u5373\u53ef\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572268_5ebef2acbcb21.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u70b9\u51fb\u4e0b\u65b9\u7684Save\u6309\u94ae\uff0c\u521b\u5efa\u626b\u63cf\u4efb\u52a1\u3002<\/p>\n\n\n\n<p><strong>3\u3001<\/strong><strong>\u5f00\u59cb\u626b\u63cf<\/strong><\/p>\n\n\n\n<p>\u5728\u4efb\u52a1\u5217\u8868\u4e2d\uff0c\u70b9\u51fb\u53f3\u4fa7Actions\u4e2d\u7684Start\u6309\u94ae\uff0c\u5f00\u59cb\u626b\u63cf\u3002<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572281_5ebef2b92903c.png!small\">\u5728\u9776\u673a\u4e0a\u6293\u5305\uff0c\u53ef\u4ee5\u770b\u5230GVM\u626b\u63cf\u6240\u4ea7\u751f\u7684\u6d41\u91cf\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572292_5ebef2c477303.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>4\u3001<\/strong><strong>\u4e0b\u8f7d\u626b\u63cf\u62a5\u544a<\/strong><\/p>\n\n\n\n<p>\u70b9\u51fbScans\u2014Reports<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572311_5ebef2d7d073c.png!small\">\u70b9\u51fb\u201cmetasploitable 2\u201d\u4efb\u52a1\u5bf9\u5e94\u7684\u65e5\u671f\uff1a<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572322_5ebef2e2a42f7.png!small\">\u70b9\u51fb\u5de6\u4e0a\u89d2\u4e00\u6392\u5c0f\u56fe\u6807\u4e2d\u7684\u5411\u4e0b\u5c0f\u7bad\u5934\uff0c\u5f39\u51fa\u201cComponent Content for Scan Report\u201d\u8868\u5355\u3002\u9009\u62e9\u62a5\u544a\u7c7b\u578b\uff0c\u5982PDF\uff1a<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572334_5ebef2ee3d204.png!small\">\u70b9\u51fbOK\u6309\u94ae\uff0c\u4e0b\u8f7d\u6f0f\u6d1e\u626b\u63cf\u62a5\u544a\u3002<\/p>\n\n\n\n<p>\u62a5\u544a\u4e2d\u5bf9\u67d0\u6f0f\u6d1e\u7684\u63cf\u8ff0\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572347_5ebef2fb61ae7.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p>&nbsp;<strong>5\u3001<\/strong><strong>GVM-11\u626b\u63cf\u7ed3\u679c\u4e0eOpenVAS-9\u7684\u5bf9\u6bd4<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572412_5ebef33c45a36.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u5728\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u5148\u540e\u8fd0\u884c\u5bb9\u5668\u7248\u7684GVM-11\u548cOpenVAS-9\uff0cNVT\u90fd\u66f4\u65b0\u5230\u6700\u65b0\uff0c\u626b\u63cf\u76f8\u540c\u7684virtualbox\u865a\u62df\u673a\u3002\u4ece\u7ed3\u679c\u770b\uff0cGVM-11\u4e0eopenvas-9\u76f8\u6bd4\u5728\u626b\u63cf\u6548\u7387\u548c\u626b\u63cf\u5230\u7684\u6f0f\u6d1e\u6570\u91cf\u4e0a\u90fd\u6709\u6240\u63d0\u5347\u3002<\/p>\n\n\n\n<p><strong>6\u3001\u66f4\u65b0NVT<\/strong><\/p>\n\n\n\n<p>\u91cd\u542fGVM\u5bb9\u5668\u5373\u53ef\u66f4\u65b0NVT\u7279\u5f81\u5e93\uff0c\u65e0\u9700\u5355\u72ec\u8fd0\u884c\u547d\u4ee4\u3002<\/p>\n\n\n\n<p>\uff08\u56db\uff09<strong>\u7ba1\u7406\u5bb9\u5668<\/strong><\/p>\n\n\n\n<p><strong>1\u3001<\/strong><strong>\u67e5\u770b\u5bb9\u5668\u5185\u8fd0\u884c\u7684\u8fdb\u7a0b<\/strong><\/p>\n\n\n\n<p>docker top gvm<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572451_5ebef363bd115.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>2\u3001<\/strong><strong>\u8fdb\u5165\u5bb9\u5668\u5185\u7684\u547d\u4ee4\u884c<\/strong><\/p>\n\n\n\n<p>docker exec -it gvm bash<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572468_5ebef374775bf.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>3\u3001<\/strong><strong>\u8bbe\u7f6e<\/strong><strong>admin\uff08\u7ba1\u7406\u5458\uff09<\/strong><strong>\u53e3\u4ee4<\/strong><\/p>\n\n\n\n<p>\u5728\u8fd0\u884c\u955c\u50cf\u65f6\uff0c\u901a\u8fc7\u4fee\u6539\u73af\u5883\u53d8\u91cfPASSWORD\u6765\u6307\u5b9aadmin\u53e3\u4ee4\uff1a<\/p>\n\n\n\n<p>docker run -d&nbsp;-p&nbsp;8080:9392 -e PASSWORD=&#8221;Your admin password here&#8221; &#8211;name gvm securecompliance\/gvm<\/p>\n\n\n\n<p>-e PASSWORD &nbsp;\/\/\u8bbe\u7f6e\u73af\u5883\u53d8\u91cfPASSWORD\uff0c\u7528\u81ea\u5b9a\u4e49\u7684\u53e3\u4ee4\u66ff\u6362\u201cYour admin password here\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572484_5ebef38402875.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u7ecf\u6d4b\u8bd5\uff0c\u5728\u547d\u4ee4\u884c\u6307\u5b9a\u53e3\u4ee4\u540e\uff0cadmin\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u65b0\u53e3\u4ee4\u767b\u5f55GVM\u3002<\/p>\n\n\n\n<p><strong>4\u3001\u4f7f\u7528\u6570\u636e\u5377<\/strong><\/p>\n\n\n\n<p>\u5728\u8fd0\u884c\u955c\u50cf\u65f6\uff0c\u5c06\u5bbf\u4e3b\u673a\u7684\/gvm-data\u76ee\u5f55\u6620\u5c04\u5230\u5bb9\u5668\u7684\/share\u76ee\u5f55\uff1a<\/p>\n\n\n\n<p>mkdir \/gvm-data&nbsp;&nbsp;\/\/\u5bbf\u4e3b\u673a\u521b\u5efa\u672c\u5730\u76ee\u5f55\uff0c\u5bb9\u5668\u4e2d\u7684\u76ee\u5f55\u65e0\u9700\u624b\u5de5\u521b\u5efa<\/p>\n\n\n\n<p>docker run -d -p 8080:9392 -v&nbsp;\/gvm-data:\/shared&nbsp;&#8211;name gvm-2&nbsp;securecompliance\/gvm<\/p>\n\n\n\n<p><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572511_5ebef39f57438.png!small\">docker exec -it gvm-2 bash&nbsp;&nbsp;\/\/\u8fdb\u5165\u5bb9\u5668\uff0c\u5c06\u6587\u4ef6\u590d\u5236\u5230\u5bb9\u5668\u5185\u7684\/shared\u76ee\u5f55\u4e2d\uff0c\u8be5\u6587\u4ef6\u7acb\u523b\u5c31\u4f1a\u51fa\u73b0\u5728\u5bbf\u4e3b\u673a\u7684\/gvm-data\u76ee\u5f55\u4e2d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572529_5ebef3b16343c.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>5\u3001<\/strong><strong>\u505c\u6b62\u5bb9\u5668<\/strong><\/p>\n\n\n\n<p>docker stop gvm<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572541_5ebef3bdb46e0.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>6\u3001\u5220\u9664\u5bb9\u5668<\/strong><\/p>\n\n\n\n<p>\u4e0d\u518d\u9700\u8981\u5bb9\u5668\u4e86\uff0c\u53ef\u4ee5\u5c06\u5176\u5220\u9664\u3002\u5220\u9664\u5bb9\u5668\u4e0d\u4f1a\u5f71\u54cd\u5230\u955c\u50cf\uff0c\u4f7f\u7528\u524d\u9762\u8fd0\u884c\u955c\u50cf\u7684\u547d\u4ee4\u53ef\u4ee5\u521b\u5efa\u65b0\u7684\u5bb9\u5668\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>docker ps &#8211;all &nbsp;\/\/\u67e5\u770b\u5168\u90e8\u5bb9\u5668\uff0c\u5305\u62ec\u8fd0\u884c\u7684\u548c\u5df2\u505c\u6b62\u7684<\/p><p>docker rm gvm &nbsp;\/\/\u5220\u9664\u540d\u4e3agvm\u7684\u5bb9\u5668<\/p><\/blockquote>\n\n\n\n<p>\uff08\u4e94\uff09<strong>\u7ba1\u7406\u955c\u50cf<\/strong><\/p>\n\n\n\n<p><strong>1\u3001\u5bfc\u51fa\u955c\u50cf<\/strong><\/p>\n\n\n\n<p>docker save -o gvm-11-image.tar securecompliance\/gvm &nbsp;\/\/\u5c06\u955c\u50cf\u5bfc\u51fa\u5230\u5f53\u524d\u76ee\u5f55\uff0c\u540d\u4e3agvm-11-image.tar<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572566_5ebef3d639717.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p>2\u3001\u5220\u9664\u955c\u50cf<\/p>\n\n\n\n<p>docker rmi securecompliance\/gvm<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572577_5ebef3e1d1927.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<p>\/\/\u5220\u9664\u955c\u50cf\u65f6\uff0c\u4e0d\u80fd\u5b58\u5728\u7531\u8be5\u955c\u50cf\u521b\u5efa\u7684\u5bb9\u5668<\/p>\n\n\n\n<p><strong>3\u3001\u5bfc\u5165\u955c\u50cf<\/strong><\/p>\n\n\n\n<p>docker rmi securecompliance\/gvm &nbsp;\/\/\u5220\u9664\u955c\u50cf<\/p>\n\n\n\n<p>docker load &lt; gvm-11-image.tar&nbsp;&nbsp;\/\/\u5bfc\u5165\u955c\u50cf<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.3001.net\/images\/20200516\/1589572606_5ebef3fed0937.png!small\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h2-4\"><strong>\u56db\u3001\u6ce8\u610f\u4e8b\u9879<\/strong><\/h2>\n\n\n\n<p>GVM-11\u5bb9\u5668\u542f\u52a8\u540e\u9ed8\u8ba4\u4e0d\u50cfOpenVAS\u90a3\u6837\u76d1\u542c\u672c\u5730\u73af\u56de\u5730\u5740\uff0c\u800c\u662f\u76d1\u542c\u7269\u7406\u7f51\u5361\u5730\u5740\u3002\u8fd9\u6837\u5373\u63d0\u4f9b\u4e86\u8fdc\u7a0b\u8bbf\u95ee\u529f\u80fd\u3002\u56e0\u6b64\u5e94\u4f7f\u7528\u9632\u706b\u5899\u5bf9\u8bbf\u95eeGVM\u7684\u6e90\u5730\u5740\u8fdb\u884c\u9650\u5236\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>iptables -A INPUT -p tcp -s 192.168.1.100 &#8211;dport 8080&nbsp;-j ACCEPT &nbsp;\/\/\u5141\u8bb8192.168.1.100\u8bbf\u95ee\u672c\u5730\u7684GVM\u63a7\u5236\u53f0<\/p><p>iptables -A INPUT -p tcp&nbsp;&#8211;dport 8080&nbsp;-j&nbsp;REJECT&nbsp;&nbsp;\/\/\u62d2\u7edd\u8bbf\u95ee\u672c\u57308080\u7aef\u53e3<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u64cd\u4f5c\u76ee\u7684\u548c\u5e94\u7528\u573a\u666f \u5927\u5bb6\u597d\uff0c\u6211\u662f\u5f6d\u745e\u3002 \u524d\u9762\u6211\u53d1\u8868\u4e86\u4e00\u7bc7\u5173\u4e8eOpenVAS\u7684\u6587\u7ae0\uff0c\u8bb2\u8ff0\u5982\u4f55\u4ee5docker\u5bb9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-276","post","type-post","status-publish","format-standard","hentry","category-6"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blog.scxs.vip\/index.php?rest_route=\/wp\/v2\/posts\/276","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.scxs.vip\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.scxs.vip\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.scxs.vip\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.scxs.vip\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=276"}],"version-history":[{"count":1,"href":"https:\/\/blog.scxs.vip\/index.php?rest_route=\/wp\/v2\/posts\/276\/revisions"}],"predecessor-version":[{"id":277,"href":"https:\/\/blog.scxs.vip\/index.php?rest_route=\/wp\/v2\/posts\/276\/revisions\/277"}],"wp:attachment":[{"href":"https:\/\/blog.scxs.vip\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.scxs.vip\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.scxs.vip\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}