将额外的数据添加到exe的末尾是否安全? [英] Is it safe to add extra data to end of exe?

查看:124
本文介绍了将额外的数据添加到exe的末尾是否安全?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想向我的exe添加可变长度的userdata.例如,我不想每次进行快速测试以供某人查看时都更改构建版本.我想添加git/mercurial分支信息,如果我没有在exe中存储/可用的构建选项,则可能要构建选项.这样,我可以将exe放入util中,并获取所需的数据.

I want to add a variable length userdata to my exe. For example I don't want to change the build version everytime i hand a quick test for someone to look at. I'd like to add the git/mercurial branch info and maybe build options if i don't have build options stored/available in the exe. This way i can put the exe in a util and get data i need.

是否可以在exe末尾添加额外的数据?这可能是使用Visual Studio或gcc构建的Windows C ++ exe,也可能是.NET应用程序

Would adding extra data to the end of an exe be ok? It would be a windows C++ exe build with visual studios or gcc or it may be a .NET application

推荐答案

某些病毒检查程序可能会在这种情况下触发(在您自己的计算机上,如果有的话,或者在目标计算机上).

Some virus checkers will probably trigger on this sort of thing (either on your own machine if you have one, or possibly on the target machine).

另一种方法是保留(手动或自动)发送人员可执行文件SHA1的日志.然后,可以通过计算可执行文件的SHA1并将其与日志中的条目进行比较,来查看某人正在运行的确切版本.

Another approach is to keep a (manual or automatic) log of the SHA1 of executables that you send people. Then, you can see what exact version somebody is running by calculating the SHA1 of their executable and comparing it to the entries in your log.

这篇关于将额外的数据添加到exe的末尾是否安全?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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