Zip附加到Exe的结果 [英] Result of Appending Zip to Exe

查看:57
本文介绍了Zip附加到Exe的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在python中使用ZipFile对象将zip文件附加到我的一个可执行文件中以供该程序访问,但我不知道该zip文件在添加时会被命名。我怎么会发现这个?

I used the ZipFile object in python to append a zip file to one of my executables to be accessed by that program, but I don't know what that zip file gets named as it is added. How would I find this out?

推荐答案

我确定这是一个坏主意。可执行文件在构建后永远不会被修改。此外,数字签名技术非常有效地防止了这种操作,因为这是一种非常危险的事情,因为这种修改是由病毒和其他恶意软件完成的。在可执行模块中包含ZIP或任何其他资源的合法方式是将它们包含在嵌入式资源中。



-SA
I'm sure this is a bad idea. Executable files are supposed to be never modified after they are built. Moreover, the technology of digital signature very effectively prevents such operations, as this is a very dangerous thing as such modifications are done by viruses and other malicious software. The legitimate way of including ZIP or any other resources in executable modules is including them in embedded resources.

—SA


感谢Sergey Alexandrovich Kryukov的输入,我找到了一种类似于嵌入式资源的方法,可以实现我的目标。
Thanks to the input from Sergey Alexandrovich Kryukov, I found a way to do something similar to embedded resources that makes my goal possible.


这篇关于Zip附加到Exe的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆