php\u7f51\u7ad9\u6253\u5305exe<\/a>\u5c06Base64\u7f16\u7801\u7684\u5b57\u7b26\u4e32\u89e3\u7801\u4e3a\u539f\u59cb\u6570\u636e\u3002\u6211\u4eec\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u51fd\u6570\u7528\u4e8e\u6211\u4eec\u7684URL\u5904\u7406\u51fd\u6570\u4e2d\uff1a<\/p>\n“`javascript<\/p>\n
function handleUrl(url) {<\/p>\n
if (url.startsWith(“https:\/\/example.com\/app?exe=”)) {<\/p>\n
var base64 = url.substr(31);<\/p>\n
var bytes = atob(base64);<\/p>\n
var blob = new Blob([bytes], { type: “application\/octet-stream” });<\/p>\n
var url = URL.createObjectURL(blob);<\/p>\n
window.location = url;<\/p>\n
}<\/p>\n
}<\/p>\n
“`<\/p>\n
\u8fd9\u4e2a\u51fd\u6570\u4f1a\u68c0\u67e5URL\u662f\u5426\u4ee5\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8fURL\u5f00\u5934\u3002\u5982\u679c\u662f\uff0c\u5b83\u4f1a\u63d0\u53d6Base64\u7f16\u7801\u7684\u5b57\u7b26\u4e32\uff0c\u89e3\u7801\u5b83\u5e76\u5c06\u5b83\u653e\u5230Blob\u5bf9\u8c61\u4e2d\u3002Blob\u5bf9\u8c61\u662f\u4e00\u79cd\u4e8c\u8fdb\u5236\u6570\u636e\u5bf9\u8c61\uff0c\u53ef\u4ee5\u7528\u4e8e\u521b\u5efaURL\u3002\u6211\u4eec\u4f7f\u7528URL.createObjectURL()\u51fd\u6570\u5c06Blob\u5bf9\u8c61\u8f6c\u6362\u4e3aURL\uff0c\u5e76\u5c06\u5b83\u5206\u914d\u7ed9window.location\u5c5e\u6027\uff0c\u4ee5\u4fbf\u5728\u5f53\u524d\u7a97\u53e3\u4e2d\u6253\u5f00\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n
\u603b\u7684\u6765\u8bf4\uff0cexe\u8f6c\u94fe\u63a5\u662f\u4e00\u79cd\u975e\u5e38\u6709\u7528\u7684\u6280\u672f\uff0c\u53ef\u4ee5\u8ba9\u6211\u4eec\u5c06\u53ef\u6267\u884c\u6587\u4ef6\u8f6c\u6362\u4e3aURL\u94fe\u63a5\uff0c\u4ee5\u4fbf\u5728\u7f51\u7ad9\u3001\u90ae\u4ef6\u548c\u5176\u4ed6\u573a\u5408\u4e2d\u65b9\u4fbf\u5730\u5206\u4eab\u5e94\u7528\u7a0b\u5e8f\u3002\u867d\u7136\u8fd9\u4e2a\u8fc7\u7a0b\u9700\u8981\u4e00\u4e9b\u6280\u672f\u77e5\u8bc6\uff0c\u4f46\u662f\u638c\u63e1\u5b83\u53ef\u4ee5\u8ba9\u6211\u4eec\u66f4\u52a0\u9ad8\u6548\u5730\u5de5\u4f5c\u548c\u5206\u4eab\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
exe\u8f6c\u94fe\u63a5\u662f\u4e00\u79cd\u5c06Windows\u53ef\u6267\u884c\u6587\u4ef6\uff08.exe\u6587\u4ef6\uff09\u8f6c\u6362\u4e3aURL\u94fe\u63a5\u7684\u6280\u672f\u3002\u5b83\u53ef\u4ee5\u8ba9\u7528\u6237\u901a\u8fc7\u70b9\u51fb\u94fe\u63a5\u6765\u76f4\u63a5\u6253\u5f00\u5e94\u7528\u7a0b\u5e8f\uff0c\u800c\u4e0d\u9700\u8981\u4e0b\u8f7d\u548c\u5b89\u88c5\u8f6f\u4ef6\u3002\u8fd9\u79cd\u6280\u672f\u5728\u8bb8\u591a\u573a\u5408\u90fd\u975e\u5e38\u6709\u7528\uff0c\u4f8b\u5982\u5728\u7f51\u7ad9\u4e0a\u63d0\u4f9b<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[980,981,979,291,300],"topic":[],"class_list":["post-404","post","type-post","status-publish","format-standard","hentry","category-exekf","tag-exe","tag-981","tag-979","tag-291","tag-300"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/404","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=404"}],"version-history":[{"count":0,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/404\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=404"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}