将文件解压缩到内存然后运行它们(如thinstall) [英] Unpack Files to memory and then run them (like thinstall)

查看:237
本文介绍了将文件解压缩到内存然后运行它们(如thinstall)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




无论如何都可以将文件加载到内存然后从那里运行

?我正在使用文件压缩器

www。 nemokprod.go.ro/nb.htm )可以压缩和加密并保存多个文件作为exe文件然后运行压缩文件

将它们解压缩到临时文件夹后。问题是我必须将
解压缩到硬盘然后从那里运行它们,使得它们很容易受到用户的攻击,可能会试图获得原始文件(未受保护)

文件。


因此用户无权访问

背景中的文件操作。因此,我需要将原始解压缩的文件保留在用户的隐藏状态,直到它们被解包器打开然后删除。

因此用户应该没有任何访问权限到文件(不应该看到

,打开它们,不应该修改或复制它们)但是

解包器应该能够运行它们。 (这就是为什么我认为

内存是最好的解决方案)


所以有什么方法可以保护它们,比如将它们直接打包到

内存然后从那里运行它们?在
内存中的虚拟磁盘?


谢谢。

Hi,

Is it possible in anyway to load a file into memory and then run it
from there? I am working on a file compressor
(www.nemokprod.go.ro/nb.htm) that can compress and encrypt and save
multiple files as an exe file that can then run the compressed files
after unpacking them to a temp folder. The problem is that I have to
unpack the files to the hard-disk and then run them from there, making
them vulnerable to user that may try to get the original (unprotected)
files.

So the user shouldn''t have access to the file operations in the
background. So I need to keep the original unpacked files hidden from
the user, until after they are opened by the unpacker and then deleted.
So users should have no kind of access to the files (should not see
them, open them, should not be able to modify or copy them) but the
unpacker should be able to run them. (that is why I think that the
memory is the best solution)

So is there any way to protect them, like unpacking them directly to
memory and then run them from there? Something like a virtual disk in
memory?

Thanks.

推荐答案

Nemok写道:
无论如何都可以将文件加载到内存然后从那里运行它?


一切皆有可能。 C ++是一种通用编程语言

可以帮助你做任何事情。

我正在使用文件压缩器
www.nemokprod.go.ro/nb.htm )可以压缩,加密和保存
多个文件作为exe文件,然后可以在将它们解压缩到临时文件夹后运行压缩文件。问题是我必须将文件解压缩到硬盘上,然后从那里运行它们,使得它们容易受到用户的攻击,可能会尝试获取原始(未受保护的)文件。


好​​的。一个明显的问题。

因此用户不应该在
后台访问文件操作。所以我需要保持原始的解压缩文件对用户隐藏,直到它们被解包器打开然后删除。
因此用户应该无法访问这些文件(不应该看到
他们,打开它们,不应该修改或复制它们)但是
解包器应该能够运行它们。 (这就是为什么我认为
内存是最好的解决方案)


我想是一个有效的解决方案。


如何与C ++有关,我还不确定。你有一个C ++

*语言*问题吗?

所以有什么方法可以保护它们,比如将它们直接解压缩到内存然后从中运行它们那里?像内存中的虚拟磁盘一样?
Is it possible in anyway to load a file into memory and then run it
from there?
Everything is possible. C++ is a general-purpose programming language
that can help you do just about anything.
I am working on a file compressor
(www.nemokprod.go.ro/nb.htm) that can compress and encrypt and save
multiple files as an exe file that can then run the compressed files
after unpacking them to a temp folder. The problem is that I have to
unpack the files to the hard-disk and then run them from there, making
them vulnerable to user that may try to get the original (unprotected)
files.
OK. An obvious problem.
So the user shouldn''t have access to the file operations in the
background. So I need to keep the original unpacked files hidden from
the user, until after they are opened by the unpacker and then deleted.
So users should have no kind of access to the files (should not see
them, open them, should not be able to modify or copy them) but the
unpacker should be able to run them. (that is why I think that the
memory is the best solution)
A valid solution, I suppose.

How is all that relevant to C++ I am not sure yet. Do you have a C++
*language* question?
So is there any way to protect them, like unpacking them directly to
memory and then run them from there? Something like a virtual disk in
memory?




这些问题无法在这个新闻组的范围内回答。

如果我是推测,然后我会说,是的,可能,如果可以获得内存虚拟磁盘的设施。当然,它与C ++语言没有任何关系,因此无关紧要。找个更好的地方

问这些问题。我建议从一个专门用于运行你的程序的
操作系统的新闻组开始。


V



These questions cannot be answered within the scope of this newsgroup.
If I were to speculate, then I''d say, yes, probably, if the facility of
''virtual disk in memory'' is available. Of course, it all has nothing
to do with C++ language and therefore off-topic. Find a better place to
ask those questions. I suggest starting in a newsgroup dedicated to the
OS on which you''re going to be running your program.

V


Nemok写道:


无论如何都可以将文件加载到内存然后运行它来自那里?我正在使用文件压缩器
www.nemokprod.go。 ro / nb.htm )可以压缩,加密和保存多个文件作为exe文件,然后可以在将它们解压缩到临时文件夹后运行压缩文件。问题是我必须将文件解压缩到硬盘上,然后从那里运行它们,使得它们容易受到用户的攻击,可能会尝试获取原始(未受保护的)文件。

因此用户不应该在
后台访问文件操作。所以我需要保持原始的解压缩文件对用户隐藏,直到它们被解包器打开然后删除。
因此用户应该无法访问这些文件(不应该看到
他们,打开它们,不应该修改或复制它们)但是
解包器应该能够运行它们。 (这就是为什么我认为
内存是最好的解决方案)

所以有什么方法可以保护它们,比如将它们直接解压缩到内存然后从中运行它们那里?像内存中的虚拟磁盘一样?

谢谢。
Hi,

Is it possible in anyway to load a file into memory and then run it
from there? I am working on a file compressor
(www.nemokprod.go.ro/nb.htm) that can compress and encrypt and save
multiple files as an exe file that can then run the compressed files
after unpacking them to a temp folder. The problem is that I have to
unpack the files to the hard-disk and then run them from there, making
them vulnerable to user that may try to get the original (unprotected)
files.

So the user shouldn''t have access to the file operations in the
background. So I need to keep the original unpacked files hidden from
the user, until after they are opened by the unpacker and then deleted.
So users should have no kind of access to the files (should not see
them, open them, should not be able to modify or copy them) but the
unpacker should be able to run them. (that is why I think that the
memory is the best solution)

So is there any way to protect them, like unpacking them directly to
memory and then run them from there? Something like a virtual disk in
memory?

Thanks.




这个帖子在这个论坛上是标准的C ++以外的主题关于执行其他程序,我不知道

。您将要在新闻组中发布与您的操作系统相关的
,因为您的问题的答案将取决于如何启动进程,分配系统资源等等的
你的

系统。


修辞问题:这一切的目的是防止用户获得实际的
文件?如果是这样,一个坚定且知识渊博的用户可能仍然可以绕过你的安全措施(就像他们用来自iTunes的加密歌曲那样的b $ b)。


干杯! --M



This post is off-topic in this forum since standard C++ doesn''t know
about executing other programs. You''ll want to post in a newsgroup
related to your OS since the answer to your questions will be dependent
on how processes are started, allocated system resources, etc. on your
system.

Rhetorical question: Is the purpose of all this to prevent the user
from getting the actual files? If so, a determined and knowledgeable
user could probably still get around your security measures (just like
they do with encrypted songs from iTunes, etc.).

Cheers! --M


与C ++的关系是我在C ++中构建这个用于

WinXP的事实。 />
关于如何创建类似于RAM磁盘的任何想法?

Well the relation to C++ is the fact that I am building this in C++ for
WinXP.
Any ideas on how to create something similar to RAM disk?


这篇关于将文件解压缩到内存然后运行它们(如thinstall)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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