{"id":56149,"date":"2025-08-14T13:34:53","date_gmt":"2025-08-14T05:34:53","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/56149.html"},"modified":"2025-08-14T13:34:53","modified_gmt":"2025-08-14T05:34:53","slug":"%e6%af%8f%e6%ac%a1%e5%90%af%e5%8a%a8msf%e9%83%bd%e8%a6%81%e7%ad%89%e5%8d%8a%e5%a4%a9%ef%bc%9f%e9%80%81%e4%bd%a0%e4%b8%80%e4%bb%bdmetasploit%e6%95%b0%e6%8d%ae%e5%ba%93%e9%85%8d%e7%bd%ae%e4%b8%8e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/56149.html","title":{"rendered":"\u6bcf\u6b21\u542f\u52a8msf\u90fd\u8981\u7b49\u534a\u5929\uff1f\u9001\u4f60\u4e00\u4efdMetasploit\u6570\u636e\u5e93\u914d\u7f6e\u4e0e\u4f18\u5316\u6307\u5357"},"content":{"rendered":"<p>Metasploit Framework&#xff08;\u4ee5\u4e0b\u7b80\u79f0MSF&#xff09;\u662f\u7f51\u7edc\u5b89\u5168\u9886\u57df\u4e2d\u6700\u77e5\u540d\u7684\u6e17\u900f\u6d4b\u8bd5\u6846\u67b6\u4e4b\u4e00&#xff0c;\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6f0f\u6d1e\u8bc4\u4f30\u3001\u6e17\u900f\u6d4b\u8bd5\u548c\u5b89\u5168\u7814\u7a76\u3002\u5b83\u652f\u6301PostgreSQL\u6570\u636e\u5e93&#xff0c;\u7528\u4e8e\u5b58\u50a8\u4e3b\u673a\u4fe1\u606f\u3001\u6f0f\u6d1e\u626b\u63cf\u7ed3\u679c\u3001\u51ed\u8bc1\u6570\u636e\u548c\u6218\u5229\u54c1&#xff08;loot&#xff09;\u7b49\u5185\u5bb9&#xff0c;\u4ece\u800c\u6781\u5927\u63d0\u5347\u6570\u636e\u7ba1\u7406\u4e0e\u5206\u6790\u7684\u6548\u7387\u3002\u7136\u800c&#xff0c;MSF\u5728\u542f\u52a8\u65f6\u82e5\u65e0\u6cd5\u6b63\u786e\u8fde\u63a5\u5230PostgreSQL\u6570\u636e\u5e93&#xff0c;\u53ef\u80fd\u4f1a\u56e0\u5c1d\u8bd5\u6267\u884cdb_stats\u7b49\u6570\u636e\u5e93\u76f8\u5173\u64cd\u4f5c\u800c\u5bfc\u81f4\u663e\u8457\u7684\u5361\u987f&#xff0c;\u5f71\u54cd\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<p>\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8\u5982\u4f55\u901a\u8fc7\u6b63\u786e\u914d\u7f6e\u548c\u4f18\u5316MSF\u7684\u6570\u636e\u5e93\u529f\u80fd\u6765\u63d0\u5347\u542f\u52a8\u901f\u5ea6\u4e0e\u6574\u4f53\u6027\u80fd\u3002\u5185\u5bb9\u6db5\u76d6MSF\u6570\u636e\u5e93\u7684\u57fa\u672c\u7ba1\u7406\u547d\u4ee4\u3001PostgreSQL\u670d\u52a1\u7684\u914d\u7f6e\u3001\u6570\u636e\u5e93\u521d\u59cb\u5316\u4e0e\u4f18\u5316\u65b9\u6cd5&#xff0c;\u4ee5\u53ca\u4e34\u65f6\u8df3\u8fc7\u6570\u636e\u5e93\u8fde\u63a5\u7b49\u6280\u5de7\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001Metasploit\u6570\u636e\u5e93\u6982\u8ff0<\/h3>\n<h4>1.1 \u6570\u636e\u5e93\u5728Metasploit\u4e2d\u7684\u4f5c\u7528<\/h4>\n<p>Metasploit\u652f\u6301PostgreSQL\u4f5c\u4e3a\u5176\u540e\u7aef\u6570\u636e\u5e93&#xff0c;\u7528\u4e8e\u5b58\u50a8\u6e17\u900f\u6d4b\u8bd5\u8fc7\u7a0b\u4e2d\u751f\u6210\u7684\u6570\u636e&#xff0c;\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e&#xff1a;<\/p>\n<ul>\n<li>\u4e3b\u673a\u4fe1\u606f&#xff1a;\u626b\u63cf\u53d1\u73b0\u7684\u4e3b\u673aIP\u3001\u64cd\u4f5c\u7cfb\u7edf\u3001\u5f00\u653e\u7aef\u53e3\u7b49\u3002<\/li>\n<li>\u670d\u52a1\u4fe1\u606f&#xff1a;\u76ee\u6807\u4e3b\u673a\u7684\u670d\u52a1\u7c7b\u578b\u3001\u7248\u672c\u548c\u72b6\u6001\u3002<\/li>\n<li>\u6f0f\u6d1e\u6570\u636e&#xff1a;\u626b\u63cf\u53d1\u73b0\u7684\u6f0f\u6d1e\u53ca\u5176\u8be6\u7ec6\u4fe1\u606f\u3002<\/li>\n<li>\u51ed\u8bc1\u6570\u636e&#xff1a;\u6355\u83b7\u7684\u7528\u6237\u540d\u3001\u5bc6\u7801\u6216\u5176\u4ed6\u8ba4\u8bc1\u4fe1\u606f\u3002<\/li>\n<li>\u6218\u5229\u54c1&#xff08;loot&#xff09;&#xff1a;\u4ece\u76ee\u6807\u7cfb\u7edf\u4e2d\u83b7\u53d6\u7684\u6587\u4ef6\u6216\u6570\u636e\u3002<\/li>\n<li>\u5de5\u4f5c\u7a7a\u95f4&#xff08;workspaces&#xff09;&#xff1a;\u7528\u4e8e\u7ec4\u7ec7\u4e0d\u540c\u9879\u76ee\u6216\u7f51\u7edc\u7684\u626b\u63cf\u6570\u636e\u3002<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u6570\u636e\u5e93&#xff0c;MSF\u80fd\u591f\u9ad8\u6548\u7ba1\u7406\u8fd9\u4e9b\u6570\u636e&#xff0c;\u652f\u6301\u590d\u6742\u67e5\u8be2\u3001\u6570\u636e\u5bfc\u51fa\u548c\u8de8\u4f1a\u8bdd\u7684\u6570\u636e\u6301\u4e45\u5316\u3002\u76f8\u6bd4\u4e0d\u4f7f\u7528\u6570\u636e\u5e93\u7684\u6a21\u5f0f&#xff0c;\u6570\u636e\u5e93\u652f\u6301\u663e\u8457\u63d0\u5347\u4e86MSF\u5728\u5927\u578b\u6e17\u900f\u6d4b\u8bd5\u9879\u76ee\u4e2d\u7684\u6548\u7387\u3002\u7136\u800c&#xff0c;\u82e5\u6570\u636e\u5e93\u914d\u7f6e\u4e0d\u5f53\u6216\u670d\u52a1\u672a\u6b63\u786e\u8fd0\u884c&#xff0c;\u53ef\u80fd\u5bfc\u81f4MSF\u542f\u52a8\u7f13\u6162\u6216\u529f\u80fd\u53d7\u9650\u3002<\/p>\n<h4>1.2 \u6570\u636e\u5e93\u76f8\u5173\u547d\u4ee4<\/h4>\n<p>MSF\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u4ee5db_\u5f00\u5934\u7684\u547d\u4ee4&#xff0c;\u7528\u4e8e\u7ba1\u7406\u6570\u636e\u5e93\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u5e38\u7528\u547d\u4ee4\u7684\u6982\u8ff0&#xff1a;<\/p>\n<ul>\n<li>db_connect&#xff1a;\u8fde\u63a5\u5230\u6307\u5b9a\u6570\u636e\u5e93\u3002<\/li>\n<li>db_disconnect&#xff1a;\u65ad\u5f00\u5f53\u524d\u6570\u636e\u5e93\u8fde\u63a5\u3002<\/li>\n<li>db_status&#xff1a;\u663e\u793a\u5f53\u524d\u6570\u636e\u5e93\u8fde\u63a5\u72b6\u6001\u3002<\/li>\n<li>db_rebuild_cache&#xff1a;\u91cd\u5efa\u6a21\u5757\u7f13\u5b58\u4ee5\u52a0\u901f\u641c\u7d22\u3002<\/li>\n<li>db_nmap&#xff1a;\u6267\u884cNmap\u626b\u63cf\u5e76\u5c06\u7ed3\u679c\u5b58\u50a8\u5230\u6570\u636e\u5e93\u3002<\/li>\n<li>db_import&#xff1a;\u5bfc\u5165\u5916\u90e8\u626b\u63cf\u7ed3\u679c&#xff08;\u5982Nmap XML\u6587\u4ef6&#xff09;\u5230\u6570\u636e\u5e93\u3002<\/li>\n<li>db_export&#xff1a;\u5bfc\u51fa\u6570\u636e\u5e93\u5185\u5bb9\u5230\u6587\u4ef6\u3002<\/li>\n<li>hosts\u3001services\u3001vulns\u3001creds\u3001loot&#xff1a;\u67e5\u8be2\u6570\u636e\u5e93\u4e2d\u7684\u4e3b\u673a\u3001\u670d\u52a1\u3001\u6f0f\u6d1e\u3001\u51ed\u8bc1\u548c\u6218\u5229\u54c1\u4fe1\u606f\u3002<\/li>\n<li>workspace&#xff1a;\u7ba1\u7406\u6570\u636e\u5e93\u4e2d\u7684\u5de5\u4f5c\u7a7a\u95f4\u3002<\/li>\n<\/ul>\n<p>\u6b64\u5916&#xff0c;msfdb\u547d\u4ee4\u884c\u5de5\u5177\u662f\u7ba1\u7406MSF\u6570\u636e\u5e93\u7684\u4fbf\u6377\u63a5\u53e3&#xff0c;\u63d0\u4f9b\u4e86\u521d\u59cb\u5316\u3001\u542f\u52a8\u3001\u505c\u6b62\u7b49\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u63d0\u4f9b\u7684\u6838\u5fc3\u547d\u4ee4&#xff1a;<\/p>\n<ul>\n<li>msfdb init&#xff1a;\u521d\u59cb\u5316\u6570\u636e\u5e93&#xff0c;\u521b\u5efa\u7528\u6237\u548c\u6570\u636e\u5e93&#xff08;\u5982msf\u548cmsf_test&#xff09;\u3002<\/li>\n<li>msfdb reinit&#xff1a;\u5220\u9664\u73b0\u6709\u6570\u636e\u5e93\u5e76\u91cd\u65b0\u521d\u59cb\u5316\u3002<\/li>\n<li>msfdb delete&#xff1a;\u5220\u9664\u6570\u636e\u5e93\u5e76\u505c\u6b62\u4f7f\u7528\u3002<\/li>\n<li>msfdb start&#xff1a;\u542f\u52a8PostgreSQL\u6570\u636e\u5e93\u670d\u52a1\u3002<\/li>\n<li>msfdb stop&#xff1a;\u505c\u6b62PostgreSQL\u6570\u636e\u5e93\u670d\u52a1\u3002<\/li>\n<li>msfdb status&#xff1a;\u68c0\u67e5\u6570\u636e\u5e93\u548cWeb\u670d\u52a1\u7684\u8fd0\u884c\u72b6\u6001\u3002<\/li>\n<li>msfdb run&#xff1a;\u542f\u52a8\u6570\u636e\u5e93\u5e76\u76f4\u63a5\u8fdb\u5165msfconsole\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u547d\u4ee4\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u6570\u636e\u5e93\u7ba1\u7406\u65b9\u5f0f&#xff0c;\u9002\u7528\u4e8e\u4e0d\u540c\u573a\u666f\u3002<\/p>\n<h3>\u4e8c\u3001\u914d\u7f6ePostgreSQL\u4e0eMSF\u6570\u636e\u5e93<\/h3>\n<h4>2.1 \u5b89\u88c5\u4e0e\u542f\u52a8PostgreSQL\u670d\u52a1<\/h4>\n<p>Metasploit\u4f9d\u8d56PostgreSQL\u6570\u636e\u5e93&#xff0c;\u56e0\u6b64\u786e\u4fddPostgreSQL\u6b63\u786e\u5b89\u88c5\u548c\u8fd0\u884c\u662f\u914d\u7f6eMSF\u6570\u636e\u5e93\u7684\u7b2c\u4e00\u6b65\u3002\u5728Kali Linux\u7b49\u73af\u5883\u4e2d&#xff0c;PostgreSQL\u901a\u5e38\u5df2\u9884\u88c5&#xff0c;\u4f46\u9ed8\u8ba4\u4e0d\u968f\u7cfb\u7edf\u542f\u52a8\u3002\u4ee5\u4e0b\u662f\u914d\u7f6e\u6b65\u9aa4&#xff1a;<\/p>\n<li>\n<p>\u5b89\u88c5PostgreSQL&#xff08;\u82e5\u672a\u5b89\u88c5&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> postgresql<\/p>\n<\/li>\n<li>\n<p>\u542f\u52a8PostgreSQL\u670d\u52a1&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl start postgresql<br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> postgresql<\/p>\n<ul>\n<li>start\u547d\u4ee4\u542f\u52a8PostgreSQL\u670d\u52a1\u3002<\/li>\n<li>enable\u547d\u4ee4\u8bbe\u7f6ePostgreSQL\u5f00\u673a\u81ea\u542f&#xff0c;\u786e\u4fdd\u7cfb\u7edf\u91cd\u542f\u540e\u670d\u52a1\u81ea\u52a8\u8fd0\u884c\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u9a8c\u8bc1PostgreSQL\u8fd0\u884c\u72b6\u6001&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> systemctl status postgresql<\/p>\n<p>\u8f93\u51fa\u5e94\u663e\u793aactive (running)&#xff0c;\u8868\u793a\u670d\u52a1\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<\/li>\n<h4>2.2 \u521d\u59cb\u5316MSF\u6570\u636e\u5e93<\/h4>\n<p>\u9996\u6b21\u4f7f\u7528MSF\u6570\u636e\u5e93\u65f6&#xff0c;\u9700\u901a\u8fc7msfdb init\u547d\u4ee4\u8fdb\u884c\u521d\u59cb\u5316\u3002\u6b64\u547d\u4ee4\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c&#xff1a;<\/p>\n<ul>\n<li>\u521b\u5efa\u6570\u636e\u5e93\u7528\u6237&#xff08;\u5982msf&#xff09;\u3002<\/li>\n<li>\u521b\u5efa\u6570\u636e\u5e93&#xff08;\u5982msf\u548cmsf_test&#xff09;\u3002<\/li>\n<li>\u751f\u6210\u914d\u7f6e\u6587\u4ef6&#xff08;\u901a\u5e38\u4f4d\u4e8e\/usr\/share\/metasploit-framework\/config\/database.yml&#xff09;\u3002<\/li>\n<li>\u521d\u59cb\u5316\u6570\u636e\u5e93\u67b6\u6784\u3002<\/li>\n<\/ul>\n<p>\u64cd\u4f5c\u6b65\u9aa4&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> msfdb init<\/p>\n<p>\u8f93\u51fa\u793a\u4f8b&#xff1a;<\/p>\n<p>[&#043;] Starting database<br \/>\n[&#043;] Creating database user &#039;msf&#039;<br \/>\n[&#043;] Creating databases &#039;msf&#039;<br \/>\n[&#043;] Creating databases &#039;msf_test&#039;<br \/>\n[&#043;] Creating configuration file &#039;\/usr\/share\/metasploit-framework\/config\/database.yml&#039;<br \/>\n[&#043;] Creating initial database schema<\/p>\n<h4>2.3 \u9a8c\u8bc1\u6570\u636e\u5e93\u8fde\u63a5<\/h4>\n<p>\u521d\u59cb\u5316\u5b8c\u6210\u540e&#xff0c;\u542f\u52a8msfconsole\u5e76\u68c0\u67e5\u6570\u636e\u5e93\u8fde\u63a5\u72b6\u6001&#xff1a;<\/p>\n<p>msfconsole -q<br \/>\nmsf6 <span class=\"token operator\">&gt;<\/span> db_status<\/p>\n<ul>\n<li>\u82e5\u8f93\u51fa[*] Connected to msf. Connection type: postgresql&#xff0c;\u8868\u793a\u8fde\u63a5\u6210\u529f\u3002<\/li>\n<li>\u82e5\u8f93\u51fa[*] postgresql selected, no connection&#xff0c;\u9700\u8fdb\u4e00\u6b65\u6392\u67e5\u3002<\/li>\n<\/ul>\n<p>\u82e5\u8fde\u63a5\u5931\u8d25&#xff0c;\u53ef\u624b\u52a8\u8fde\u63a5\u6570\u636e\u5e93&#xff1a;<\/p>\n<p>msf6 <span class=\"token operator\">&gt;<\/span> db_connect -y \/usr\/share\/metasploit-framework\/config\/database.yml<\/p>\n<p>\u6216\u6307\u5b9a\u8fde\u63a5\u53c2\u6570&#xff1a;<\/p>\n<p>msf6 <span class=\"token operator\">&gt;<\/span> db_connect msf:password&#064;127.0.0.1:5432\/msf<\/p>\n<p>\u5176\u4e2d&#xff0c;msf\u4e3a\u7528\u6237\u540d&#xff0c;password\u4e3a\u5bc6\u7801&#xff0c;127.0.0.1:5432\u4e3a\u6570\u636e\u5e93\u5730\u5740\u548c\u7aef\u53e3&#xff0c;msf\u4e3a\u6570\u636e\u5e93\u540d\u79f0\u3002\u6839\u636e\u5b9e\u9645\u914d\u7f6e\u8c03\u6574\u8fd9\u4e9b\u53c2\u6570\u3002<\/p>\n<h4>2.4 \u914d\u7f6e\u6587\u4ef6\u7ba1\u7406<\/h4>\n<p>MSF\u6570\u636e\u5e93\u7684\u8fde\u63a5\u4fe1\u606f\u5b58\u50a8\u5728database.yml\u6587\u4ef6\u4e2d&#xff0c;\u5178\u578b\u8def\u5f84\u4e3a&#xff1a;<\/p>\n<ul>\n<li>Kali Linux&#xff1a;\/usr\/share\/metasploit-framework\/config\/database.yml<\/li>\n<li>\u7528\u6237\u76ee\u5f55&#xff1a;~\/.msf4\/database.yml<\/li>\n<\/ul>\n<p>\u914d\u7f6e\u6587\u4ef6\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token key atrule\">development<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">adapter<\/span><span class=\"token punctuation\">:<\/span> postgresql<br \/>\n  <span class=\"token key atrule\">database<\/span><span class=\"token punctuation\">:<\/span> msf<br \/>\n  <span class=\"token key atrule\">username<\/span><span class=\"token punctuation\">:<\/span> msf<br \/>\n  <span class=\"token key atrule\">password<\/span><span class=\"token punctuation\">:<\/span> your_password<br \/>\n  <span class=\"token key atrule\">host<\/span><span class=\"token punctuation\">:<\/span> localhost<br \/>\n  <span class=\"token key atrule\">port<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">5432<\/span><br \/>\n  <span class=\"token key atrule\">pool<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">256<\/span><br \/>\n  <span class=\"token key atrule\">timeout<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">5<\/span><br \/>\n<span class=\"token key atrule\">production<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">adapter<\/span><span class=\"token punctuation\">:<\/span> postgresql<br \/>\n  <span class=\"token key atrule\">database<\/span><span class=\"token punctuation\">:<\/span> msf<br \/>\n  <span class=\"token key atrule\">username<\/span><span class=\"token punctuation\">:<\/span> msf<br \/>\n  <span class=\"token key atrule\">password<\/span><span class=\"token punctuation\">:<\/span> your_password<br \/>\n  <span class=\"token key atrule\">host<\/span><span class=\"token punctuation\">:<\/span> localhost<br \/>\n  <span class=\"token key atrule\">port<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">5432<\/span><br \/>\n  <span class=\"token key atrule\">pool<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">256<\/span><br \/>\n  <span class=\"token key atrule\">timeout<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">5<\/span><\/p>\n<p>\u786e\u4fdddatabase.yml\u4e2d\u7684\u7528\u6237\u540d\u3001\u5bc6\u7801\u3001\u4e3b\u673a\u548c\u7aef\u53e3\u4e0ePostgreSQL\u914d\u7f6e\u4e00\u81f4\u3002\u82e5\u6587\u4ef6\u4e22\u5931\u6216\u914d\u7f6e\u9519\u8bef&#xff0c;\u53ef\u901a\u8fc7msfdb reinit\u91cd\u65b0\u751f\u6210\u3002<\/p>\n<h3>\u4e09\u3001\u4f18\u5316MSF\u542f\u52a8\u901f\u5ea6<\/h3>\n<p>MSF\u542f\u52a8\u7f13\u6162\u901a\u5e38\u4e0e\u6570\u636e\u5e93\u8fde\u63a5\u95ee\u9898\u6216\u6a21\u5757\u52a0\u8f7d\u6709\u5173\u3002\u4ee5\u4e0b\u662f\u4f18\u5316\u542f\u52a8\u901f\u5ea6\u7684\u51e0\u79cd\u65b9\u6cd5\u3002<\/p>\n<h4>3.1 \u65b9\u6cd5\u4e00&#xff1a;\u786e\u4fddPostgreSQL\u670d\u52a1\u6b63\u5e38\u8fd0\u884c<\/h4>\n<p>\u5982\u524d\u6240\u8ff0&#xff0c;PostgreSQL\u670d\u52a1\u672a\u8fd0\u884c\u662f\u5bfc\u81f4MSF\u542f\u52a8\u5361\u987f\u7684\u5e38\u89c1\u539f\u56e0\u3002\u786e\u4fdd\u670d\u52a1\u542f\u52a8\u5e76\u6b63\u786e\u914d\u7f6e\u6570\u636e\u5e93\u8fde\u63a5&#xff0c;\u53ef\u663e\u8457\u51cf\u5c11\u542f\u52a8\u65f6\u95f4\u3002<\/p>\n<p>\u6392\u67e5\u6b65\u9aa4&#xff1a;<\/p>\n<li>\u68c0\u67e5PostgreSQL\u670d\u52a1\u72b6\u6001&#xff1a;<span class=\"token function\">sudo<\/span> systemctl status postgresql\n<\/li>\n<li>\u82e5\u670d\u52a1\u672a\u8fd0\u884c&#xff0c;\u542f\u52a8\u670d\u52a1&#xff1a;<span class=\"token function\">sudo<\/span> systemctl start postgresql\n<\/li>\n<li>\u82e5\u6570\u636e\u5e93\u672a\u521d\u59cb\u5316&#xff0c;\u8fd0\u884c&#xff1a;<span class=\"token function\">sudo<\/span> msfdb init\n<\/li>\n<li>\u5728msfconsole\u4e2d\u9a8c\u8bc1\u8fde\u63a5&#xff1a;msf6 <span class=\"token operator\">&gt;<\/span> db_status\n<\/li>\n<h4>3.2 \u65b9\u6cd5\u4e8c&#xff1a;\u91cd\u5efa\u6a21\u5757\u7f13\u5b58<\/h4>\n<p>MSF\u5305\u542b\u6570\u5343\u4e2a\u6a21\u5757&#xff08;\u6f0f\u6d1e\u5229\u7528\u3001\u8f85\u52a9\u6a21\u5757\u7b49&#xff09;&#xff0c;\u6bcf\u6b21\u542f\u52a8\u65f6\u4f1a\u626b\u63cf\u6a21\u5757\u76ee\u5f55\u4ee5\u6784\u5efa\u7f13\u5b58\u3002\u82e5\u7f13\u5b58\u672a\u6b63\u786e\u751f\u6210&#xff0c;\u6a21\u5757\u641c\u7d22&#xff08;\u5982search\u547d\u4ee4&#xff09;\u4f1a\u53d8\u5f97\u7f13\u6162\u3002\u901a\u8fc7db_rebuild_cache\u547d\u4ee4\u91cd\u5efa\u6a21\u5757\u7f13\u5b58&#xff0c;\u53ef\u4ee5\u663e\u8457\u63d0\u5347\u6027\u80fd\u3002<\/p>\n<p>\u64cd\u4f5c\u6b65\u9aa4&#xff1a;<\/p>\n<li>\u786e\u4fdd\u6570\u636e\u5e93\u8fde\u63a5\u6b63\u5e38&#xff1a;msf6 <span class=\"token operator\">&gt;<\/span> db_status<br \/>\n<span class=\"token punctuation\">[<\/span>*<span class=\"token punctuation\">]<\/span> Connected to msf. Connection type: postgresql<\/p>\n<\/li>\n<li>\u91cd\u5efa\u7f13\u5b58&#xff1a;msf6 <span class=\"token operator\">&gt;<\/span> db_rebuild_cache\n<p>\u8f93\u51fa\u793a\u4f8b&#xff1a;[*] Rebuilding the module cache in the background&#8230;<\/p>\n<p>\u7f13\u5b58\u91cd\u5efa\u53ef\u80fd\u9700\u8981\u51e0\u5206\u949f&#xff0c;\u5b8c\u6210\u540e\u6a21\u5757\u641c\u7d22\u901f\u5ea6\u5c06\u663e\u8457\u63d0\u5347\u3002<\/li>\n<p>\u6ce8\u610f&#xff1a;\u7f13\u5b58\u53ea\u9700\u6784\u5efa\u4e00\u6b21&#xff0c;\u540e\u7eed\u542f\u52a8\u4ec5\u66f4\u65b0\u589e\u91cf\u53d8\u5316\u3002\u82e5\u6a21\u5757\u53d1\u751f\u66f4\u6539&#xff08;\u5982\u66f4\u65b0MSF&#xff09;&#xff0c;\u5efa\u8bae\u5b9a\u671f\u8fd0\u884cdb_rebuild_cache\u3002<\/p>\n<h4>3.3 \u65b9\u6cd5\u4e09&#xff1a;\u4e34\u65f6\u8df3\u8fc7\u6570\u636e\u5e93\u8fde\u63a5<\/h4>\n<p>\u5728\u67d0\u4e9b\u573a\u666f\u4e0b&#xff08;\u5982\u5feb\u901f\u6d4b\u8bd5\u6216\u65e0\u9700\u6570\u636e\u6301\u4e45\u5316&#xff09;&#xff0c;\u53ef\u901a\u8fc7\u8df3\u8fc7\u6570\u636e\u5e93\u8fde\u63a5\u6765\u52a0\u901fMSF\u542f\u52a8\u3002\u4ee5\u4e0b\u662f\u4e24\u79cd\u65b9\u6cd5&#xff1a;<\/p>\n<li>\u4f7f\u7528-q\u53c2\u6570&#xff1a;\u542f\u52a8\u65f6\u4e0d\u663e\u793abanner&#xff0c;\u53ef\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u51cf\u5c11\u521d\u59cb\u5316\u65f6\u95f4&#xff1a;msfconsole -q\n<\/li>\n<li>\u4f7f\u7528-n\u53c2\u6570&#xff1a;\u76f4\u63a5\u8df3\u8fc7\u6570\u636e\u5e93\u521d\u59cb\u5316&#xff1a;msfconsole -n\n<\/li>\n<p>\u9002\u7528\u573a\u666f&#xff1a;<\/p>\n<ul>\n<li>\u4e34\u65f6\u6d4b\u8bd5\u6216\u5b66\u4e60MSF\u529f\u80fd\u3002<\/li>\n<li>\u4e0d\u9700\u8981\u5b58\u50a8\u626b\u63cf\u7ed3\u679c\u6216\u6570\u636e\u3002<\/li>\n<li>\u6570\u636e\u5e93\u670d\u52a1\u4e0d\u53ef\u7528\u6216\u914d\u7f6e\u590d\u6742\u3002<\/li>\n<\/ul>\n<p>\u5c40\u9650\u6027&#xff1a;<\/p>\n<ul>\n<li>\u65e0\u6cd5\u4f7f\u7528\u6570\u636e\u5e93\u76f8\u5173\u529f\u80fd&#xff08;\u5982db_nmap\u3001hosts\u3001services\u7b49&#xff09;\u3002<\/li>\n<li>\u6a21\u5757\u641c\u7d22\u901f\u5ea6\u53ef\u80fd\u8f83\u6162&#xff08;\u56e0\u65e0\u7f13\u5b58\u652f\u6301&#xff09;\u3002<\/li>\n<\/ul>\n<h4>3.4 \u65b9\u6cd5\u56db&#xff1a;\u4f18\u5316\u5de5\u4f5c\u7a7a\u95f4\u7ba1\u7406<\/h4>\n<p>MSF\u652f\u6301\u5de5\u4f5c\u7a7a\u95f4&#xff08;workspaces&#xff09;\u6765\u7ec4\u7ec7\u4e0d\u540c\u9879\u76ee\u7684\u6570\u636e\u3002\u5408\u7406\u4f7f\u7528\u5de5\u4f5c\u7a7a\u95f4\u53ef\u63d0\u9ad8\u6570\u636e\u7ba1\u7406\u6548\u7387&#xff0c;\u95f4\u63a5\u4f18\u5316\u6027\u80fd\u3002<\/p>\n<p>\u64cd\u4f5c\u6b65\u9aa4&#xff1a;<\/p>\n<li>\u67e5\u770b\u5f53\u524d\u5de5\u4f5c\u7a7a\u95f4&#xff1a;msf6 <span class=\"token operator\">&gt;<\/span> workspace\n<p>\u8f93\u51fa\u793a\u4f8b&#xff1a;* default<br \/>\n  workspace1<br \/>\n  workspace2<\/p>\n<\/li>\n<li>\u5207\u6362\u5de5\u4f5c\u7a7a\u95f4&#xff1a;msf6 <span class=\"token operator\">&gt;<\/span> workspace workspace1\n<\/li>\n<li>\u521b\u5efa\u65b0\u5de5\u4f5c\u7a7a\u95f4&#xff1a;msf6 <span class=\"token operator\">&gt;<\/span> workspace -a new_workspace\n<\/li>\n<li>\u5220\u9664\u5de5\u4f5c\u7a7a\u95f4&#xff1a;msf6 <span class=\"token operator\">&gt;<\/span> workspace -d workspace1\n<\/li>\n<p>\u901a\u8fc7\u4e3a\u4e0d\u540c\u9879\u76ee\u521b\u5efa\u72ec\u7acb\u5de5\u4f5c\u7a7a\u95f4&#xff0c;\u53ef\u907f\u514d\u6570\u636e\u6df7\u6742&#xff0c;\u63d0\u9ad8\u67e5\u8be2\u6548\u7387\u3002<\/p>\n<h3>\u56db\u3001\u603b\u7ed3\u4e0e\u6700\u4f73\u5b9e\u8df5<\/h3>\n<p>\u5efa\u8bae\u5927\u5bb6\u6839\u636e\u5404\u81ea\u7684\u4f7f\u7528\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u914d\u7f6e\u548c\u4f18\u5316\u65b9\u6cd5&#xff1a;<\/p>\n<table>\n<tr>\u573a\u666f\u63a8\u8350\u64cd\u4f5c<\/tr>\n<tbody>\n<tr>\n<td>\u957f\u671f\/\u6b63\u5f0f\u4f7f\u7528<\/td>\n<td>\u786e\u4fddPostgreSQL\u670d\u52a1\u8fd0\u884c&#xff0c;\u6267\u884cmsfdb init\u521d\u59cb\u5316\u6570\u636e\u5e93&#xff0c;\u5b9a\u671f\u8fd0\u884cdb_rebuild_cache\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u4e34\u65f6\/\u6d4b\u8bd5\u4f7f\u7528<\/td>\n<td>\u4f7f\u7528msfconsole -nq\u8df3\u8fc7\u6570\u636e\u5e93\u8fde\u63a5&#xff0c;\u5feb\u901f\u542f\u52a8\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5927\u578b\u9879\u76ee<\/td>\n<td>\u521b\u5efa\u591a\u4e2a\u5de5\u4f5c\u7a7a\u95f4&#xff0c;\u5b9a\u671f\u5907\u4efddatabase.yml\u548c\u6570\u636e\u5e93\u5185\u5bb9\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u6027\u80fd\u4f18\u5316<\/td>\n<td>\u91cd\u5efa\u6a21\u5757\u7f13\u5b58&#xff0c;\u4f18\u5316PostgreSQL\u914d\u7f6e&#xff08;\u5982\u589e\u52a0\u8fde\u63a5\u6c60\u5927\u5c0f&#xff09;\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e42\u6b21\uff0c\u6536\u85cf25\u6b21\u3002MSF\u4f9d\u8d56PostgreSQL\u6570\u636e\u5e93\u5b58\u50a8\u6e17\u900f\u6d4b\u8bd5\u6570\u636e\uff0c\u4f46\u914d\u7f6e\u4e0d\u5f53\u4f1a\u5bfc\u81f4\u542f\u52a8\u5361\u987f\u3002\u672c\u6587\u8be6\u89e3MSF\u6570\u636e\u5e93\u7ba1\u7406\u65b9\u6cd5\uff1a1\uff09\u786e\u4fddPostgreSQL\u670d\u52a1\u8fd0\u884c\uff08systemctl start postgresql\uff09\uff1b2\uff09\u4f7f\u7528msfdb init\u521d\u59cb\u5316\u6570\u636e\u5e93\uff1b3\uff09\u901a\u8fc7db_rebuild_cache\u4f18\u5316\u6a21\u5757\u7f13\u5b58\uff1b4\uff09\u4e34\u65f6\u7528msfconsole -n\u8df3\u8fc7\u6570\u636e\u5e93\u8fde\u63a5\u52a0\u901f\u542f\u52a8\u3002\u540c\u65f6\u4ecb\u7ecd\u6570\u636e\u5e93\u914d\u7f6e\u6587\u4ef6\uff08database.yml\uff09\u7ba1\u7406\u53ca\u5e38\u7528db_\u547d\u4ee4<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2921,58,5813,100,1800,122],"topic":[],"class_list":["post-56149","post","type-post","status-publish","format-standard","hentry","category-server","tag-kali","tag-linux","tag-msf","tag-100","tag-1800","tag-122"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6bcf\u6b21\u542f\u52a8msf\u90fd\u8981\u7b49\u534a\u5929\uff1f\u9001\u4f60\u4e00\u4efdMetasploit\u6570\u636e\u5e93\u914d\u7f6e\u4e0e\u4f18\u5316\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/56149.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6bcf\u6b21\u542f\u52a8msf\u90fd\u8981\u7b49\u534a\u5929\uff1f\u9001\u4f60\u4e00\u4efdMetasploit\u6570\u636e\u5e93\u914d\u7f6e\u4e0e\u4f18\u5316\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e42\u6b21\uff0c\u6536\u85cf25\u6b21\u3002MSF\u4f9d\u8d56PostgreSQL\u6570\u636e\u5e93\u5b58\u50a8\u6e17\u900f\u6d4b\u8bd5\u6570\u636e\uff0c\u4f46\u914d\u7f6e\u4e0d\u5f53\u4f1a\u5bfc\u81f4\u542f\u52a8\u5361\u987f\u3002\u672c\u6587\u8be6\u89e3MSF\u6570\u636e\u5e93\u7ba1\u7406\u65b9\u6cd5\uff1a1\uff09\u786e\u4fddPostgreSQL\u670d\u52a1\u8fd0\u884c\uff08systemctl start postgresql\uff09\uff1b2\uff09\u4f7f\u7528msfdb init\u521d\u59cb\u5316\u6570\u636e\u5e93\uff1b3\uff09\u901a\u8fc7db_rebuild_cache\u4f18\u5316\u6a21\u5757\u7f13\u5b58\uff1b4\uff09\u4e34\u65f6\u7528msfconsole -n\u8df3\u8fc7\u6570\u636e\u5e93\u8fde\u63a5\u52a0\u901f\u542f\u52a8\u3002\u540c\u65f6\u4ecb\u7ecd\u6570\u636e\u5e93\u914d\u7f6e\u6587\u4ef6\uff08database.yml\uff09\u7ba1\u7406\u53ca\u5e38\u7528db_\u547d\u4ee4\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/56149.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-14T05:34:53+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/56149.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/56149.html\",\"name\":\"\u6bcf\u6b21\u542f\u52a8msf\u90fd\u8981\u7b49\u534a\u5929\uff1f\u9001\u4f60\u4e00\u4efdMetasploit\u6570\u636e\u5e93\u914d\u7f6e\u4e0e\u4f18\u5316\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-14T05:34:53+00:00\",\"dateModified\":\"2025-08-14T05:34:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/56149.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/56149.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/56149.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6bcf\u6b21\u542f\u52a8msf\u90fd\u8981\u7b49\u534a\u5929\uff1f\u9001\u4f60\u4e00\u4efdMetasploit\u6570\u636e\u5e93\u914d\u7f6e\u4e0e\u4f18\u5316\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6bcf\u6b21\u542f\u52a8msf\u90fd\u8981\u7b49\u534a\u5929\uff1f\u9001\u4f60\u4e00\u4efdMetasploit\u6570\u636e\u5e93\u914d\u7f6e\u4e0e\u4f18\u5316\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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":"https:\/\/www.wsisp.com\/helps\/56149.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6bcf\u6b21\u542f\u52a8msf\u90fd\u8981\u7b49\u534a\u5929\uff1f\u9001\u4f60\u4e00\u4efdMetasploit\u6570\u636e\u5e93\u914d\u7f6e\u4e0e\u4f18\u5316\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e42\u6b21\uff0c\u6536\u85cf25\u6b21\u3002MSF\u4f9d\u8d56PostgreSQL\u6570\u636e\u5e93\u5b58\u50a8\u6e17\u900f\u6d4b\u8bd5\u6570\u636e\uff0c\u4f46\u914d\u7f6e\u4e0d\u5f53\u4f1a\u5bfc\u81f4\u542f\u52a8\u5361\u987f\u3002\u672c\u6587\u8be6\u89e3MSF\u6570\u636e\u5e93\u7ba1\u7406\u65b9\u6cd5\uff1a1\uff09\u786e\u4fddPostgreSQL\u670d\u52a1\u8fd0\u884c\uff08systemctl start postgresql\uff09\uff1b2\uff09\u4f7f\u7528msfdb init\u521d\u59cb\u5316\u6570\u636e\u5e93\uff1b3\uff09\u901a\u8fc7db_rebuild_cache\u4f18\u5316\u6a21\u5757\u7f13\u5b58\uff1b4\uff09\u4e34\u65f6\u7528msfconsole -n\u8df3\u8fc7\u6570\u636e\u5e93\u8fde\u63a5\u52a0\u901f\u542f\u52a8\u3002\u540c\u65f6\u4ecb\u7ecd\u6570\u636e\u5e93\u914d\u7f6e\u6587\u4ef6\uff08database.yml\uff09\u7ba1\u7406\u53ca\u5e38\u7528db_\u547d\u4ee4","og_url":"https:\/\/www.wsisp.com\/helps\/56149.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-14T05:34:53+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/56149.html","url":"https:\/\/www.wsisp.com\/helps\/56149.html","name":"\u6bcf\u6b21\u542f\u52a8msf\u90fd\u8981\u7b49\u534a\u5929\uff1f\u9001\u4f60\u4e00\u4efdMetasploit\u6570\u636e\u5e93\u914d\u7f6e\u4e0e\u4f18\u5316\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-14T05:34:53+00:00","dateModified":"2025-08-14T05:34:53+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/56149.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/56149.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/56149.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6bcf\u6b21\u542f\u52a8msf\u90fd\u8981\u7b49\u534a\u5929\uff1f\u9001\u4f60\u4e00\u4efdMetasploit\u6570\u636e\u5e93\u914d\u7f6e\u4e0e\u4f18\u5316\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/56149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=56149"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/56149\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=56149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=56149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=56149"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=56149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}