!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)

/uploads/script/vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/   drwxr-xr-x
Free 13.28 GB of 57.97 GB (22.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     String_.php (4.02 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types=1);

namespace 
PhpParser\Node\Scalar;

use 
PhpParser\Error;
use 
PhpParser\Node\Scalar;

class 
String_ extends Scalar
{
    
/* For use in "kind" attribute */
    
const KIND_SINGLE_QUOTED 1;
    const 
KIND_DOUBLE_QUOTED 2;
    const 
KIND_HEREDOC 3;
    const 
KIND_NOWDOC 4;

    
/** @var string String value */
    
public $value;

    protected static 
$replacements = [
        
'\\' => '\\',
        
'$'  =>  '$',
        
'n'  => "\n",
        
'r'  => "\r",
        
't'  => "\t",
        
'f'  => "\f",
        
'v'  => "\v",
        
'e'  => "\x1B",
    ];

    
/**
     * Constructs a string scalar node.
     *
     * @param string $value      Value of the string
     * @param array  $attributes Additional attributes
     */
    
public function __construct(string $value, array $attributes = []) {
        
$this->attributes $attributes;
        
$this->value $value;
    }

    public function 
getSubNodeNames() : array {
        return [
'value'];
    }

    
/**
     * @internal
     *
     * Parses a string token.
     *
     * @param string $str String token content
     * @param bool $parseUnicodeEscape Whether to parse PHP 7 \u escapes
     *
     * @return string The parsed string
     */
    
public static function parse(string $strbool $parseUnicodeEscape true) : string {
        
$bLength 0;
        if (
'b' === $str[0] || 'B' === $str[0]) {
            
$bLength 1;
        }

        if (
'\'' === $str[$bLength]) {
            return 
str_replace(
                [
'\\\\''\\\''],
                [
'\\''\''],
                
substr($str$bLength 1, -1)
            );
        } else {
            return 
self::parseEscapeSequences(
                
substr($str$bLength 1, -1), '"'$parseUnicodeEscape
            
);
        }
    }

    
/**
     * @internal
     *
     * Parses escape sequences in strings (all string types apart from single quoted).
     *
     * @param string      $str   String without quotes
     * @param null|string $quote Quote type
     * @param bool $parseUnicodeEscape Whether to parse PHP 7 \u escapes
     *
     * @return string String with escape sequences parsed
     */
    
public static function parseEscapeSequences(string $str$quotebool $parseUnicodeEscape true) : string {
        if (
null !== $quote) {
            
$str str_replace('\\' $quote$quote$str);
        }

        
$extra '';
        if (
$parseUnicodeEscape) {
            
$extra '|u\{([0-9a-fA-F]+)\}';
        }

        return 
preg_replace_callback(
            
'~\\\\([\\\\$nrtfve]|[xX][0-9a-fA-F]{1,2}|[0-7]{1,3}' $extra ')~',
            function(
$matches) {
                
$str $matches[1];

                if (isset(
self::$replacements[$str])) {
                    return 
self::$replacements[$str];
                } elseif (
'x' === $str[0] || 'X' === $str[0]) {
                    return 
chr(hexdec(substr($str1)));
                } elseif (
'u' === $str[0]) {
                    return 
self::codePointToUtf8(hexdec($matches[2]));
                } else {
                    return 
chr(octdec($str));
                }
            },
            
$str
        
);
    }

    
/**
     * Converts a Unicode code point to its UTF-8 encoded representation.
     *
     * @param int $num Code point
     *
     * @return string UTF-8 representation of code point
     */
    
private static function codePointToUtf8(int $num) : string {
        if (
$num <= 0x7F) {
            return 
chr($num);
        }
        if (
$num <= 0x7FF) {
            return 
chr(($num>>6) + 0xC0) . chr(($num&0x3F) + 0x80);
        }
        if (
$num <= 0xFFFF) {
            return 
chr(($num>>12) + 0xE0) . chr((($num>>6)&0x3F) + 0x80) . chr(($num&0x3F) + 0x80);
        }
        if (
$num <= 0x1FFFFF) {
            return 
chr(($num>>18) + 0xF0) . chr((($num>>12)&0x3F) + 0x80)
                 . 
chr((($num>>6)&0x3F) + 0x80) . chr(($num&0x3F) + 0x80);
        }
        throw new 
Error('Invalid UTF-8 codepoint escape sequence: Codepoint too large');
    }

    public function 
getType() : string {
        return 
'Scalar_String';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0067 ]--