将额外的数据添加到exe的末尾是否安全?

编程入门 行业动态 更新时间:2024-10-21 16:31:08
本文介绍了将额外的数据添加到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的末尾是否安全?

本文发布于:2023-11-27 08:09:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637218.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:末尾   数据   exe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!