!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/root/scripts_backup/   drwxr-xr-x
Free 1.52 GB of 7.22 GB (21.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     make_quota_backup.php (1.56 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/php5

<?php
$passwd
="/etc/passwd";
$group="/etc/group";

$user_quota="/home/quota_user.dat";
$group_quota="/home/quota_group.dat";

umask(077);

$fh fopen($passwd,"r");
$fw fopen($user_quota'w');

while (!
feof($fh))
{
    
$line trim(fgets($fh2048));
    
$a=explode(":",$line);
    
$uid=$a[2];
    
$gid=$a[3];
    
$username=$a[0];
    if ((
$username != '') && ($uid >= 1000) && ($uid 65534))
    {
        
$query="quota -u ".$username;
        unset(
$result);
        
exec($query$result);
        if (isset(
$result[2]))
        {
            
$result=explode(" "trim($result[2]));
            unset(
$output);
            foreach (
$result as $a)
            {
                if (
$a != ''$output=$output.":".$a;
            }
            
$result=$username.":".$uid.":".$gid.":".$output."\n";
            
fwrite($fw$result);
        }
    }
}
fclose($fh);
fclose($fw);

$fw fopen($group_quota'w');

$fh fopen($group,"r");
while (!
feof($fh))
{
    
$line trim(fgets($fh2048));
    
$a=explode(":",$line);
    
$gid=$a[2];
    
$groupname=$a[0];
    if ((
$groupname != '') && ($gid >= 1000))
    {
        
$query="quota -g ".$groupname;
        unset(
$result);
        
exec($query$result);
        if (isset(
$result[2]))
        {
            
$result=explode(" "trim($result[2]));
            unset(
$output);
            foreach (
$result as $a)
            {
                if (
$a != ''$output=$output.":".$a;
            }
            
$result=$groupname.":".$gid.":".$output."\n";
            
fwrite($fw$result);
        }
    }
}
fclose($fh);
fclose($fw);

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0108 ]--