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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/laravel-crm/vendor/enshrined/svg-sanitize/src/data/   drwxrwxrwx
Free 12.92 GB of 57.97 GB (22.29%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     XPath.php (1.61 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace enshrined\svgSanitize\data;

class 
XPath extends \DOMXPath
{
    const 
DEFAULT_NAMESPACE_PREFIX 'svg';

    
/**
     * @var string
     */
    
protected $defaultNamespaceURI;

    public function 
__construct(\DOMDocument $doc)
    {
        
parent::__construct($doc);
        
$this->handleDefaultNamespace();
    }

    
/**
     * @param string $nodeName
     * @return string
     */
    
public function createNodeName($nodeName)
    {
        if (empty(
$this->defaultNamespaceURI)) {
            return 
$nodeName;
        }
        return 
self::DEFAULT_NAMESPACE_PREFIX ':' $nodeName;
    }

    protected function 
handleDefaultNamespace()
    {
        
$rootElements $this->getRootElements();

        if (
count($rootElements) !== 1) {
            throw new 
\LogicException(
                
sprintf('Got %d svg elements, expected exactly one'count($rootElements)),
                
1570870568
            
);
        }
        
$this->defaultNamespaceURI = (string)$rootElements[0]->namespaceURI;

        if (
$this->defaultNamespaceURI !== '') {
            
$this->registerNamespace(self::DEFAULT_NAMESPACE_PREFIX$this->defaultNamespaceURI);
        }
    }

    
/**
     * @return \DOMElement[]
     */
    
protected function getRootElements()
    {
        
$rootElements = [];
        
$elements $this->document->getElementsByTagName('svg');
        
/** @var \DOMElement $element */
        
foreach ($elements as $element) {
            if (
$element->parentNode !== $this->document) {
                continue;
            }
            
$rootElements[] = $element;
        }
        return 
$rootElements;
    }
}

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