Kill Boot Sector Script?


Recommended Posts

I had a script about a year ago, but lost it. It was a debug script that ran from a boot floppy to delete the master boot record of the first drive.

The script was in a test file and then I ran it like "debug killbs.txt" from the command line.

Anyone have this script or can make one for me?

Any way to go further than that. Like is there a way to copy the boot sector to the floppy and then delete the master boot record and then later if need be, have the floppy restore the master boot record to get everything back?

That would be a great security script.

Link to comment
https://www.neowin.net/forum/topic/135642-kill-boot-sector-script/
Share on other sites

No, it's something else. I remember it, let me pull it off...

At least you have the necessary commands right there...

  Quote
Run the Debug Script

The following debug script removes DOS and non-DOS partitions on the hard drive. This debug script allows you to convert a drive from an incompatible partition structure to one that will work with FDISK.EXE such as converting Linux partitions to MS-DOS partitions.

Insert the boot disk that contains the Debug command into the floppy disk drive.

Restart the computer.

A black screen with the Microsoft Windows? 95 Startup Menu appears.

Press the <5> key, and then press the <Enter> key.

The boot process concludes with an A:\> prompt followed by a blinking cursor (underline).

From the A:\> prompt, type the following commands, and then press the <Enter> key after each command:

NOTE: Type the bolded text only (the debug prompt is a dash). You may receive an error if you type anything other than the bold text. The non-bolded text represents the system response that will appear after typing each command and pressing the <Enter> key.

debug

-F 200 L1000 0

-A CS:100

xxxx:0100 MOV AX,301

xxxx:0103 MOV BX,200

xxxx:0106 MOV CX,1

xxxx:0109 MOV DX,80

NOTE: Type 80 for the primary hard drive - HD 0, or type 81 for the secondary hard drive - HD 1.

In most cases, the primary hard drive is required 80.

xxxx:010C INT 13

xxxx:010E INT 20

xxxx:0110 (Leave this line blank. Press the <Enter> key to continue.)

-G

The message Program terminated normally appears.

Press the power button to turn off your computer.

On the ensuing startup, the hard drive must be partitioned and formatted. Refer to the Additional Information section for further instructions.

Return to Overview

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.