Feature to retain files
Feature to retain files
One feature I'd like to see for Sandboxie (which is dead-easy to implement!) is to NOT delete files after creation in the sandbox. So for example, an app might create a temp file but on exit it deletes it. Sandboxie could allow the creation, but not deletion, of such files. Would be very handy to retain those files sometimes.
All Sandboxie needs to do is deny access to any DeleteFile API calls and so on. Easy. How about it?
(PS. Yes I know an app could always use CreateFile with 0 length to "delete" a file, but still...).
All Sandboxie needs to do is deny access to any DeleteFile API calls and so on. Easy. How about it?
(PS. Yes I know an app could always use CreateFile with 0 length to "delete" a file, but still...).
-
- Posts: 2690
- Joined: Tue Dec 26, 2006 5:44 pm
- Location: West Florida
-
- Posts: 2690
- Joined: Tue Dec 26, 2006 5:44 pm
- Location: West Florida
Haha, not much to say really, just think about it.
When he runs this program sandboxed, it creates these temp files in the sandbox. When he closes the program, it deletes the temp files from the sandbox.
So obviously, the work around, would be to run the program sandboxed, then explore contents of sandbox, grab the temp files you want, then you can close the program and/or delete the sandbox and you'll have your temp files.
When he runs this program sandboxed, it creates these temp files in the sandbox. When he closes the program, it deletes the temp files from the sandbox.
So obviously, the work around, would be to run the program sandboxed, then explore contents of sandbox, grab the temp files you want, then you can close the program and/or delete the sandbox and you'll have your temp files.
And this is funny, why? There may indeed be others wanting this feature, so one has to publically post it to judge a response. Or is tzuk a mind-reader and knows my request before I post it?SnDPhoenix wrote:Haha GOLD!
Thank you! See, we've now proven that more than one person would like it.Buster wrote:I would be interested in this feature too.
Fair enough. But what about apps that create temp files and delete them before exiting? I'm interested in retaining those too, but didn't mention that specifically in my original post (sorry), as my original post used the create-and-delete-at-exit as just one simple example.SnDPhoenix wrote:run the program sandboxed, then explore contents of sandbox
-
- Posts: 2690
- Joined: Tue Dec 26, 2006 5:44 pm
- Location: West Florida
It is funny for reasons only Mitch, Oneder and I would know about.SJ2571 wrote:And this is funny, why?SnDPhoenix wrote:Haha GOLD!
Ok fair enough, but I was thinking and I just remembered something, I dont remember the exact details, but didn't tzuk and some other members mention that when a file is deleted from the sandbox, it isn't actually deleted, it is just marked deleted?But what about apps that create temp files and delete them before exiting? I'm interested in retaining those too, but didn't mention that specifically in my original post (sorry), as my original post used the create-and-delete-at-exit as just one simple example.
If thats the case then regardless whether the program deletes the files before exiting, or after exiting, they should still be in the box?
Otherwise, I see what you mean then, but I still dont think enough people want this feature for it to be incorporated by tzuk.
SJ2571 and Buster, my initial response was tongue-in-cheek, but I did not expect it to be taken as a call for more compelling arguments why this feature should be added to Sandboxie.
I consider this request to fall in the category of requests for features about monitoring or analysing the behavior of other programs. That these programs may run under Sandboxie is a coincidental issue here. The way I see it, the request is really "I'd like to prevent a program from deleting files" rather than "I'd like to prevent a sandboxed program from deleting files."
I consider this request to fall in the category of requests for features about monitoring or analysing the behavior of other programs. That these programs may run under Sandboxie is a coincidental issue here. The way I see it, the request is really "I'd like to prevent a program from deleting files" rather than "I'd like to prevent a sandboxed program from deleting files."
That has changed a while ago. Sandboxed files are now really deleted, unless there is a corresponding file outside the sandbox.SnDPhenoix wrote:I dont remember the exact details, but didn't tzuk and some other members mention that when a file is deleted from the sandbox, it isn't actually deleted, it is just marked deleted?
tzuk
In my case I´ld like the feature because I want to have the possibility of preventing sandboxed programs from deleting files.
Why?
Some malwares, for whatever reason, during their installation on a system abort it and delete extracted contents.
For me would be pretty interesting to be able to keep the files that malwares create and try to delete.
I believe other malware researchers would find interesting too that ability in Sandobie.
Why?
Some malwares, for whatever reason, during their installation on a system abort it and delete extracted contents.
For me would be pretty interesting to be able to keep the files that malwares create and try to delete.
I believe other malware researchers would find interesting too that ability in Sandobie.
-
- Posts: 2690
- Joined: Tue Dec 26, 2006 5:44 pm
- Location: West Florida
I had quite a bit of 10 cane rum, 3 vodka, grey goose and guiness beer a few hours ago already, seo excuse me -snipped...
*Edit*
Sorry guys, nevermind what I typed...
*Edit*
Sorry guys, nevermind what I typed...
Last edited by SnDPhoenix on Wed Aug 06, 2008 11:40 pm, edited 2 times in total.
Buster, Sandboxie does not block API hooking, what are you talking about.
I just tried running sandboxed StraceNT and it works fine.
There is nothing that prevents you from writing a similar utility that intercepts the DeleteFile API and cancels the calls in some cases.
And again, there is also nothing in this feature request that has anything to do with Sandboxie.
I just tried running sandboxed StraceNT and it works fine.
There is nothing that prevents you from writing a similar utility that intercepts the DeleteFile API and cancels the calls in some cases.
And again, there is also nothing in this feature request that has anything to do with Sandboxie.
tzuk
Who is online
Users browsing this forum: No registered users and 1 guest