The hard disk is simple and encrypted.

zhaozj2021-02-16  42

// The following procedures apply to WIN98 / WINME, WIN2000 or later, does not support direct reading and writing of the hard disk. We all know that the partition table of the hard disk is located in the 0-column 0 surface 1 sector. At the offset address 1be to 1fd is the partition table content of the hard disk, usually we look at the hard disk partition table, just use Debug, ie, said: C: /> Debug-a100 MOV AX, 0201 MOV BX, 0200 MOV CX, 0001 MOV DX, 0080 INT 13 INT 20-g = 100-D3BE 3FF // Save Partition Data INTO File Aking.dat-n Aking.dat- RCX: 200-W200 performs the above instructions, we will see 66 bytes, where the last two bytes must be 55AA, which is the main boot flag of the hard disk (also known as the boot mark), if these two words The section is not 55AA, then your hard disk will not be able to start because the computer does not recognize the hard disk. Moreover, it is necessary to be 80h at the offset address 1BE, otherwise it will be prompted when the operating system is lost. Remove the boot mark of the hard disk, there is a total of 64 bytes. Each hard disk takes up 16 bytes. The IDE port or EIDe port on the host can hang 4 hard drives (outside the plug-in), usually for security You can save 512 bytes of information or more than 512 bytes of hard drives to a file. The 16 bytes of each hard disk partition table have their corresponding meaning: The first byte: If it is a boot partition, it is 80h, if not, it is 00h second byte to the fourth byte: Yes The start sector number of the partition is the fifth byte: flag byte, such as 05 means the expansion partition six bytes to the eighth byte: the termination sector number of the partition is ninth byte to the twelfth word. Section: The number of sectors used in this partition to the 16th byte: The number of sectors used in the partition is very simple after understanding the above architecture, so that the simple encryption program is very simple. I made a different or xor operation of the hard drive, the hard disk was locked, and the hard disk was unlocked in the second execution, and the hard disk was blocked when the third execution was executed. . . . In addition to the boot mark, I can also do or operate other important signs, such as changing the sign byte 80 of the guidance partition, such as hiding an extension, etc., can be implemented. Here I use Debug to write the assembler, here I write the program with lock / unlock the boot mark. The above I have declared if you want to use my program, please pay attention to a label, save the hard disk partition table to FLOPPY DISK in the form of a file, to prevent everyone, please see the program: c: /> DEBUG-A100MOV AX, 0201MOV BX, 0200MOV CX, 0001MOV DX, 0080INT 13JB ERRORMOV SI, 03FEMOV BP, AA55XOR [SI], BPMOV AX, 0301MOV BX, 0200MOV CX, 0001MOV DX, 0080INT 13JB ERRORCMP [SI], BPJNZ LOCKMOV DX, 0150MOV AH, 9INT 21JMP Endlock: MOV DX, 0165 MOV AH, 9 INT 21 JMP Enderror: MOV DX, 0180 MOV AH, 9 INT 21HD: MOV AH, 4CH INT 21H-N AKING.COM-RCX: 200-W100-Q

At this point, we have filed the above code to file aking.com. You can use the file copy to the floppy disk, start the computer from the floppy disk, the first time the AKING.COM hard drive is locked, and then execute the hard disk unlock again.

转载请注明原文地址:https://www.9cbs.com/read-27099.html

New Post(0)