{"id":107,"date":"2014-10-19T11:54:29","date_gmt":"2014-10-19T11:54:29","guid":{"rendered":""},"modified":"2014-10-19T11:54:29","modified_gmt":"2014-10-19T11:54:29","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=107","title":{"rendered":"[\u8f6c]Kali Linux\u8fd0\u884c Metasploit Framework"},"content":{"rendered":"<p><strong>\u8fd0\u884c Metasploit Framework<\/strong><br \/>\n\u4f9d\u7167<a href=\"http:\/\/docs.kali.org\/kali-policy\/kali-linux-network-service-policies\" target=\"_blank\">Kali Linux\u7f51\u7edc\u670d\u52a1\u7b56\u7565<\/a>,Kali\u6ca1\u6709\u81ea\u52a8\u542f\u52a8\u7684\u7f51\u7edc\u670d\u52a1,\u5305\u62ec\u6570\u636e\u5e93\u670d\u52a1\u5728\u5185.\u6240\u4ee5\u4e3a\u4e86\u8ba9<a href=\"http:\/\/www.metasploit.com\/\" target=\"_blank\">Metasploit<\/a>\u4ee5\u652f\u6301\u6570\u636e\u5e93\u7684\u65b9\u5f0f\u8fd0\u884c\u6709\u4e9b\u5fc5\u8981\u7684\u6b65\u9aa4.<br \/>\n<strong>\u542f\u52a8Kali\u7684PostgreSQL\u670d\u52a1<\/strong><br \/>\nMetasploit \u4f7f\u7528<a href=\"http:\/\/www.postgresql.org\/\" target=\"_blank\">PostgreSQL<\/a>\u4f5c\u4e3a<a href=\"http:\/\/www.2cto.com\/database\/\" target=\"_blank\" class=\"keylink\">\u6570\u636e\u5e93<\/a>,\u6240\u4ee5\u5fc5\u987b\u5148\u8fd0\u884c\u5b83.<br \/>\nservice postgresql start<br \/>\n\u4f60\u53ef\u4ee5\u7528<strong>ss -ant<\/strong>\u7684\u8f93\u51fa\u6765\u68c0\u9a8cPostgreSQL\u662f\u5426\u5728\u8fd0\u884c,\u7136\u540e\u786e\u8ba45432\u7aef\u53e3\u5904\u4e8elistening\u72b6\u6001.<br \/>\nState Recv-Q Send-Q Local Address\uff1aport Peer Address\uff1aport<br \/>\nLISTEN&nbsp;0&nbsp;128&nbsp;:::22&nbsp;:::*<\/p>\n<p>LISTEN&nbsp;0&nbsp;128&nbsp;*:22&nbsp;*:*<br \/>\nLISTEN&nbsp;0&nbsp;128&nbsp;127.0.0.1:5432&nbsp;*:*<br \/>\nLISTEN&nbsp;0&nbsp;128&nbsp;::1:5432&nbsp;:::*<\/p>\n<p><strong>\u542f\u52a8Kali\u7684Met<a href=\"http:\/\/www.2cto.com\/kf\/web\/asp\/\" target=\"_blank\" class=\"keylink\">asp<\/a>loit\u670d\u52a1<\/strong><br \/>\n\u968f\u7740PostgreSQL\u7684\u542f\u52a8\u548c\u8fd0\u884c,\u63a5\u7740\u6211\u4eec\u8981\u8fd0\u884cMetasploit\u670d\u52a1.\u7b2c\u4e00\u6b21\u8fd0\u884c\u670d\u52a1\u4f1a\u521b\u5efa\u4e00\u4e2amsf3\u6570\u636e\u5e93\u7528\u6237\u548c\u4e00\u4e2a\u53ebmsf3\u7684\u6570\u636e\u5e93.\u8fd8\u4f1a\u8fd0\u884cMetasploit RPC\u548c\u5b83\u9700\u8981\u7684WEB \u670d\u52a1\u7aef.<br \/>\nservice metasploit start<\/p>\n<p><strong>\u5728Kali\u8fd0\u884cmsfconsole<\/strong><br \/>\n\u73b0\u5728PostgreSQL \u548c Metasploit\u670d\u52a1\u90fd\u8fd0\u884c\u4e86,\u53ef\u4ee5\u8fd0\u884c&nbsp;<strong>msfconsole<\/strong>&nbsp;,\u7136\u540e\u7528&nbsp;<strong>db_status<\/strong>&nbsp;\u547d\u4ee4\u68c0\u9a8c\u6570\u636e\u5e93\u7684\u8fde\u901a\u6027.<br \/>\nmsfconsole<\/p>\n<p>msf &gt; db_status&nbsp;postgresql connected to msf3<\/p>\n<p>msf &gt;<\/p>\n<p><strong>\u914d\u7f6eMetasploit\u968f<a href=\"http:\/\/www.2cto.com\/os\/\" target=\"_blank\" class=\"keylink\">\u7cfb\u7edf<\/a>\u542f\u52a8\u8fd0\u884c<\/strong><br \/>\n\u5982\u679c\u4f60\u60f3PostgreSQL\u548cMetasploit\u5728\u5f00\u673a\u65f6\u8fd0\u884c,\u4f60\u53ef\u4ee5\u4f7f\u7528<strong>update-rc.d<\/strong>\u542f\u7528\u670d\u52a1.<br \/>\nupdate-rc.d postgresql&nbsp;enable<br \/>\nupdate-rc.d metasploit&nbsp;enable<\/p>\n","protected":false},"excerpt":{"rendered":"<p><strong>\u8fd0\u884c Metasploit Framework<\/strong><br \/>\n\u4f9d\u7167<a href=\"http:\/\/docs.kali.org\/kali-policy\/kali-linux-network-service-policies\" target=\"_blank\">Kali Linux\u7f51\u7edc\u670d\u52a1\u7b56\u7565<\/a>,Kali\u6ca1\u6709\u81ea\u52a8\u542f\u52a8\u7684\u7f51\u7edc\u670d\u52a1,\u5305\u62ec\u6570\u636e\u5e93\u670d\u52a1\u5728\u5185.\u6240\u4ee5\u4e3a\u4e86\u8ba9<a href=\"http:\/\/www.metasploit.com\/\" target=\"_blank\">Metasploit<\/a>\u4ee5\u652f\u6301\u6570\u636e\u5e93\u7684\u65b9\u5f0f\u8fd0\u884c\u6709\u4e9b\u5fc5\u8981\u7684\u6b65\u9aa4.<br \/><strong>\u542f\u52a8Kali\u7684PostgreSQL\u670d\u52a1<\/strong><br \/>\nMetasploit \u4f7f\u7528<a href=\"http:\/\/www.postgresql.org\/\" target=\"_blank\">PostgreSQL<\/a>\u4f5c\u4e3a<a href=\"http:\/\/www.2cto.com\/database\/\" target=\"_blank\" class=\"keylink\">\u6570\u636e\u5e93<\/a>,\u6240\u4ee5\u5fc5\u987b\u5148\u8fd0\u884c\u5b83.<br \/>\nservice postgresql start<br \/>\n\u4f60\u53ef\u4ee5\u7528<strong>ss -a&#8230;<\/strong><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[332],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[\u8f6c]Kali Linux\u8fd0\u884c Metasploit Framework - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=107\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\u8f6c]Kali Linux\u8fd0\u884c Metasploit Framework - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u8fd0\u884c Metasploit Framework \u4f9d\u7167Kali Linux\u7f51\u7edc\u670d\u52a1\u7b56\u7565,Kali\u6ca1\u6709\u81ea\u52a8\u542f\u52a8\u7684\u7f51\u7edc\u670d\u52a1,\u5305\u62ec\u6570\u636e\u5e93\u670d\u52a1\u5728\u5185.\u6240\u4ee5\u4e3a\u4e86\u8ba9Metasploit\u4ee5\u652f\u6301\u6570\u636e\u5e93\u7684\u65b9\u5f0f\u8fd0\u884c\u6709\u4e9b\u5fc5\u8981\u7684\u6b65\u9aa4.\u542f\u52a8Kali\u7684PostgreSQL\u670d\u52a1 Metasploit \u4f7f\u7528PostgreSQL\u4f5c\u4e3a\u6570\u636e\u5e93,\u6240\u4ee5\u5fc5\u987b\u5148\u8fd0\u884c\u5b83. service postgresql start \u4f60\u53ef\u4ee5\u7528ss -a...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=107\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-19T11:54:29+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=107#webpage\",\"url\":\"http:\/\/weizn.net\/?p=107\",\"name\":\"[\\u8f6c]Kali Linux\\u8fd0\\u884c Metasploit Framework - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"datePublished\":\"2014-10-19T11:54:29+00:00\",\"dateModified\":\"2014-10-19T11:54:29+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=107#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=107\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=107#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\\u8f6c]Kali Linux\\u8fd0\\u884c Metasploit Framework\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=107#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=107#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"[\\u8f6c]Kali Linux\\u8fd0\\u884c Metasploit Framework\",\"datePublished\":\"2014-10-19T11:54:29+00:00\",\"dateModified\":\"2014-10-19T11:54:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=107#webpage\"},\"wordCount\":100,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"articleSection\":[\"Linux\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=107#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[\u8f6c]Kali Linux\u8fd0\u884c Metasploit Framework - Wayne&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/weizn.net\/?p=107","og_locale":"zh_CN","og_type":"article","og_title":"[\u8f6c]Kali Linux\u8fd0\u884c Metasploit Framework - Wayne&#039;s Blog","og_description":"\u8fd0\u884c Metasploit Framework \u4f9d\u7167Kali Linux\u7f51\u7edc\u670d\u52a1\u7b56\u7565,Kali\u6ca1\u6709\u81ea\u52a8\u542f\u52a8\u7684\u7f51\u7edc\u670d\u52a1,\u5305\u62ec\u6570\u636e\u5e93\u670d\u52a1\u5728\u5185.\u6240\u4ee5\u4e3a\u4e86\u8ba9Metasploit\u4ee5\u652f\u6301\u6570\u636e\u5e93\u7684\u65b9\u5f0f\u8fd0\u884c\u6709\u4e9b\u5fc5\u8981\u7684\u6b65\u9aa4.\u542f\u52a8Kali\u7684PostgreSQL\u670d\u52a1 Metasploit \u4f7f\u7528PostgreSQL\u4f5c\u4e3a\u6570\u636e\u5e93,\u6240\u4ee5\u5fc5\u987b\u5148\u8fd0\u884c\u5b83. service postgresql start \u4f60\u53ef\u4ee5\u7528ss -a...","og_url":"http:\/\/weizn.net\/?p=107","og_site_name":"Wayne&#039;s Blog","article_published_time":"2014-10-19T11:54:29+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=107#webpage","url":"http:\/\/weizn.net\/?p=107","name":"[\u8f6c]Kali Linux\u8fd0\u884c Metasploit Framework - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"datePublished":"2014-10-19T11:54:29+00:00","dateModified":"2014-10-19T11:54:29+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=107#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=107"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=107#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"[\u8f6c]Kali Linux\u8fd0\u884c Metasploit Framework"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=107#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=107#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"[\u8f6c]Kali Linux\u8fd0\u884c Metasploit Framework","datePublished":"2014-10-19T11:54:29+00:00","dateModified":"2014-10-19T11:54:29+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=107#webpage"},"wordCount":100,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"articleSection":["Linux"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=107#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=107"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}