!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/migration/restore/   drwxr-xr-x
Free 1.51 GB of 7.22 GB (20.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     5_restore_ftp.php (1.79 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/php
<?php

$fd
=fopen("ftp.edit.lst""r");
while (
$string=trim(fgets($fd)))
{
//    [0] => elid=xxor_vefil
//    [1] => name=xxor_vefil
//    [2] => dir=/www/vefil.com.ua
//    [3] => domain=battery.biceprojects.com
//    [4] => htype=docroot
//    [5] => note
//    [6] => su=xxor

    
if (strlen($string) > 5) {
        
$arr explode("+"$string);
//        print_r($arr);

        
$elid "";
        
$name "";
        
$dir "";
        
$domain "";
        
$htype "";
        
$note "";
        
$su "";

        foreach (
$arr as $l) {
            
$line explode("="$l);
            
$func $line[0];
            
$val $line[1];
            switch (
$func) {
                case 
"elid":
                    
$elid $val;
                break;
                case 
"name":
                    
$name $val;
                break;
                case 
"dir":
                    
$dir $val;
                break;
                case 
"domain":
                    
$domain $val;
                break;
                case 
"htype":
                    
$htype $val;
                break;
                case 
"note":
                    
$note $val;
                break;
                case 
"su":
                    
$su $val;
                break;
            }
        }
        if (
$su == $name) {
            echo 
"Skipping real user account '".$su."' ...\n";
        } else {
            if (
strlen($note) > 1) {
                
$note "\"".$note."\"";
            }

            if (
$htype == "docroot"$htype "custom";
            
$exec_str="/usr/local/ispmgr/sbin/mgrctl ftp.edit name=".$name." dir=".$dir." htype=".$htype." note=".$note." su=".$su." passwd=UY9c6w5Qi confirm=UY9c6w5Qi sok=ok";
            echo 
$exec_str."\n";
            
system($exec_str);
        }
    }
}

?>

:: 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.0119 ]--