使程序文件大几个字节 [英] make program file a few bytes larger

查看:74
本文介绍了使程序文件大几个字节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的程序文件是602,384字节,但我希望它是602,624,以便它与其他东西完全吻合,但每当我添加一个对程序没有影响的随机函数时,它或者什么都不做或直接转到602,896字节太多了。


有没有办法一次添加一个字节?

解决方案

< blockquote class =post_quotes>
你好我的程序文件是602,384字节,但我希望它是602,624,这样它就能完全适合其他东西,但每当我添加一个对程序没有影响的随机函数时要么什么都不做,要么直接转到602,896字节太多了。


有没有办法一次添加一个字节?



为什么要这样做?


亲切的问候,


Jos



你为什么要那样做?


亲切的问候,


Jos



windows xp中的autoconv.exe是602624字节,我正在帮助提高网络的安全性。我们当前使用软件限制策略,并且哈希规则对文件中的字节数执行加密计算。允许Autoconv.exe运行,这意味着任何具有完全相同字节数的文件也可以运行,无论它位于我想运行程序的计算机硬盘上的哪个位置。软件限制策略哈希规则依赖于以下事实:计算机上的任何其他文件都不太可能在文件中具有相同的字节数。网络管理员允许我找到解决他的安全问题的方法,然后向他汇报。我希望能够给他一个文件,尽管他的软件限制策略将会运行,但文件需要602624字节,并且由于各种原因,它不能低于程序的主要功能。


希望有意义



希望有意义



是的,这很有道理;在程序中添加一个初始化的char数组,例如

展开 | 选择 | Wrap | 行号


Hi my program file is 602,384 bytes, but I want it to be 602,624 so that it fits perfectly with something else, however whenever I add a random function that has no affect on the program it either does nothing or goes straight to 602,896 bytes which is too much.

Is there any way to add one byte at a time or something?

解决方案

Hi my program file is 602,384 bytes, but I want it to be 602,624 so that it fits perfectly with something else, however whenever I add a random function that has no affect on the program it either does nothing or goes straight to 602,896 bytes which is too much.

Is there any way to add one byte at a time or something?

Why do you want to do that?

kind regards,

Jos


Why do you want to do that?

kind regards,

Jos

Well autoconv.exe in windows xp is 602624 bytes and I am helping to increase security on a network. We currently use a software restriction policy and the hash rule performs a cryptographic calculation on the number of bytes in a file. Autoconv.exe is allowed to run, meaning any file with the exact same number of bytes is allowed to run also, no matter where it is located on the hard drive of the computer I want to run my program on. The software restriction policy hash rule relies on the fact that it is very unlikely any other file on the computer will have the same number of bytes in the file. The administrator of the network is allowing me to find ways round his security and then report back to him. I want to be able to give him a file which will operate despite his software restriction policy, but the file needs 602624 bytes and it can''t be any lower for various reasons to do with the main function of the program.

Hope that makes sense


Hope that makes sense

Yep, it makes sense; add an initialized char array to your program, e.g.

Expand|Select|Wrap|Line Numbers


这篇关于使程序文件大几个字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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