Zoklet.net

Go Back   Zoklet.net > Technology > Technophiles and Technophiliacs

Reply
 
Thread Tools
  #1  
Old 07-29-2009, 09:40 PM
BillGatesJR BillGatesJR is offline
Peasant
 
Join Date: Jan 2009
Thanks: 1
Thanked 5 Times in 4 Posts
Default secure deletion?

I've been playing around with some file recovery software to see how deeply they can recover deleted files, and it seems as though when you delete the file, the only thing that still exists is the file in it's latest modified state. So if you overwrite a file before deleting it, only the the replaced data will show up when you attempt to recover it. Is this a good tactic for beating police methods or can they also recover the older versions of files?

If the computer only retains the latest versions of files, then I was going to write a batch file that uses the dir command to collect all of the filenames in a directory, and then overwrite every file in the list with zeroes before deleting them.
Reply With Quote
  #2  
Old 07-29-2009, 09:54 PM
Joe Camel's Avatar
Joe Camel Joe Camel is offline
Marquis
 
Join Date: Jan 2009
Thanks: 617
Thanked 226 Times in 163 Posts
Default Re: secure deletion?

I think I read somewhere for it to be really secure you have to change every value to zero, like you said. I'm no computer scientist though. I'm interested in this too though, and I thought when you deleted something it was just hidden from the operating system, but still on the hard disk?
Reply With Quote
  #3  
Old 07-29-2009, 09:56 PM
Transparent Transparent is offline
Member
 
Join Date: Jan 2009
Thanks: 15
Thanked 27 Times in 19 Posts
Default Re: secure deletion?

I've always used Sure Delete whenever I delete sensitive material. You should test out how effective it is at deleting files permanently.
Reply With Quote
  #4  
Old 07-29-2009, 10:06 PM
BillGatesJR BillGatesJR is offline
Peasant
 
Join Date: Jan 2009
Thanks: 1
Thanked 5 Times in 4 Posts
Default Re: secure deletion?

Quote:
Originally Posted by Stendhal Syndrome View Post
I think I read somewhere for it to be really secure you have to change every value to zero, like you said. I'm no computer scientist though. I'm interested in this too though, and I thought when you deleted something it was just hidden from the operating system, but still on the hard disk?
It is still on the hard disk, hidden from the operating system like you said.

When you delete a file, the only thing REALLY being deleted is the file's namespace. (for instance, the name "C:\secretfile.txt" will be free to use when the file that this name points to is no longer on the operating system). The file itself won't be really deleted until that freed up sector is overwritten.

So the question is whether or not the original data in the file can recovered if that file was overwritten by a new file with the same exact name and extension.

If this is true, the task can easily be accomplished with a batch file. Just have the batch script delete the original file, create a new file with the same name, and then delete the new file.
Reply With Quote
  #5  
Old 07-29-2009, 10:20 PM
Joe Camel's Avatar
Joe Camel Joe Camel is offline
Marquis
 
Join Date: Jan 2009
Thanks: 617
Thanked 226 Times in 163 Posts
Default Re: secure deletion?

Quote:
Originally Posted by BillGatesJR View Post
It is still on the hard disk, hidden from the operating system like you said.

When you delete a file, the only thing REALLY being deleted is the file's namespace. (for instance, the name "C:\secretfile.txt" will be free to use when the file that this name points to is no longer on the operating system). The file itself won't be really deleted until that freed up sector is overwritten.

So the question is whether or not the original data in the file can recovered if that file was overwritten by a new file with the same exact name and extension.

If this is true, the task can easily be accomplished with a batch file. Just have the batch script delete the original file, create a new file with the same name, and then delete the new file.
I'm pretty sure the batch file idea will work, I also remember reading something about the old file is gone when it gets overwritten after deletion, like you said.

I'm not 100% sure though, just trying to help.
Reply With Quote
  #6  
Old 07-29-2009, 10:26 PM
Syphilis Syphilis is offline
Marquis
 
Join Date: Feb 2009
Location: Deep inside your girlfriend
Thanks: 100
Thanked 656 Times in 356 Posts
Default Re: secure deletion?

If you have the file overwritten, it can't be recovered, and nothing will show up if you search for undeleted files, because it doesn't exist, and it's been overwritten by random data.
Reply With Quote
  #7  
Old 07-29-2009, 10:46 PM
BillGatesJR BillGatesJR is offline
Peasant
 
Join Date: Jan 2009
Thanks: 1
Thanked 5 Times in 4 Posts
Default Re: secure deletion?

Quote:
Originally Posted by Syphilis View Post
If you have the file overwritten, it can't be recovered, and nothing will show up if you search for undeleted files, because it doesn't exist, and it's been overwritten by random data.
I used DiskDigger to search my hard drive after testing my batch script on a text file. I just typed a Hello World message in the text file, deleted it using the script, and tried to recover it with this software. The file is there, but the data is gone. It has been replaced with some meaningless random numbers.

If you want to try this yourself I can post my batch script on here. Try it with several recovery programs. I haven't found a single program that has been able to recover the original data.

The batch script for overwriting and deleting a file is:

Code:
echo off
echo %random%%random%%random%%random%%random% > %1%
del %1%
All you have to do is open command prompt, navigate to where you have this batch script saved at and type

mybatch.bat filename

Press ENTER and it is gone. Try to recover it with any software you want. Oh and by the way, this simple script will not accept wildcard characters.

This is because the script uses the same filename to create a new file, and if you used a wildcard like *.txt, it will try to create *.txt which is obviously not valid.

But I hope to improve this script so it can delete multiple files on a wildcard parameter. The only way I can think of for this to be possible is if the batch uses the dir operation, stores the filename list in a textfile, and overwrites/deletes every file in the list from top to bottom, then overwrites/deletes the temporary file list.

Last edited by BillGatesJR; 07-29-2009 at 10:51 PM.
Reply With Quote
The following users say "It is so good to hear it!":
13579 (07-30-2009), Joe Camel (07-29-2009)
Reply

Bookmarks

Tags
deletion, secure

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Who sees the reason for deletion text when a thread is deleted? driveby Generally Speaking 3 04-24-2009 10:42 PM


All times are GMT. The time now is 01:03 AM.


Hot Topics
On IRC
Users: 4
Messages/minute: 0
Topic: "http://www.zoklet.net/..."
Users: 19
Messages/minute: 0.2
Topic: "ask ibm why atlantis is real"
Users: 10
Messages/minute: 0
Topic: "vaginaboob"
Advertisements
Your ad could go right HERE! Contact us!

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.