{"id":379,"date":"2018-04-15T19:58:58","date_gmt":"2018-04-15T11:58:58","guid":{"rendered":"http:\/\/120.76.142.240\/?p=379"},"modified":"2020-06-26T14:59:43","modified_gmt":"2020-06-26T06:59:43","slug":"%e9%80%9a%e7%94%a8%e6%bc%8f%e6%b4%9e%e7%88%ac%e8%99%ab","status":"publish","type":"post","link":"http:\/\/ssynas.top\/?p=379","title":{"rendered":"\u901a\u7528\u6f0f\u6d1e\u722c\u866b"},"content":{"rendered":"<p>\u8fd9\u662f\u6362\u5230python3\u540e\u5199\u7684\u7b2c\u4e00\u4e2a\u6bd4\u8f83\u5927\u7684\u4e1c\u897f\uff0c\u7a0d\u5fae\u603b\u7ed3\u4e00\u4e0b<\/p>\n<p>\u6e90\u7801\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/786662216\/vulnerability-spider\">GitHub<\/a> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 https:\/\/github.com\/786662216\/vulnerability-spider<\/p>\n<p>\u6700\u7ec8\u6548\u679c\uff1a<a href=\"http:\/\/192.168.31.87:8080\/cve\/\">\u901a\u7528\u6f0f\u6d1e\u5b89\u5168\u60c5\u62a5<\/a>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 http:\/\/192.168.31.87:8080\/cve\/<\/p>\n<p>\u4e00\u5f00\u59cb\u6362\u52303\u540e\uff0cprint\u662f\u51fd\u6570\u4e5f\u597d\uff0cpip\u548cpython2\u51b2\u7a81\u4e5f\u7f62\u3002\u6700\u8ba9\u4eba\u53d7\u4e0d\u4e86\u7684\u8fd8\u662f\u6709\u4e9b\u5e93\u7684\u5dee\u522b\u771f\u7684\u662f\u5f88\u5927\uff0c\u5f88\u591a\u7c7b\u7684\u65b9\u6cd5\u53c2\u6570\u90fd\u4e0d\u4e00\u6837\u4e86\u3002\u7f16\u7801\u4e5f\u662f\uff0c\u4e0d\u77e5\u600e\u4e48\u56de\u4e8b\u524d\u9762\u5c31\u52a0\u4e86\u4e2ab\u786c\u751f\u751f\u6539\u6210\u4e8c\u8fdb\u5236\u5b57\u8282\u6d41\u4e86<\/p>\n<p>\u4e3b\u8981\u662f\u4ecehttp:\/\/www.cnvd.org.cn\/\u3001https:\/\/www.seebug.org\/\u3001http:\/\/cve.scap.org.cn\/\u8fd9\u4e09\u4e2a\u7f51\u7ad9\u4e2d\u722c\u53d6\u7684<\/p>\n<p>\u4e3b\u4f53\u601d\u8def\u8fd8\u662f\u633a\u7b28\u7684\uff0c\u76f4\u63a5\u7528request\u628a\u6574\u4e2a\u7f51\u9875\u6e90\u7801\u4e0b\u8f7d\u4e0b\u6765\u518d\u7528\u6b63\u5219\u53bb\u5339\u914d\uff0c\u6ca1\u6709\u7528scapy\u4e4b\u7c7b\u7684\u6846\u67b6\u3002\u82b1\u4e86\u4e00\u4e9b\u65f6\u95f4\u53bb\u5199\u6b63\u5219\uff0c\u5f97\u5230\u7684\u6570\u636e\u653e\u5230csv\u4e2d\uff0c\u7528php\u53d6\u51fa\u6765\u540e\u5904\u7406\u4e00\u4e0b\u653e\u5230\u6a21\u677f\u4e2d\u53bb\u3002\u4e2d\u95f4\u9047\u5230\u4e86\u4e00\u4e9b\u95ee\u9898<\/p>\n<p><strong>\u4e00\u3001<\/strong>\u9996\u5148\u662fCNVD\u548cseebug\u6709\u53cd\u722c\u673a\u5236\uff0c\u90fd\u662f\u7528\u7684\u77e5\u9053\u521b\u5b87\u7684\u52a0\u901f\u4e50\u3002seebug\u5c31\u4e0d\u7528\u8bf4\u4e86\uff0c\u7528\u7684\u662f\u81ea\u5bb6\u7684\uff1b\u4f46CNVD\u4e5f\u7528\u7684\u8fd9\u4e2a\u4e1c\u897f\uff0c\u6240\u4ee5\u7ed5\u8fc7\u53cd\u722c\u7684\u65b9\u6cd5\u662f\u4e00\u6837\u7684\u3002\u9996\u5148\u4e86\u89e3\u4e00\u4e0b\u52a0\u901f\u4e50\u662f\u600e\u4e48\u53cd\u722c\u7684<\/p>\n<ul>\n<li>\u5224\u65ad\u5ba2\u6237\u7aef\u7684cookie\u6b63\u4e0d\u6b63\u786e\u3002\u5982\u679c\u4e0d\u6b63\u786e\uff08\u6216\u8005\u6ca1\u6709\uff09\uff0c\u8fd4\u56de521\u72b6\u6001\u7801<\/li>\n<li>set-cookie\uff08<code>__jsluid<\/code>\uff09\u5e76\u4e14\u8fd4\u56de\u4e00\u6bb5js\u4ee3\u7801\u901a\u8fc7\u6d4f\u89c8\u5668\u6267\u884c\u540e\u53c8\u53ef\u4ee5\u751f\u6210\u4e00\u4e2acookie\uff08<code>__jsl_clearance<\/code>\uff09<\/li>\n<li>\u53ea\u6709\u8fd9\u4e24\u4e2acookie\u4e00\u8d77\u53d1\u9001\u7ed9\u670d\u52a1\u5668\uff0c\u624d\u4f1a\u8fd4\u56de\u6b63\u786e\u7684\u7f51\u9875\u5185\u5bb9<\/li>\n<li>\n<h4><strong>\u6ce8\u610f\uff0c\u521a\u624d\uff082018\u5e746\u670820\u65e514:00:45\uff09\u53d1\u73b0\u53ea\u9700\u8981jsuid\u5373\u53ef\uff0c\u9700\u8981\u5728\u4e4b\u540e\u52a0\u4e0a max-age=31536000; path=\/; HttpOnly<\/strong><\/h4>\n<\/li>\n<\/ul>\n<p>\u53ea\u8981\u83b7\u5f97\u8fd9\u4e24\u4e2acookies\u5c31\u53ef\u4ee5\u4e86\uff0c\u90a3\u4e48\u601d\u8def\u5c31\u6709\u4e24\u79cd\uff1a<\/p>\n<p>1\u3001\u5206\u6790\/\u89e3\u5bc6js\uff0c\u7b97\u51fa<code>__jsl_clearance<\/code>\uff09<\/p>\n<p>2\u3001\u76f4\u63a5\u7528selenium\u6a21\u62df\u6d4f\u89c8\u5668\u8bbf\u95ee\uff0c\u518d\u901a\u8fc7\u81ea\u5e26\u7684\u65b9\u6cd5\u76f4\u63a5\u62ff\u51fa\u8fd9\u4e24\u4e2acookies<\/p>\n<p>\u4e00\u5f00\u59cb\u7528\u7684\u7b2c\u4e00\u79cd\u65b9\u6cd5\uff0c\u95ee\u9898\u4e0d\u5927\uff0c\u901a\u7528\u6027\u592a\u5dee<\/p>\n<p><strong>\u4e8c\u3001<\/strong>\u56e0\u4e3a\u8981\u653e\u5230\u6ca1\u6709\u56fe\u5f62\u754c\u9762\u7684\u670d\u52a1\u5668\u4e0a\u8dd1\uff08ubuntu server 14.04\uff09\uff0c\u6240\u4ee5selenium\u8fd8\u4e0d\u80fd\u76f4\u63a5\u7528\uff0c\u8fd8\u7528\u5230\u4e86\u4e00\u4e2a\u5e93\u4e2d\u7684\u7c7b\uff1aDisplay\u7684pyvirtualdisplay\u3002\u8fd9\u4e2a\u4e1c\u897f\u53ef\u4ee5\u5047\u88c5\u6709\u4e2a\u754c\u9762\u5728\u8fd0\u884c\uff0c\u539f\u7406\u5c31\u662f\u6b3a\u9a97\u7cfb\u7edf\u5e95\u5c42\u8fd9\u91cc\u6709\u4e00\u4e2a800&#215;600\u7684\u7a97\u53e3\u6b63\u5728\u8bbf\u95ee\u67d0\u4e2a\u9875\u9762\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728linux\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u8fd9\u4e2a\u722c\u866b\u4e86\uff0c\u4e0d\u8981\u5fd8\u4e86\u88c5\u597dDisplay\u6240\u4f9d\u8d56\u7684\u5176\u4ed6\u5e93\u548c\u8f6f\u4ef6\uff0c\u8fd9\u4e2a\u5e93\u5bf9windows\u5f88\u4e0d\u53cb\u597d\u3002<\/p>\n<p>\u4e0a\u9762\u63d0\u5230\u7684\u5bf9\u5176\u4ed6\u8f6f\u4ef6\u548c\u5e93\u7684\u4f9d\u8d56\u662f\u4e00\u4e2a\u95ee\u9898\uff0c\u8fd8\u6709\u4e24\u4e2a\u95ee\u9898\uff1a\u4e00\u4e2a\u662fheader\u95ee\u9898\uff0c\u4e00\u4e2a\u662f\u8d26\u6237\u6743\u9650\u95ee\u9898\u3002<\/p>\n<p>\u4e0d\u5f97\u4e0d\u8bf4\u52a0\u901f\u4e50\u540e\u53f0\u5904\u7406\u7684\u8fd8\u662f\u5f88\u7ec6\u5fc3\uff0c\u5982\u679c\u6709\u4e00\u4e2a\u5934\u5bf9\u4e0d\u4e0a\u5c31\u76f4\u63a5\u8fd4\u56dejs\u800c\u4e0d\u662fhtml\u6b63\u6587\uff0c\u5c24\u5176\u662fUser-Agent\u3002\u4e8e\u662f\u53c8\u88c5\u4e86\u4e2aubuntu14.04\u7684\u865a\u62df\u673a\u5b89\u88c5\u4e86chrome\uff08\u56e0\u4e3a\u6211\u7528\u7684webdriver\u662fchrome\uff09\uff0c\u628a\u5934\u7c98\u4e0b\u6765\u6362\u4e86\u4e0a\u53bb\uff0c\u4f46\u662f\u8fd8\u662f\u4e0d\u884c\uff0c\u867d\u7136\u6ca1\u6709\u8fd4\u56dejs\u4f46\u662f\u62a5\u9519\u4e86\uff0c\u67e5\u4e86\u4e00\u4e0b\u624d\u77e5\u9053Display\u4e0d\u80fd\u7528root\u8d26\u53f7\u542f\u7528webdriver\uff0c\u6ca1\u660e\u767d\u4e3a\u4ec0\u4e48\u3002\u4e8e\u662f\u53c8\u521b\u5efa\u4e86\u4e00\u4e2a\u65b0\u8d26\u6237\uff0c\u7ed9\u6587\u4ef6\u52a0\u4e86\u6743\u9650\u540e\uff0c\u7528\u65b0\u8d26\u6237\u8fd0\u884c\u5c31\u6ca1\u6709\u4efb\u4f55\u95ee\u9898\u4e86\u3002<\/p>\n<p><strong>\u4e09\u3001<\/strong>\u6700\u540e\u4fbf\u662f\u4e00\u4e9b\u6bd4\u8f83\u5c0f\u7684\u95ee\u9898\u3002<\/p>\n<ul>\n<li>\u9996\u5148\u662f\u52a0\u4e86datetime\u8fd9\u4e2a\u5e93\uff0c\u7528\u6765\u8bbe\u5b9a\u6bcf\u5929\u4ec0\u4e48\u65f6\u5019\u8fd0\u884c\uff1b<\/li>\n<li>\u56e0\u4e3a\u8981\u722c\u597d\u51e0\u4e2a\u7f51\u7ad9\uff0c\u6240\u4ee5\u6709\u5f88\u591apython\u6587\u4ef6\uff0c\u4ee5\u540e\u6ca1\u51c6\u8fd8\u8981\u52a0\u3002\u6bcf\u6b21\u5728bash\u4e0b\u4e00\u4e2a\u4e00\u4e2a\u8fd0\u884c\u592a\u9ebb\u70e6\uff0c\u5199\u4e86\u4e2ashell\u811a\u672c\u8ba9\u4ed6\u4e00\u6b21\u6027\u5168\u90e8\u542f\u52a8\uff1b<\/li>\n<li>\u8fd0\u884c\u7ed3\u679c\u65e0\u8bba\u6210\u529f\u8fd8\u662f\u6709\u9519\u8bef\u8fd8\u8981\u5199\u5165\u5230log\u65e5\u5fd7\u4e2d\uff0c\u8fd9\u4e2a\u4e5f\u5728shell\u4e2d\u5b9e\u73b0\u4e86\uff1b<\/li>\n<li>\u7528php\u53d6\u51facsv\u6587\u4ef6\u4e2d\u7684\u6570\u636e\u65f6\uff0c\u53ef\u80fd\u4f1a\u6709\u7a7a\u884c\u3001\u6570\u636e\u4e3a\u7a7a\u7b49\u95ee\u9898\uff0c\u5904\u7406\u4e00\u4e0b\u5373\u53ef\uff1b<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u662f\u6362\u5230python3\u540e\u5199\u7684\u7b2c\u4e00\u4e2a\u6bd4\u8f83\u5927\u7684\u4e1c\u897f\uff0c\u7a0d\u5fae\u603b\u7ed3\u4e00\u4e0b \u6e90\u7801&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-379","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/ssynas.top\/index.php?rest_route=\/wp\/v2\/posts\/379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ssynas.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ssynas.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ssynas.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ssynas.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=379"}],"version-history":[{"count":1,"href":"http:\/\/ssynas.top\/index.php?rest_route=\/wp\/v2\/posts\/379\/revisions"}],"predecessor-version":[{"id":569,"href":"http:\/\/ssynas.top\/index.php?rest_route=\/wp\/v2\/posts\/379\/revisions\/569"}],"wp:attachment":[{"href":"http:\/\/ssynas.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ssynas.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=379"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ssynas.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}