如何从RAM中的缓冲区(数据)运行exe文件? [英] How to run an exe file from buffer (data) in RAM?

查看:104
本文介绍了如何从RAM中的缓冲区(数据)运行exe文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以真主的名义



玩得开心



我正在努力项目,现在我需要帮助。



首先你看我理解的事情是什么?

在窗口当我们双击一个文件(例如exe)操作系统将文件的缓冲区(存储在文件中的字符数组)加载到RAM然后运行它。

现在我想这样做。

实际上我要在字符串变量(char数组)中运行时加载文件的缓冲区,然后删除文件,最后从缓冲区执行文件,以便硬盘中没有更多文件。 />


我尝试了什么:



我搜索了有关便携式exe文件并从中运行缓冲区,但我找不到代码或只为csharp和基本的.net exe获取代码。



你能解释一下我的解决方案是什么吗? />


提前致谢

解决方案

如果没有编写完整的PE加载程序和地址重定位器,则无法执行此操作。请参阅 LoadLibraryEx功能(Windows) [ ^ ]。

In the name of allah

have a good time

I'm working on a project and now i need help.

At first you look that am i understood a matter?
In the windows When we double click on a file (for example exe) the operation system will load the file's buffer (array of characters stored in the file) to RAM and then run it.
Now i want to do this.
In fact i'm going to load buffer of file in run time in the string variable(array of char) then delete the file and finally execute the file from buffer so that there is no more file in hard.

What I have tried:

I searched about portable exe and run from buffer,but i couldn't find code or got a code just for .net exe for csharp and basic.

Can you explain for me what's the solution?

Thanks in advance

解决方案

Without writing a complet PE loader and address relocator you cannot do it. See LoadLibraryEx function (Windows)[^].


这篇关于如何从RAM中的缓冲区(数据)运行exe文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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