WRIT_SEC

PURPOSE   OPERATION   OPTIONS   COMMAND LINES   RELATED PROGRAMS


Author: Dan Mares, dmares @ maresware . com
Portions Copyright © 1998-2021 by Dan Mares and Mares and Company, LLC
Phone: 678-427-3275

top

PURPOSE

WRIT_SEC is designed to process a physical disk and overwrite specified sectors based on a file that the user provides. The sectors to overwrite are most likely the result of an order to remove specific priveledged data that might reside on the disk. The sectors to be wiped are most likely in free space and don't belong to a file that can be wiped. Also, the specific sectors are being wiped because the order specifies that not ALL free space can be wiped, and ONLY specified sectors containing priveledged or other information identifies as sensitive must be wiped.

The program MUST be run under a DOS/Win98 boot disk. It processes the disk at the physical level to wipe/overwrite specific sectors of the drive based on a listing provided by the user.

This is a specialized program and not part of the usual Maresware suite. It is available as a seperate purchase.

WRIT_SEC reads the source file provided which contains the numbers of the sector(s) to overwrite. It then goes to the sector and overwrites the data. It is the users responsibility to properly identify the sectors to be wiped. Incorrect identification will most likely make the disk unusable after this program is run.


top

OPERATION

WRIT_SEC reads the file provided by the user. This file contains the start sector number and the count or number of sectors to wipe at that point. The program then jumps to that appropriate sector, and writes the X number of sectors requested. It then reads the next sector grouping to write, and proceeds to process all the items listed in the file provided by the user.


top

OPTIONS

-1:  Thats a one, not ell. The sector counters for the overwrites use a base of 0. If you wish to use a base of 1, use this option.

-b[01r]:  A -b, and one of 0, 1 or r, designating which overwrite buffer to use. 0==Hex0's, 1==Hex1's, and r==random characters (default is 0's)

-B:  Print some debugging information. The -B turns off the actual overwrite, so no writing to the disk takes place.

-d + drive  to process: This option is required. Must be A or B for floppy drives, and physical drive 0 thru 9 for hard disks. sample: -d a or -d 0.

-f + filename:  Containing information about what sectors to overwrite. This is a text file. The format is described at the end of this section, and on the last help screen of the program.

INPUT SECTOR TEXT FILE FORMAT

The format of the TEXT file named in the -f option is:

the syntax is:    item1    item2    item3  item4
                    120      ,         10   C
120,10C
or
                    120      ,         10   E
120,130E

item1: is the starting LBA sector to wipe. Base 0
item2: a delimeter of some type, spaces, comma, pipe, all all OK
item3: a value indicating either the number of sectors to write, OR
the ending sector number. (which is included in the write)
item4: is either a C or E, "IMMEDIATELY" following item 2, no spaces allowed
A 'C' indicates item 2 is a sector count, amount, and
A 'E' indicates an 'E'nding sector number. Default is 'C'
The ending sector # IS included in the overwrite.
1,10 would wipe 10 sectors. (10-1==9, except that sector 10 is also included)


top

COMMAND LINES

Command line format:

C:>writ_sec -d 0 -s filename -b0

C:>writ_sec -d 0 -s filename

C:>writ_sec -d 0 -s filename -1

Remember, the -d -s are requred


RELATED PROGRAMS

Declasfy

STRSRCH

top