G2A Many GEOs
SHARE
TWEET

Check Domain and User

malwareconf Oct 21st, 2012 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <?
  2.      
  3.     echo "<title># Domains & Users</title>
  4.    
  5.    <style>
  6.    
  7.    body,table{background: black; font-family:Verdana,tahoma; color: white; font-size:10px; }
  8.    
  9.    A:link {text-decoration: none;color: red;}
  10.    
  11.    A:active {text-decoration: none;color: red;}
  12.    
  13.    A:visited {text-decoration: none;color: red;}
  14.    
  15.    A:hover {text-decoration: underline; color: red;}
  16.    
  17.    #new,input,table,td,tr,#gg{text-align:center;border-style:solid;text-decoration:bold;}
  18.    
  19.    tr:hover,td:hover{text-align:center;background-color: #FFFFCC; color:green;}
  20.    
  21.    </style>
  22.    
  23.    <p align=center># Domains & Users</p>
  24.    
  25.    <p align=center>Domains - User</p><center>";
  26.      
  27.      
  28.      
  29.     $d0mains = @file("/etc/named.conf");
  30.      
  31.      
  32.      
  33.     if(!$d0mains){ die("<b># can't ReaD -> [ /etc/named.conf ]"); }
  34.      
  35.      
  36.      
  37.     echo "<table align=center border=1>
  38.    
  39.    <tr bgcolor=green><td>d0mains</td><td>users</td></tr>";
  40.      
  41.      
  42.      
  43.     foreach($d0mains as $d0main){
  44.      
  45.      
  46.      
  47.     if(eregi("zone",$d0main)){
  48.      
  49.      
  50.      
  51.     preg_match_all('#zone "(.*)"#', $d0main, $domains);
  52.      
  53.     flush();
  54.      
  55.      
  56.      
  57.     if(strlen(trim($domains[1][0])) > 2){
  58.      
  59.      
  60.      
  61.     $user = posix_getpwuid(@fileowner("/etc/valiases/".$domains[1][0]));
  62.      
  63.      
  64.      
  65.     echo "<tr><td><a href=http://www.".$domains[1][0]."/>".$domains[1][0]."</a></td><td>".$user['name']."</td></tr>"; flush
  66.  
  67. ();
  68.      
  69.      
  70.      
  71.     }}}
  72.      
  73.      
  74.      
  75.     echo "</table>
  76.    
  77.    <p align='center'>
  78.    
  79.    (c)0d3d By <a href='https://www.facebook.com/malware.conf'>Malware</a>
  80.    
  81.    </p>
  82.    
  83.    ";
  84.      
  85.      
  86.      
  87.     ?>
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top