Remote Exploit Forums

Go Back   Remote Exploit Forums > General IT Discussion


General IT Discussion Non BT Related Topics

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-27-2009, 02:17 AM
Junior Member
 
Join Date: Feb 2008
Location: Melbourne, Australia
Posts: 20
Default Secure Erase

Hi

I'm Interested in techniques to Sanitize Hard drives and looking at Secure Erase and Enhanced Secure Erase methods using ATA commands built into modern drives. With drives getting larger these techniques seem very efficient to sanitize entire hardisks

have found the following utilities which work well

HDDerase.exe from CMRR - Secure Erase

and

MHDD.exe from HDDGURU: MHDD

although have had issues with getting it to work with USB connected drives.

Was wondering if anyone knew of any alternative utilities, possibly running under linux ?
__________________
The 'Net is a waste of time, and that's exactly what's right about it. - William Gibson
Reply With Quote
  #2 (permalink)  
Old 08-27-2009, 02:21 AM
Gitsnik's Avatar
Senior Member
 
Join Date: Jun 2009
Location: The Crystal Wind
Posts: 637
Default

Code:
dd if=/dev/urandom bs=1k of=/dev/(device)
Works pretty well for me. There is no point doing more than one pass these days, but I still do 15 for company financial drives, just in case.
__________________
Never underestimate the power of human stupidity - it is like a force of nature, capable of destroying even the most well laid plans.
Reply With Quote
  #3 (permalink)  
Old 08-27-2009, 09:12 AM
lupin's Avatar
Moderator
 
Join Date: Mar 2009
Location: Australia
Posts: 1,363
Default

Theres DBAN (its a boot disk) plus shred and wipe (shred is for individual files but you may be able to use it on a device file).

Personally I use dd. If you using /dev/zero as an input source is quicker than /dev/random or /dev/urandom if you are happy to overwrite using zeros instead of random data. In addition, if you determine the drive size first using fdisk -l, use /dev/zero as your input source, limit the amount read from the input using the count option, AND tee the output into both your drives device and md5sum, you can verify your overwrites.

Example steps for wiping hard drive /dev/sda and verifying the overwrite:
  1. Find your drives total size by running "fdisk -l /dev/sda"
  2. Divide the total size of the disk by 512 "perl -e 'print <size>/512'"
  3. Run dd using the command below
  4. Verify the overwrite was succesful using "md5sum /dev/sda" and comparing the result to the output from the dd command

Code:
dd if=/dev/zero bs=512 count=<size/512> | tee /dev/sda | md5sum
If the md5 values dont match, your drive is bad or some other overwrite failure occurred.

If you want to see the progress of your wipe, you can also use a tool like pipebench, like so:

Code:
dd if=/dev/zero bs=512 count=<size/512> | pipebench| tee /dev/sda | md5sum
__________________
Nancy Astor: If I were your wife I would put poison in your coffee!
Winston Churchill: Madam, if I were your husband I would drink it.
Reply With Quote
  #4 (permalink)  
Old 08-27-2009, 08:58 PM
thorin's Avatar
Senior Member
 
Join Date: Feb 2006
Location: Northern Hemisphere
Posts: 2,545
Default

We use DBAN often at work.

Under Windows I usually keep anything important in a TrueCrypt file container and delete it directly (shift+delete) bypassing the recycle bin. A few times a month I run sdelete to wipe the freespace on my drive in case I've saved something to the wrong area or had any leakage.
__________________
I'm a compulsive post editor, you might wanna wait until my post has been online for 5-10 mins before quoting it as it will likely change.

I know I seem harsh in some of my replies. SORRY! But if you're doing something illegal or posting something that seems to be obvious BS I'm going to call you on it.
Reply With Quote
  #5 (permalink)  
Old 08-27-2009, 10:02 PM
Barry's Avatar
Senior Member
 
Join Date: Feb 2006
Location: Right behind you. Using you as a shield.
Posts: 3,311
Default

I just use a lot of heat.

http://web.mac.com/barrywoods/Site/DOD_drive_wipe.html
Reply With Quote
  #6 (permalink)  
Old 08-28-2009, 07:07 AM
Junior Member
 
Join Date: Feb 2008
Location: Melbourne, Australia
Posts: 20
Default

Thanks for your responses

Always good to see what others do/use and has given me some alternatives to try - particularly like lots of fire

Was specifically looking for "ATA Secure Erase" techniques as this has the advantages of being able to overwrite bad blocks as well as being a lot quicker than traditional methods. With Further searches have found the following Guide (Take note of the disclaimers at the start of the guide )

ATA Secure Erase - ata Wiki

haven't tried it as yet but will update once i have

another perspective on ATA Secure Erase can be found
Securely erase hard drives « ultraparanoid
__________________
The 'Net is a waste of time, and that's exactly what's right about it. - William Gibson
Reply With Quote
  #7 (permalink)  
Old 09-25-2009, 12:55 PM
h1jack~~d(^_^)b's Avatar
Member
 
Join Date: Jul 2009
Posts: 78
Default paranoid erase

Hello,

I test it with a 1GB partition:

root@bt:/media# mount /dev/hda1 /media/hda01/
root@bt:/media#
Code:
dd if=/dev/urandom of=/media/hda01/foo.img bs=4M
dd: writing `/media/hda01/foo.img': No space left on device
245+0 records in
244+0 records out
1025818624 bytes (1.0 GB) copied, 274.237 s, 3.7 MB/s
root@bt:/media#
Code:
shred -uvz -n 7 /media/hda01/foo.img
shred: /media/hda01/foo.img: pass 1/8 (random)...
shred: /media/hda01/foo.img: pass 1/8 (random)...17MiB/979MiB 1%
shred: /media/hda01/foo.img: pass 1/8 (random)...34MiB/979MiB 3%
shred: /media/hda01/foo.img: pass 1/8 (random)...50MiB/979MiB 5%
shred: /media/hda01/foo.img: pass 1/8 (random)...67MiB/979MiB 6%
shred: /media/hda01/foo.img: pass 1/8 (random)...84MiB/979MiB 8%
shred: /media/hda01/foo.img: pass 1/8 (random)...100MiB/979MiB 10%
shred: /media/hda01/foo.img: pass 1/8 (random)...116MiB/979MiB 11%
--------------------------------------------

complete shred procedure:
1. create a non journaling filesystem and unplug the device (ext2)
2. plug in the device

root:~# : shred -uvz -n 7 /dev/sdX
__________________
Nought's had, all's spent, ... Where our desire is got without content

Last edited by h1jack~~d(^_^)b; 09-29-2009 at 11:16 PM.
Reply With Quote
Reply

Bookmarks

Tags
erase, hdd, secure

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2