{"id":271652,"date":"2023-05-07T04:02:52","date_gmt":"2023-05-06T20:02:52","guid":{"rendered":"https:\/\/lrxjmw.cn\/lyssqumlxj.html"},"modified":"2023-05-07T04:02:52","modified_gmt":"2023-05-06T20:02:52","slug":"lyssqumlxj","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lyssqumlxj.html","title":{"rendered":"Linux\u538b\u7f29\u795e\u5668UPX\u547d\u4ee4\u8be6\u89e3"},"content":{"rendered":"

UPX\uff08Ultimate Packer for eXecutables\uff09\u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u53ef\u6267\u884c\u6587\u4ef6\u538b\u7f29\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5c06\u53ef\u6267\u884c\u6587\u4ef6\u538b\u7f29\u6210\u66f4\u5c0f\u7684\u4f53\u79ef\uff0c\u540c\u65f6\u4e0d\u5f71\u54cd\u7a0b\u5e8f\u7684\u8fd0\u884c\u6548\u679c\u3002\u5728Linux<\/a>\u73af\u5883\u4e0blinux upx \u4f7f\u7528\u547d\u4ee4<\/a><\/strong>\uff0cUPX\u4e5f\u662f\u4e00\u4e2a\u975e\u5e38\u6709\u7528\u7684\u5de5\u5177\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528UPX\u547d\u4ee4\u5bf9Linux\u4e0b\u7684\u53ef\u6267\u884c\u6587\u4ef6\u8fdb\u884c\u538b\u7f29\u3002<\/p>\n

\u4e00\u3001\u5b89\u88c5UPX<\/b><\/p>\n

\u5728Ubuntu\u6216Debian\u7cfb\u7edf<\/a>\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5UPX\uff1a<\/p>\n

\n

\nsudo apt-get install upx-ucl\n<\/pre>\n<\/p>\n

\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f\u5176\u4ed6Linux\u53d1\u884c\u7248linux upx \u4f7f\u7528\u547d\u4ee4<\/strong>\uff0c\u8bf7\u53c2\u8003\u76f8\u5e94\u7684\u5b89\u88c5\u65b9\u6cd5\u3002<\/p>\n

\u4e8c\u3001\u4f7f\u7528UPX\u538b\u7f29\u53ef\u6267\u884c\u6587\u4ef6<\/b><\/p>\n

\u4f7f\u7528UPX\u538b\u7f29\u53ef\u6267\u884c\u6587\u4ef6\u975e\u5e38\u7b80\u5355\u3002\u53ea\u9700\u8981\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

\n

\nupx \u53ef\u6267\u884c\u6587\u4ef6\u540d\n<\/pre>\n<\/p>\n

\u4f8b\u5982\uff0c\u5982\u679c\u8981\u538b\u7f29\u540d\u4e3amyapp\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u53ef\u4ee5\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

\nupx myapp\n<\/pre>\n<\/p>\n

\u8fd9\u5c06\u4f1a\u5bf9myapp\u8fdb\u884c\u538b\u7f29\uff0c\u5e76\u751f\u6210\u4e00\u4e2a\u540d\u4e3amyapp.upx\u7684\u538b\u7f29\u540e\u6587\u4ef6\u3002<\/p>\n

\u4e09\u3001\u67e5\u770b\u538b\u7f29\u524d\u540e\u6587\u4ef6\u5927\u5c0f<\/b><\/p>\n

\u53ef\u4ee5\u4f7f\u7528ls\u547d\u4ee4\u67e5\u770b\u538b\u7f29\u524d\u540e\u6587\u4ef6\u5927\u5c0f\uff1a<\/p>\n

\n

\nls -lh \u53ef\u6267\u884c\u6587\u4ef6\u540d*\n<\/pre>\n<\/p>\n

\u4f8b\u5982\uff0c\u5982\u679c\u8981\u67e5\u770bmyapp\u548cmyapp.upx\u7684\u5927\u5c0f\uff0c\u53ef\u4ee5\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

\nls -lh myapp*\n<\/pre>\n<\/p>\n

linux upx \u79fb\u690d_\u6613\u8bed\u8a00upx\u538b\u7f29\u58f3\u547d\u4ee4_linux upx \u4f7f\u7528\u547d\u4ee4<\/p>\n

\u8fd9\u5c06\u4f1a\u5217\u51famyapp\u548cmyapp.upx\u4e24\u4e2a\u6587\u4ef6\u7684\u5927\u5c0f\uff0c\u4ee5\u53ca\u5176\u4ed6\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n

\u56db\u3001UPX\u538b\u7f29\u540e\u6587\u4ef6\u7684\u4f7f\u7528<\/b><\/p>\n

\u538b\u7f29\u540e\u7684\u6587\u4ef6\u53ef\u4ee5\u50cf\u666e\u901a\u53ef\u6267\u884c\u6587\u4ef6\u4e00\u6837\u4f7f\u7528\u3002\u53ea\u9700\u8981\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

\n

\n.\/myapp.upx\n<\/pre>\n<\/p>\n

\u6ce8\u610f\uff0c\u5982\u679c\u9700\u8981\u5c06\u538b\u7f29\u540e\u7684\u6587\u4ef6\u4f20\u8f93\u5230\u5176\u4ed6\u7cfb\u7edf\u4e0a\uff0c\u9700\u8981\u786e\u4fdd\u76ee\u6807\u7cfb\u7edf\u4e0a\u5b89\u88c5\u4e86UPXlinux\u5e38\u7528\u547d\u4ee4\uff0c\u5426\u5219\u65e0\u6cd5\u6b63\u786e\u8fd0\u884c\u3002<\/p>\n

\u4e94\u3001UPX\u547d\u4ee4\u53c2\u6570<\/b><\/p>\n

UPX\u547d\u4ee4\u6709\u5f88\u591a\u53c2\u6570\u53ef\u4ee5\u4f7f\u7528\uff0c\u4e0b\u9762\u5217\u4e3e\u4e00\u4e9b\u5e38\u7528\u7684\u53c2\u6570\uff1a<\/p>\n

linux upx \u4f7f\u7528\u547d\u4ee4_linux upx \u79fb\u690d_\u6613\u8bed\u8a00upx\u538b\u7f29\u58f3\u547d\u4ee4<\/p>\n

--k\uff1a\u4fdd\u7559\u539f\u59cb\u6587\u4ef6\uff0c\u4e0d\u5220\u9664\uff1b<\/p>\n

--d\uff1a\u89e3\u538b\u7f29\u6587\u4ef6\uff1b<\/p>\n

--q\uff1a\u9759\u9ed8\u6a21\u5f0f\uff0c\u4e0d\u8f93\u51fa\u4efb\u4f55\u4fe1\u606f\uff1b<\/p>\n

--v\uff1a\u663e\u793a\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n

\u516d\u3001UPX\u538b\u7f29\u7b56\u7565<\/b><\/p>\n

UPX\u63d0\u4f9b\u4e86\u591a\u79cd\u538b\u7f29\u7b56\u7565\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u4e0d\u540c\u7684\u7b56\u7565\u3002\u4e0b\u9762\u5217\u4e3e\u4e00\u4e9b\u5e38\u7528\u7684\u538b\u7f29\u7b56\u7565\uff1a<\/p>\n

---best\uff1a\u6700\u4f73\u538b\u7f29\u7387\uff1b<\/p>\n

\u6613\u8bed\u8a00upx\u538b\u7f29\u58f3\u547d\u4ee4_linux upx \u4f7f\u7528\u547d\u4ee4_linux upx \u79fb\u690d<\/p>\n

---ultra-brute\uff1a\u6700\u9ad8\u538b\u7f29\u7387\uff0c\u4f46\u901f\u5ea6\u8f83\u6162\uff1b<\/p>\n

---ultra\uff1a\u9ad8\u538b\u7f29\u7387\uff0c\u901f\u5ea6\u8f83\u5feb\uff1b<\/p>\n

---brute\uff1a\u66f4\u5feb\u901f\u7684\u9ad8\u538b\u7f29\u7387\u3002<\/p>\n

\u4e03\u3001UPX\u4e0e\u9759\u6001\u94fe\u63a5\u5e93<\/b><\/p>\n

\u5982\u679c\u53ef\u6267\u884c\u6587\u4ef6\u4f7f\u7528\u4e86\u9759\u6001\u94fe\u63a5\u5e93\uff0cUPX\u538b\u7f29\u540e\u7684\u6587\u4ef6\u53ef\u80fd\u4f1a\u5b58\u5728\u95ee\u9898\u3002\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u89e3\u51b3\uff1a<\/p>\n

\n

\nupx --best --ultra-brute \u53ef\u6267\u884c\u6587\u4ef6\u540d-o\u538b\u7f29\u540e\u6587\u4ef6\u540d\n<\/pre>\n<\/p>\n

\u516b\u3001UPX\u4e0e\u52a8\u6001\u94fe\u63a5\u5e93<\/b><\/p>\n

\u6613\u8bed\u8a00upx\u538b\u7f29\u58f3\u547d\u4ee4_linux upx \u79fb\u690d_linux upx \u4f7f\u7528\u547d\u4ee4<\/p>\n

\u5982\u679c\u53ef\u6267\u884c\u6587\u4ef6\u4f7f\u7528\u4e86\u52a8\u6001\u94fe\u63a5\u5e93\uff0cUPX\u538b\u7f29\u540e\u7684\u6587\u4ef6\u4e5f\u53ef\u80fd\u4f1a\u5b58\u5728\u95ee\u9898\u3002\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u89e3\u51b3\uff1a<\/p>\n

\n

\nupx --best --ultra-brute --lzma \u53ef\u6267\u884c\u6587\u4ef6\u540d-o\u538b\u7f29\u540e\u6587\u4ef6\u540d\n<\/pre>\n<\/p>\n

\u4e5d\u3001UPX\u4e0e\u52a0\u5bc6<\/b><\/p>\n

UPX\u63d0\u4f9b\u4e86\u52a0\u5bc6\u9009\u9879\u7ea2\u65d7linux\uff0c\u53ef\u4ee5\u5c06\u538b\u7f29\u540e\u7684\u53ef\u6267\u884c\u6587\u4ef6\u52a0\u5bc6\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n

\n

\nupx --best --ultra-brute --lzma --overlay=strip --compress-exports=0--encrypt=rc4 \u53ef\u6267\u884c\u6587\u4ef6\u540d-o\u538b\u7f29\u540e\u6587\u4ef6\u540d\n<\/pre>\n<\/p>\n

\u5341\u3001UPX\u4e0e\u53cd\u75c5\u6bd2\u8f6f\u4ef6<\/b><\/p>\n

\u7531\u4e8eUPX\u538b\u7f29\u540e\u7684\u53ef\u6267\u884c\u6587\u4ef6\u5177\u6709\u4e00\u5b9a\u7684\u7279\u6b8a\u6027\uff0c\u53ef\u80fd\u4f1a\u88ab\u4e00\u4e9b\u53cd\u75c5\u6bd2\u8f6f\u4ef6\u8bef\u5224\u4e3a\u75c5\u6bd2\u3002\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u7ed5\u8fc7\u53cd\u75c5\u6bd2\u8f6f\u4ef6\u7684\u68c0\u6d4b\uff1a<\/p>\n

\n

\nupx --best --ultra-brute --lzma --overlay=strip -k\u53ef\u6267\u884c\u6587\u4ef6\u540d\n<\/pre>\n<\/p>\n

\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728Linux\u4e0b\u8f7b\u677e\u5730\u4f7f\u7528UPX\u5bf9\u53ef\u6267\u884c\u6587\u4ef6\u8fdb\u884c\u538b\u7f29\uff0c\u4ece\u800c\u51cf\u5c0f\u7a0b\u5e8f\u7684\u4f53\u79ef\uff0c\u63d0\u9ad8\u8fd0\u884c\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

eXecutables\uff09\u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u53ef\u6267\u884c\u6587\u4ef6\u538b\u7f29\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5c06\u53ef\u6267\u884c\u6587\u4ef6\u538b\u7f29\u6210\u66f4\u5c0f\u7684\u4f53\u79ef\uff0c\u540c\u65f6\u4e0d\u5f71\u54cd\u7a0b\u5e8f\u7684\u8fd0\u884c\u6548\u679c\u3002\u4f7f\u7528UPX\u538b\u7f29\u53ef\u6267\u884c\u6587\u4ef6\u975e\u5e38\u7b80\u5355\u3002upx\u7684\u538b\u7f29\u540e\u6587\u4ef6\u3002\u53ef\u4ee5\u4f7f\u7528ls\u547d\u4ee4\u67e5\u770b\u538b\u7f29\u524d\u540e\u6587\u4ef6\u5927\u5c0f\uff1aupx\u7684\u5927\u5c0f\uff0c\u53ef\u4ee5\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u7ed5\u8fc7\u53cd\u75c5\u6bd2\u8f6f\u4ef6\u7684\u68c0\u6d4b\uff1a\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728Linux\u4e0b\u8f7b\u677e\u5730\u4f7f\u7528UPX\u5bf9\u53ef\u6267\u884c\u6587\u4ef6\u8fdb\u884c\u538b\u7f29\uff0c\u4ece\u800c\u51cf\u5c0f\u7a0b\u5e8f\u7684\u4f53\u79ef\uff0c\u63d0\u9ad8\u8fd0\u884c\u6548\u7387\u3002<\/p>\n","protected":false},"author":1,"featured_media":271653,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-271652","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/271652","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=271652"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/271652\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/271653"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=271652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=271652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=271652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}