中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-21 22:55
47,812 topics / 349,917 posts / today 0 new / 48,271 members
WinPE、PowerShell及其它命令行系统专区 » [Discussion] The most lethal command
Printable Version  96,731 / 104
Floor1 electronixtar Posted 2006-06-13 16:09
铂金会员 Posts 2,672 Credits 7,493
The Command Line section hasn't had new posts in a long time, so I'll just post a casual thread.

Let's discuss the most destructive commands! Many people will immediately say: format, but that's not actually the case. Now everyone uses Windows; do you think the system will let you format just because you say format? With so many files in use, how can you format? You might say to format during startup, but think about it—does the system let you start just because you want to? Who doesn't know how to use msconfig these days? Which antivirus software wouldn't check for format? Therefore, those who choose format must be influenced by outdated dogma!

Then there's deltree. Many people fear this command, but happily, deltree no longer exists in systems like XP; its functionality has been completely replaced by rd!

Personally, I recommend rmdir because "rd /s /q C:" can quietly delete all deletable files under the C: drive without errors! If you add a for loop, the user's documents will be destroyed in an instant! P.S. I've had my system wiped by rd three times myself.

Now, copy—a mild-sounding command, right? Try "copy nul some.doc". Heh, the document is erased. Note that this is erasure, not deletion; it's irrecoverable! Unlike del or format, this type of erasure cannot be recovered by tools like undel, unformat, Recover4All, FinalData, or EasyRecovery! According to NSA standards, a file needs to be erased seven times to be secure, so using a for loop seven times will do. With for, you can also erase all files on drives D:, E:, and F: completely clean!

lformat is powerful but not very versatile!

Then there's erase. This command is quite obscure; many people don't know about it, so its danger is significant!

Are there any other strange and magical weapons of mass destruction commands to discuss? Feel free to share—batch files are also welcome. Remember that harddiskkiller.bat? It was so classic! I still remember it vividly.

[ Last edited by electronixtar on 2006-6-13 at 16:16 ]
Floor2 Wengier Posted 2006-06-14 02:23
系统支持 Posts 10,521 Credits 27,736
Although the format command in CMD cannot directly format the system drive, it can format data drives, causing all data to be lost instantly.
Floor3 electronixtar Posted 2006-06-14 18:21
铂金会员 Posts 2,672 Credits 7,493
I disagree. First, many disks contain "System Restore" folders that cannot be deleted. Second, some disks have pagefile.sys, which also cannot be deleted. Third, most software is installed on partitions after the C: drive, which again cannot be deleted. Most importantly, formatted disks can be recovered.
Floor4 DOSforever Posted 2006-06-14 18:43
金牌会员 Posts 2,239 Credits 4,639
This post is somewhat vague. The first few are commands built into DOS/Windows. If I'm not mistaken, is the last one referring to the so-called "low-level format" program provided by Maxtor? What is the scope of our discussion here? If all such commands are included, there are far too many dangerous commands.

As for using the command `copy nul some.doc` to clear files, I am unsure of the environment you are referring to. I have not tested it in CMD, but it can still be recovered in DOS.
Floor5 fastslz Posted 2006-06-15 10:21
铂金会员 Posts 2,315 Credits 5,493 From 上海
Originally posted by electronixtar at 2006-6-13 16:09:
Personally, I recommend rmdir, because "rd /s /q C:" can quietly delete all deletable files under the C: drive without error messages! If combined with a for loop, the user's documents will be destroyed instantly! P.S. I have had my system completely wiped by rd three times myself.


I have had the same experience. When testing malformed directories, I accidentally added an extra space, resulting in "rd /s /q " wiping everything....
Floor6 fujianabc Posted 2006-06-15 18:57
金牌会员 Posts 1,616 Credits 3,467
Originally posted by electronixtar at 2006-6-13 04:09 PM:
As for the erase command, it is quite obscure and unfamiliar to many people, so it is very dangerous!

The erase command is not obscure at all; erase = del, which is fundamental to DOS.

Additionally, there is diskpart in Windows XP, which can modify partitions when used with appropriate scripts.
Floor7 xjmxjm1234 Posted 2006-06-15 19:04
中级用户 Posts 166 Credits 361
Hmm, why isn't anyone choosing lformat? I'll go with that.
I still think low-level formatting is the most powerful; even the partitions are gone, haha.
By the way, moderator, could you share that classic harddiskkiller.bat for us to reference?
Actually, reset.com is also quite powerful. If you use it repeatedly and excessively, the motherboard will definitely burn out, haha.
Floor8 220110 Posted 2006-06-17 20:16
荣誉版主 Posts 313 Credits 718
DEBUG!!

Debug calls interrupt 13H function 07!
Floor9 xjmxjm1234 Posted 2006-06-17 21:11
中级用户 Posts 166 Credits 361
What is function 07 of int 13H?
Floor10 electronixtar Posted 2006-06-18 21:14
铂金会员 Posts 2,672 Credits 7,493
Wow, the 8th floor is impressive; I’m at a loss for words.

int13h should be related to hard disk operations
Floor11 Scott0902 Posted 2006-06-20 17:45
中级用户 Posts 237 Credits 466
Originally posted by electronixtar at 2006-6-18 21:14:
Wow, the person on the 8th floor is impressive; I’m at a loss for words.

int13h should be related to hard disk operations

It should be formatting the hard disk.
Floor12 qe Posted 2006-06-21 00:37
新手上路 Posts 3 Credits 9
To all:
The int13h interrupt is a BIOS interrupt, and function 07h is specifically for low-level formatting of hard disks. If the interleave factor is altered, the hard disk will essentially become useless. When used properly, it is far more powerful than DOS interrupts.

To 220110:
However, calls to it are blocked under Windows and Linux, making it not very practical. Additionally, it is ineffective when antivirus software is monitoring, as antivirus programs typically intercept interrupts that directly write to the hard disk.

[ Last edited by qe on 2006-6-21 at 00:41 ]
Floor13 tsenix Posted 2006-06-22 00:54
初级用户 Posts 61 Credits 121 From HK
It seems that the `format` command in MS-DOS 6.22 has an undocumented switch that can write to the first cylinder (cluster/sector) of a "bad" hard drive, rendering the drive unreadable and unwritable in less than 5 seconds.
Floor14 avsky168 Posted 2006-06-22 20:16
初级用户 Posts 51 Credits 128 From 江西省萍乡市安源区
Directly editing the sector; this time, it should be completely deleted, I suppose.
Floor15 humct Posted 2006-07-07 20:13
初级用户 Posts 42 Credits 180
Try the RECOVER command; the data was all overwritten in less than a few seconds.
1 2 3 47  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023