Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, i want to create a program to run and isolate a process in sandbox ( portable ) without write any files to the system or registry, like JauntePE
So any help will be appreciated.
thanks
Posted
Comments
[no name] 8-Jul-12 7:33am    
You want to write a virtual machine?
Leecherman 8-Jul-12 23:39pm    
No not a virtual machine, i want to do a portable launcher for any executable like this:

Run "firefox.exe" or any executable in isolated mode without saving any files to system folder or registry.

is this possible?
[no name] 9-Jul-12 6:55am    
"Run "firefox.exe" or any executable in isolated mode" ... yes of course it's possible. It's called a virtual machine.
Leecherman 9-Jul-12 11:18am    
OK, but how?
IMO virtual machine is like VMWare that runs MS windows etc.
Sandeep Mewara 8-Jul-12 8:19am    
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.

Apps like JauntePE use 2 things to form the basis of their portablization of an app - dll injection and api hooking. If you can find/write VB code to handle these 2 things, then yes, it's possible to do what you want.

BTW guys, apps like JauntePE are not virtual machines. All they do is redirect an app's OS api calls into their own code within the injected dll, which then either completely handles the entire process, like JauntePE does for registry api use, or makes a simple change to the call's parameters, like JauntePE does for file system api use, or some combo of the two. Thinstall (aka ThinApp), for example, does the same thing but handles the calls completely because they have their own file system embedded within their portable packages. They also have their own loader so they can get around other areas that apps like JauntePE have trouble with.

I forgot to add that there is a C# based api hooking article on CodeProject at EasyHook - The reinvention of Windows API hooking[^]. Its current home is on CodePlex at http://www.codeplex.com/easyhook[^]. According to the writeup, it does what Mr. Kreskowiak suggests is needed, e.g., "EasyHook provides a way to hook unmanaged code from a managed environment." I can't find any mention of VB.NET though.
 
Share this answer
 
v3
Based on what pullbug said, no it's not possible to do in VB.NET, C#, or any other language targeting the .NET Framework.

Why? Because the .NET CLR does not support the exports required to make code injection into unmanaged code work.

You'll have to write the code that does this heavy lifting in C/C++.

I would also HIGHLY recommend getting the latest Windows Internals[^] book, which is now a 2 volume set, to support writing this. What you are venturing into is NOT for the beginner. You either know how the Windows Kernel works or you're going to fail at this project.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900