is there any way to create a new Process from a Stream? [modified]
-
alternative for this:
MemoryStream ms = new MemoryStream();
ms.Write("one exe file");
Process.Start(ms);:)) i have an encoded exe, i want to decode it on memorystream and then run it, so nobody can see original exe file! so i can not use a temp file on HDD! other way?
modified on Tuesday, September 8, 2009 10:06 AM
-
alternative for this:
MemoryStream ms = new MemoryStream();
ms.Write("one exe file");
Process.Start(ms);:)) i have an encoded exe, i want to decode it on memorystream and then run it, so nobody can see original exe file! so i can not use a temp file on HDD! other way?
modified on Tuesday, September 8, 2009 10:06 AM
-
alternative for this:
MemoryStream ms = new MemoryStream();
ms.Write("one exe file");
Process.Start(ms);:)) i have an encoded exe, i want to decode it on memorystream and then run it, so nobody can see original exe file! so i can not use a temp file on HDD! other way?
modified on Tuesday, September 8, 2009 10:06 AM
This may sound like a stupid question, but why would you want to do that? If you have the process name, path and parameters why put it to a stream fisrt? If the stream contains more than the name, path and parameters, then what do you expect to happen with the excess data?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced. This message is made of fully recyclable Zeros and Ones
-
alternative for this:
MemoryStream ms = new MemoryStream();
ms.Write("one exe file");
Process.Start(ms);:)) i have an encoded exe, i want to decode it on memorystream and then run it, so nobody can see original exe file! so i can not use a temp file on HDD! other way?
modified on Tuesday, September 8, 2009 10:06 AM
There is no other way. You have to write it to a temporary file. Besides, if your app requires that kind of security, you're still not going to stop the right person from grabbing it straight out of memory.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
alternative for this:
MemoryStream ms = new MemoryStream();
ms.Write("one exe file");
Process.Start(ms);:)) i have an encoded exe, i want to decode it on memorystream and then run it, so nobody can see original exe file! so i can not use a temp file on HDD! other way?
modified on Tuesday, September 8, 2009 10:06 AM
you might create a (temporary) memory-resident file system, create a file in there, and execute it. Google + some stamina required. klik[^] :)
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
modified on Tuesday, September 8, 2009 1:04 PM
-
you might create a (temporary) memory-resident file system, create a file in there, and execute it. Google + some stamina required. klik[^] :)
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
modified on Tuesday, September 8, 2009 1:04 PM
Luc Pattyn wrote:
you might create a (temporary) memory-resident file system, create a file in there, and execute it. Google + some stamina required.
I was going to suggest writing his own Loader in place of Windows version, but I thought it would have been a bit too overboard. ;)
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
Luc Pattyn wrote:
you might create a (temporary) memory-resident file system, create a file in there, and execute it. Google + some stamina required.
I was going to suggest writing his own Loader in place of Windows version, but I thought it would have been a bit too overboard. ;)
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...Dave Kreskowiak wrote:
a bit too overboard.
Nah. If and when we go too overboard, we get a "plz send me the code" reply to straighten us out. :laugh:
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.