Sandboxie Portable
Sandboxie Portable
wraithdu at the Sandboxie forum has come up with a portable version of Sandboxie. I'm not 100% sure it's portable, but it seems pretty solid.
For those of you who don't know what Sandboxie is, it traps all of a program's I/O in a transient storage area, thus allowing you to run any app without letting it touch your computer in any way.
The program is donationware, but no registration is required to download/run the program.
Installation goes something like this:
• Download Sandboxie from Here
• Download SandboxiePortable from one of the following locations: Mirror1, Mirror2, Mirror3
• Extract SandboxiePortable to a location of your choosing
• Open the Sandboxie installer with 7zip and extract all files in the root directory to 'App\Sandboxie'
• Open the '$PLUGINSDIR' folder from the archive, and extract 'kmdutil.exe' to the same directory.
• If it's the first time you've done this installation, rename 'Sandboxie_default.ini' to 'Sandboxie.ini'
Run 'SandboxiePortable.exe' to launch the program.
Additional instructions are located in the README.txt packaged with SandboxiePortable.
I also coded a secondary launcher which re-writes the Sandboxie.ini file upon each launch so that the sandbox location is on your portable drive...
Here's how to use that script:
• Copy the contents of http://trappar.net/sandboxlauncher.txt into your favorite text editor and save it as 'Launcher.au3' in your root Sandboxie folder.
• Use Aut2exe (Distributed with AutoIt) to compile the script you just saved into 'Launcher.exe' located in the root of your Sandboxie folder.
Run Launcher.exe and pray that my configuration works with your setup, worst that's going to happen is you'll have to replace your Sandboxie.ini file located in 'App\Sandboxie'
Everything works great for me, I'd love to hear how it works for you guys.
For those of you who don't know what Sandboxie is, it traps all of a program's I/O in a transient storage area, thus allowing you to run any app without letting it touch your computer in any way.
The program is donationware, but no registration is required to download/run the program.
Installation goes something like this:
• Download Sandboxie from Here
• Download SandboxiePortable from one of the following locations: Mirror1, Mirror2, Mirror3
• Extract SandboxiePortable to a location of your choosing
• Open the Sandboxie installer with 7zip and extract all files in the root directory to 'App\Sandboxie'
• Open the '$PLUGINSDIR' folder from the archive, and extract 'kmdutil.exe' to the same directory.
• If it's the first time you've done this installation, rename 'Sandboxie_default.ini' to 'Sandboxie.ini'
Run 'SandboxiePortable.exe' to launch the program.
Additional instructions are located in the README.txt packaged with SandboxiePortable.
I also coded a secondary launcher which re-writes the Sandboxie.ini file upon each launch so that the sandbox location is on your portable drive...
Here's how to use that script:
• Copy the contents of http://trappar.net/sandboxlauncher.txt into your favorite text editor and save it as 'Launcher.au3' in your root Sandboxie folder.
• Use Aut2exe (Distributed with AutoIt) to compile the script you just saved into 'Launcher.exe' located in the root of your Sandboxie folder.
Run Launcher.exe and pray that my configuration works with your setup, worst that's going to happen is you'll have to replace your Sandboxie.ini file located in 'App\Sandboxie'
Everything works great for me, I'd love to hear how it works for you guys.
- spacemonkey
- Posts: 42
- Joined: Wed Jun 06, 2007 11:09 pm
I'm pretty sure that all the files it writes to the computer are erased upon program closure. If there's an error, files will be left behind, but there is an included cleanup program if this is the case.
The only folder that isn't deleted by default is the sandbox folder, but my launcher prevents this file from being written to the host computer.
The only folder that isn't deleted by default is the sandbox folder, but my launcher prevents this file from being written to the host computer.
-
- Posts: 169
- Joined: Sun Apr 29, 2007 2:01 pm
- spacemonkey
- Posts: 42
- Joined: Wed Jun 06, 2007 11:09 pm
Code: Select all
#Include <String.au3>
$ST = _StringReverse(@AutoItExe)
$SP = StringInStr($ST, '\')
$ST = _StringReverse($ST)
$ST = StringLeft($ST, StringLen($ST)-$SP+1)
$SIni = $ST&"App\Sandboxie\Sandboxie.ini"
$boxloc = $ST&"Data"
MsgBox(0,"Test",$SIni)
MsgBox(0,"Test",$boxloc)
Code: Select all
$SIni = @Scriptdir & "App\Sandboxie\Sandboxie.ini"
$SIni = @Scriptdir & App\Sandboxie\Sandboxie.ini"
;MsgBox(0,"Test",$SIni)
;MsgBox(0,"Test",$boxloc)
try this and you dont need to rewrite and recompile the script. It will not interupt your others config in your Sandboxie.ini.
Code: Select all
#NoTrayIcon
$SIni = @ScriptDir & "App\Sandboxie\Sandboxie.ini"
$boxloc = @ScriptDir &"Data"
IniWrite ( $SIni, "GlobalSettings", "BoxRootFolder", $boxloc )
Sleep(100)
ShellExecute("SandboxiePortable.exe")
Thanks a bunch, those seem to be great fixes.
I didn't know about @ScriptDir or IniWrite, the only reason I was using notepad is because that ini is unicode, which means that if I try to edit it using regular file IO, the output file will be unreadable by sandboxie. Your solution is just what I was looking for the whole time
Thanks!
EDIT: Your script still had a couple problems, I modified it to fix them as well as implement some error trapping. Here's the new script.
I didn't know about @ScriptDir or IniWrite, the only reason I was using notepad is because that ini is unicode, which means that if I try to edit it using regular file IO, the output file will be unreadable by sandboxie. Your solution is just what I was looking for the whole time
Thanks!
EDIT: Your script still had a couple problems, I modified it to fix them as well as implement some error trapping. Here's the new script.
Code: Select all
#NoTrayIcon
$SIni=@ScriptDir&"\App\Sandboxie\Sandboxie.ini"
$boxloc=@ScriptDir&"\Data"
If IniWrite($SIni, "GlobalSettings", "BoxRootFolder", $boxloc)=0 Then
$perm = FileGetAttrib($SIni)
MsgBox(16,"IniWrite Failed!","Unable to write new settings to Sandboxie.ini"&@CRLF&"File permissions: "&$perm)
Else
Sleep(100)
ShellExecute("SandboxiePortable.exe")
EndIf
kmdutil.exe won't extract
I have been trying to use 7-Zip and UniExtract but for some reason generates an error why?
Just open the main directory in 7zip then go to the directory '$PLUGINSDIR'. You can also use UniExtract to extract the whole thing, then navigate to that directory.
If neither of those work, you could simply install the program, find KmdUtil.exe, move it to the required directory, then uninstall the program.
If neither of those work, you could simply install the program, find KmdUtil.exe, move it to the required directory, then uninstall the program.
-Corrupt File-
I tried that too, plus the file doesn't seem to be a correct .exe
What version of Sandboxie did you guys use to create the Portable Version? I have used 3.01 and for some reason even trying to open kmdutil.exe generates a warning of 'missing command'
I took your advice and installed to C:/ but kmdutil.exe doesn't seem to be embedded.
I need help as I am nearly there of creating a 99% secure USB Portable Drive for travelling around Europe
What version of Sandboxie did you guys use to create the Portable Version? I have used 3.01 and for some reason even trying to open kmdutil.exe generates a warning of 'missing command'
I took your advice and installed to C:/ but kmdutil.exe doesn't seem to be embedded.
I need help as I am nearly there of creating a 99% secure USB Portable Drive for travelling around Europe