!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/domains/ecom1.picotech.app/public_html_ecom1/vendor/mpdf/mpdf/src/Gif/   drwxr-xr-x
Free 26.15 GB of 117.98 GB (22.17%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Mpdf\Gif;

/**
 * GIF Util - (C) 2003 Yamasoft (S/C)
 *
 * All Rights Reserved
 *
 * This file can be freely copied, distributed, modified, updated by anyone under the only
 * condition to leave the original address (Yamasoft, http://www.yamasoft.com) and this header.
 *
 * @link http://www.yamasoft.com
 */
class Image
{

    var 
$m_disp;

    var 
$m_bUser;

    var 
$m_bTrans;

    var 
$m_nDelay;

    var 
$m_nTrans;

    var 
$m_lpComm;

    var 
$m_gih;

    var 
$m_data;

    var 
$m_lzw;

    public function 
__construct()
    {
        unset(
$this->m_disp);
        unset(
$this->m_bUser);
        unset(
$this->m_bTrans);
        unset(
$this->m_nDelay);
        unset(
$this->m_nTrans);
        unset(
$this->m_lpComm);
        unset(
$this->m_data);
        
$this->m_gih = new ImageHeader();
        
$this->m_lzw = new Lzw();
    }

    function 
load($data, &$datLen)
    {
        
$datLen 0;

        while (
true) {
            
$b ord($data[0]);
            
$data substr($data1);
            
$datLen++;

            switch (
$b) {
                case 
0x21// Extension
                    
$len 0;
                    if (!
$this->skipExt($data$len)) {
                        return 
false;
                    }
                    
$datLen += $len;
                    break;

                case 
0x2C// Image
                    // LOAD HEADER & COLOR TABLE
                    
$len 0;
                    if (!
$this->m_gih->load($data$len)) {
                        return 
false;
                    }
                    
$data substr($data$len);
                    
$datLen += $len;

                    
// ALLOC BUFFER
                    
$len 0;

                    if (!(
$this->m_data $this->m_lzw->deCompress($data$len))) {
                        return 
false;
                    }

                    
$data substr($data$len);
                    
$datLen += $len;

                    if (
$this->m_gih->m_bInterlace) {
                        
$this->deInterlace();
                    }

                    return 
true;

                case 
0x3B// EOF
                
default:
                    return 
false;
            }
        }
        return 
false;
    }

    function 
skipExt(&$data, &$extLen)
    {
        
$extLen 0;

        
$b ord($data[0]);
        
$data substr($data1);
        
$extLen++;

        switch (
$b) {
            case 
0xF9// Graphic Control
                
$b ord($data[1]);
                
$this->m_disp = ($b 0x1C) >> 2;
                
$this->m_bUser = ($b 0x02) ? true false;
                
$this->m_bTrans = ($b 0x01) ? true false;
                
$this->m_nDelay $this->w2i(substr($data22));
                
$this->m_nTrans ord($data[4]);
                break;

            case 
0xFE// Comment
                
$this->m_lpComm substr($data1ord($data[0]));
                break;

            case 
0x01// Plain text
                
break;

            case 
0xFF// Application
                
break;
        }

        
// SKIP DEFAULT AS DEFS MAY CHANGE
        
$b ord($data[0]);
        
$data substr($data1);
        
$extLen++;
        while (
$b 0) {
            
$data substr($data$b);
            
$extLen += $b;
            
$b ord($data[0]);
            
$data substr($data1);
            
$extLen++;
        }
        return 
true;
    }

    function 
w2i($str)
    {
        return 
ord(substr($str01)) + (ord(substr($str11)) << 8);
    }

    function 
deInterlace()
    {
        
$data $this->m_data;

        for (
$i 0$i 4$i++) {
            switch (
$i) {
                case 
0:
                    
$s 8;
                    
$y 0;
                    break;

                case 
1:
                    
$s 8;
                    
$y 4;
                    break;

                case 
2:
                    
$s 4;
                    
$y 2;
                    break;

                case 
3:
                    
$s 2;
                    
$y 1;
                    break;
            }

            for (; 
$y $this->m_gih->m_nHeight$y += $s) {
                
$lne substr($this->m_data0$this->m_gih->m_nWidth);
                
$this->m_data substr($this->m_data$this->m_gih->m_nWidth);

                
$data substr($data0$y $this->m_gih->m_nWidth) .
                    
$lne .
                    
substr($data, ($y 1) * $this->m_gih->m_nWidth);
            }
        }

        
$this->m_data $data;
    }
}

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