{"id":151499,"date":"2019-07-29T08:14:47","date_gmt":"2019-07-29T00:14:47","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=151499"},"modified":"2019-07-23T09:16:23","modified_gmt":"2019-07-23T01:16:23","slug":"linux-ssh-cc","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-ssh-cc.html","title":{"rendered":"\u5229\u7528SSH\u96a7\u9053\u52a0\u5bc6\u6280\u672f\u9690\u853dC&C\u901a\u4fe1\u6d41\u91cf"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u5728\u7f51\u7edc\u653b\u9632\u535a\u5f08\u4e2d\uff0c\u7f51\u7edc\u6d41\u91cf\u7279\u5f81\u5206\u6790\u7c7b\u5b89\u5168\u9632\u5fa1\u63aa\u65bd\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\u3002\u4f17\u591a\u5382\u5546\u548c\u4f01\u4e1a\u5bf9\u7f51\u7edc\u6d41\u91cf\u8fdb\u884c\u6076\u610f\u6d41\u91cf\u5206\u6790\u68c0\u6d4b\uff0c\u4ece\u800c\u9488\u5bf9\u6027\u7684\u91c7\u53d6\u9632\u5fa1\u63aa\u65bd\uff0c\u5982\u5404\u7ea7ISP\u5728\u9aa8\u5e72\u7f51\u7edc\u8bbe\u5907\u4e0a\u5927\u591a\u91c7\u7528\u7f51\u7edc\u6d41\u91cf\u5206\u6790\u68c0\u6d4b\u7684\u9632\u5fa1\u65b9\u6848\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u4e00\u3001\u80cc\u666f\u7b80\u4ecb<\/strong><\/div>\n \u5728\u7f51\u7edc\u653b\u9632\u535a\u5f08\u4e2d\uff0c\u7f51\u7edc\u6d41\u91cf\u7279\u5f81\u5206\u6790\u7c7b\u5b89\u5168\u9632\u5fa1\u63aa\u65bd\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\u3002\u4f17\u591a\u5382\u5546\u548c\u4f01\u4e1a\u5bf9\u7f51\u7edc\u6d41\u91cf\u8fdb\u884c\u6076\u610f\u6d41\u91cf\u5206\u6790\u68c0\u6d4b\uff0c\u4ece\u800c\u9488\u5bf9\u6027\u7684\u91c7\u53d6\u9632\u5fa1\u63aa\u65bd\uff0c\u5982\u5404\u7ea7ISP\u5728\u9aa8\u5e72\u7f51\u7edc\u8bbe\u5907\u4e0a\u5927\u591a\u91c7\u7528\u7f51\u7edc\u6d41\u91cf\u5206\u6790\u68c0\u6d4b\u7684\u9632\u5fa1\u65b9\u6848\u3002 \u4e8c\u3001\u5b9e\u9a8c\u539f\u7406<\/strong><\/div>\n \u672c\u6b21\u5b9e\u9a8c\u4f7f\u7528Empire\u5de5\u5177\u5feb\u901f\u642d\u5efaC&C\u4fe1\u9053\uff0c\u672c\u6587\u53ea\u7b80\u8981\u4ecb\u7ecd\u5bf9\u4e8eEmpire\u5de5\u5177\u3002\u5728Windows\u5e73\u53f0\u4e0b\u4f7f\u7528Plink.exe\u5de5\u5177\u7684SSH\u529f\u80fd\u642d\u5efaSSH\u96a7\u9053\u3002<\/p>\n 2.1 SSH\u96a7\u9053\u4ecb\u7ecd<\/strong><\/span><\/div>\n SSH \u4f1a\u81ea\u52a8\u52a0\u5bc6\u548c\u89e3\u5bc6\u6240\u6709 SSH \u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u7aef\u4e4b\u95f4\u7684\u7f51\u7edc\u6570\u636e\u3002\u4f46\u662f\uff0c SSH \u8fd8\u80fd\u591f\u5c06\u5176\u4ed6 TCP \u7aef\u53e3\u7684\u7f51\u7edc\u6570 \u636e\u901a\u8fc7 SSH \u94fe\u63a5\u6765\u8f6c\u53d1\uff0c\u5e76\u4e14\u81ea\u52a8\u63d0\u4f9b\u4e86\u76f8\u5e94\u7684\u52a0\u5bc6\u53ca\u89e3\u5bc6\u670d\u52a1\u3002\u8fd9\u4e00\u8fc7\u7a0b\u4e5f\u88ab\u53eb\u505a\u201c\u96a7\u9053\u201d\uff08 tunneling\uff09\uff0c\u8fd9\u662f\u56e0 \u4e3a SSH \u4e3a\u5176\u4ed6 TCP \u94fe\u63a5\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b89\u5168\u7684\u901a\u9053\u6765\u8fdb\u884c\u4f20\u8f93\u800c\u5f97\u540d\u3002SSH\u96a7\u9053\u7684\u5b9e\u73b0\u4e3b\u8981\u4f7f\u7528SSH\u7684\u53c2\u6570\u914d\u7f6e\u8fdb\u884c\u7aef \u53e3\u8f6c\u53d1\uff0c\u5373\u5c06\u6240\u9700\u4f20\u8f93\u7684\u6570\u636e\u5185\u5bb9\u901a\u8fc7\u52a0\u5bc6\u7684SSH\u96a7\u9053\u8fdb\u884c\u8f6c\u53d1\u3002 SSH \u7aef\u53e3\u8f6c\u53d1\u80fd\u591f\u63d0\u4f9b\u4e24\u5927\u529f\u80fd\uff1a1\u3001\u52a0\u5bc6 SSH Client \u7aef\u81f3 SSH Server \u7aef\u4e4b\u95f4\u7684\u901a\u8baf\u6570\u636e\u30022\u3001\u7a81\u7834\u9632\u706b\u5899\u7684\u9650\u5236\u5b8c\u6210\u4e00\u4e9b\u4e4b\u524d\u65e0\u6cd5\u5efa\u7acb\u7684 TCP \u8fde\u63a5\u3002 \u672c\u5730\u8f6c\u53d1\u4e3b\u8981\u4f7f\u7528SSH\u7684 -L\u53c2\u6570\u89e3\u91ca\uff1a<\/strong><\/span><\/div>\n
2.2 Empire\u5de5\u5177\u7b80\u4ecb<\/strong><\/span><\/div>\n Empire\u662f\u4e00\u4e2a\u9488\u5bf9windows\u5e73\u53f0\u3001\u63d0\u4f9b\u4eceStager\u751f\u6210\u5230\u63d0\u53d6\u548c\u6e17\u900f\u7ef4\u6301\u4e00\u7cfb\u5217\u529f\u80fd\u9f50\u5168\u7684\u6e17\u900f\u653b\u51fb\u6846\u67b6\uff0c\u5176\u6700 \u5927\u7684\u7279\u70b9\u662f\u4ee5PowerShell\u811a\u672c\u4f5c\u4e3a\u653b\u51fb\u8f7d\u8377\uff0c\u800c\u4e14Empire\u5b9e\u73b0\u4e86\u65e0\u9700powershell.exe\u5c31\u53ef\u8fd0\u884cPowerShell\u4ee3\u7406\u529f \u80fd\uff0c\u5373\u5b83\u662f\u4e00\u4e2a\u7eaf\u7cb9\u7684PowerShell\u540e\u671f\u6f0f\u6d1e\u5229\u7528\u4ee3\u7406\u5de5\u5177\u3002\u5feb\u901f\u90e8\u7f72\u540e\u671f\u6f0f\u6d1e\u5229\u7528\u6a21\u5757\uff0c\u5185\u7f6e\u6a21\u5757\u6709\u952e\u76d8\u8bb0\u5f55\u3001 Mimikatz\u3001\u7ed5\u8fc7UAC\u3001\u5185\u7f51\u626b\u63cf\u7b49\u7b49\uff0c\u5e76\u4e14\u80fd\u591f\u9002\u5e94\u901a\u4fe1\u8eb2\u907f\u7f51\u7edc\u68c0\u6d4b\u548c\u5927\u90e8\u5206\u5b89\u5168\u9632\u62a4\u5de5\u5177\u7684\u67e5\u6740\uff0c\u7b80\u5355\u6765\u8bf4 Empire\u7c7b\u4f3c\u4e8e\u6e17\u900f\u795e\u5668Metasploit\uff0c\u662f\u4e00\u4e2a\u57fa\u4e8ePowerShell\u7684\u8fdc\u7a0b\u63a7\u5236\u6728\u9a6c\u3002<\/p>\n 2.2 Empire\u5de5\u5177\u5b89\u88c5<\/strong><\/span><\/div>\n \u5728\u5b9e\u9a8c\u865a\u62dflinux\u7cfb\u7edf\u4e2d\u5b89\u88c5<\/p>\n git clone https:\/\/github.com\/EmpireProject\/Empire.git #\u8fdb\u5165setup\u76ee\u5f55\u8fdb\u884c\u547d\u4ee4\u884c\u5b89\u88c5 cd Empire cd setup sudo .\/install.sh<\/pre>\n |