!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/symfony/yaml/   drwxrwxr-x
Free 15.67 GB of 61.93 GB (25.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Yaml;

use 
Symfony\Component\Yaml\Exception\ParseException;

/**
 * Unescaper encapsulates unescaping rules for single and double-quoted
 * YAML strings.
 *
 * @author Matthew Lewinski <matthew@lewinski.org>
 *
 * @internal
 */
class Unescaper
{
    
/**
     * Regex fragment that matches an escaped character in a double quoted string.
     */
    
const REGEX_ESCAPED_CHARACTER '\\\\(x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|.)';

    
/**
     * Unescapes a single quoted string.
     *
     * @param string $value A single quoted string
     *
     * @return string The unescaped string
     */
    
public function unescapeSingleQuotedString($value)
    {
        return 
str_replace('\'\'''\''$value);
    }

    
/**
     * Unescapes a double quoted string.
     *
     * @param string $value A double quoted string
     *
     * @return string The unescaped string
     */
    
public function unescapeDoubleQuotedString($value)
    {
        
$callback = function ($match) {
            return 
$this->unescapeCharacter($match[0]);
        };

        
// evaluate the string
        
return preg_replace_callback('/'.self::REGEX_ESCAPED_CHARACTER.'/u'$callback$value);
    }

    
/**
     * Unescapes a character that was found in a double-quoted string.
     *
     * @param string $value An escaped character
     *
     * @return string The unescaped character
     */
    
private function unescapeCharacter($value)
    {
        switch (
$value[1]) {
            case 
'0':
                return 
"\x0";
            case 
'a':
                return 
"\x7";
            case 
'b':
                return 
"\x8";
            case 
't':
                return 
"\t";
            case 
"\t":
                return 
"\t";
            case 
'n':
                return 
"\n";
            case 
'v':
                return 
"\xB";
            case 
'f':
                return 
"\xC";
            case 
'r':
                return 
"\r";
            case 
'e':
                return 
"\x1B";
            case 
' ':
                return 
' ';
            case 
'"':
                return 
'"';
            case 
'/':
                return 
'/';
            case 
'\\':
                return 
'\\';
            case 
'N':
                
// U+0085 NEXT LINE
                
return "\xC2\x85";
            case 
'_':
                
// U+00A0 NO-BREAK SPACE
                
return "\xC2\xA0";
            case 
'L':
                
// U+2028 LINE SEPARATOR
                
return "\xE2\x80\xA8";
            case 
'P':
                
// U+2029 PARAGRAPH SEPARATOR
                
return "\xE2\x80\xA9";
            case 
'x':
                return 
self::utf8chr(hexdec(substr($value22)));
            case 
'u':
                return 
self::utf8chr(hexdec(substr($value24)));
            case 
'U':
                return 
self::utf8chr(hexdec(substr($value28)));
            default:
                throw new 
ParseException(sprintf('Found unknown escape character "%s".'$value));
        }
    }

    
/**
     * Get the UTF-8 character for the given code point.
     *
     * @param int $c The unicode code point
     *
     * @return string The corresponding UTF-8 character
     */
    
private static function utf8chr($c)
    {
        if (
0x80 $c %= 0x200000) {
            return 
chr($c);
        }
        if (
0x800 $c) {
            return 
chr(0xC0 $c >> 6).chr(0x80 $c 0x3F);
        }
        if (
0x10000 $c) {
            return 
chr(0xE0 $c >> 12).chr(0x80 $c >> 0x3F).chr(0x80 $c 0x3F);
        }

        return 
chr(0xF0 $c >> 18).chr(0x80 $c >> 12 0x3F).chr(0x80 $c >> 0x3F).chr(0x80 $c 0x3F);
    }
}

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