!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php55/usr/share/pear/ezc/Archive/tar/headers/   drwxr-xr-x
Free 293.53 GB of 429.69 GB (68.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     pax.php (4.41 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * File contains the ezcArchivePaxHeader class.
 *
 * @package Archive
 * @version 1.4.1
 * @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved.
 * @license http://ez.no/licenses/new_bsd New BSD License
 * @access private
 */

/**
 * The ezcArchivePaxHeader class represents the Tar Pax header.
 *
 * ezcArchivePaxHeader can read the header from an ezcArchiveBlockFile or ezcArchiveEntry.
 *
 * The values from the headers are directly accessible via the class properties, and allows
 * reading and writing to specific header values.
 *
 * The entire header can be appended to an ezcArchiveBlockFile again or written to an ezcArchiveFileStructure.
 * Information may get lost, though.
 *
 * The header is the {@link ezcArchiveUstarHeader} with extra header information described on the following webpage:
 * {@link http://www.opengroup.org/onlinepubs/009695399/utilities/pax.html}
 *
 * Currently, only the extended header is supported.
 *
 * @package Archive
 * @version 1.4.1
 * @access private
 */
class ezcArchivePaxHeader extends ezcArchiveUstarHeader
{
    
/**
     * Sets the property $name to $value.
     *
     * @throws ezcBasePropertyNotFoundException if the property does not exist.
     * @param string $name
     * @param mixed $value
     * @return void
     * @ignore
     */
    
public function __set$name$value )
    {
        return 
parent::__set$name$value );
    }

    
/**
     * Returns the value of the property $name.
     *
     * @throws ezcBasePropertyNotFoundException if the property does not exist.
     * @param string $name
     * @return mixed
     * @ignore
     */
    
public function __get$name )
    {
        return 
parent::__get$name );
    }

    
/**
     * Returns an array with pax header information.
     *
     * This method reads an extended set of data from the ezcArchiveBlockFile
     * $file and returns the values in an array.
     *
     * @param ezcArchiveBlockFile $file
     * @return array(string=>string)
     */
    
protected function getPaxDecodedHeaderezcArchiveBlockFile $file )
    {
        
$result = array();

        
// next block has the info.
        
$file->next();

        
$data $file->current();

        
$offset 0;

        while ( 
strcmp$data[$offset], "\0" ) != )
        {
            
$space strpos$data" "$offset );

            
$length substr$data$offset$space $offset );
            
$equalSign strpos$data"=",  $space );

            
$keyword substr$data$space 1$equalSign $space );

            
$value rtrimsubstr$data$equalSign 1$length $equalSign ), "\n" );

            
$result$keyword ] = $value;

            
$offset += $length;
        }

        return 
$result;
    }

    
/**
     * Creates and initializes a new header.
     *
     * If the ezcArchiveBlockFile $file is null then the header will be empty.
     * When an ezcArchiveBlockFile is given, the block position should point to the header block.
     * This header block will be read from the file and initialized in this class.
     *
     * @param ezcArchiveBlockFile $file
     */
    
public function __constructezcArchiveBlockFile $file null )
    {
        if ( !
is_null$file ) )
        {
            
parent::__construct$file );

            if ( 
$this->type == "x" )
            {
                
$paxArray $this->getPaxDecodedHeader$file );
                
$file->next();
            }

            
parent::__construct$file );

            
// Override some fields.
            
foreach ( $paxArray as $key => $value )
            {
                switch ( 
$key )
                {
                    case 
"gid":
                        
$this->groupId $value;
                        break;  
// For group IDs larger than 2097151.

                    
case "linkpath":
                        
$this->linkName $value;
                        break;  
// Long link names?

                    
case "path":
                        
$this->fileName $value;
                        
$this->filePrefix "";
                        break; 
// Really long file names.

                    
case "size":
                        
$this->size $value;
                        break;  
// For files with a size greater than 8589934591 bytes.

                    
case "uid":
                        
$this->userId $value;
                        break;  
// For user IDs larger than 2097151.
                
}
            }
        }
    }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0049 ]--