!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

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

Safe-mode: OFF (not secure)

/usr/share/php/Symfony/Component/Config/Resource/   drwxr-xr-x
Free 83.25 GB of 96.73 GB (86.06%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ClassExistenceResource.php (6.89 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

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

namespace Symfony\Component\Config\Resource;

/**
 * ClassExistenceResource represents a class existence.
 * Freshness is only evaluated against resource existence.
 *
 * The resource must be a fully-qualified class name.
 *
 * @author Fabien Potencier <[email protected]>
 *
 * @final
 */
class ClassExistenceResource implements SelfCheckingResourceInterface
{
    private 
$resource;
    private 
$exists;

    private static 
$autoloadLevel 0;
    private static 
$autoloadedClass;
    private static 
$existsCache = [];

    
/**
     * @param string    $resource The fully-qualified class name
     * @param bool|null $exists   Boolean when the existency check has already been done
     */
    
public function __construct(string $resourcebool $exists null)
    {
        
$this->resource $resource;
        if (
null !== $exists) {
            
$this->exists = [$existsnull];
        }
    }

    public function 
__toString(): string
    
{
        return 
$this->resource;
    }

    public function 
getResource(): string
    
{
        return 
$this->resource;
    }

    
/**
     * {@inheritdoc}
     *
     * @throws \ReflectionException when a parent class/interface/trait is not found
     */
    
public function isFresh(int $timestamp): bool
    
{
        
$loaded class_exists($this->resourcefalse) || interface_exists($this->resourcefalse) || trait_exists($this->resourcefalse);

        if (
null !== $exists = &self::$existsCache[$this->resource]) {
            if (
$loaded) {
                
$exists = [truenull];
            } elseif (
>= $timestamp && !$exists[0] && null !== $exists[1]) {
                throw new \
ReflectionException($exists[1]);
            }
        } elseif ([
falsenull] === $exists = [$loadednull]) {
            if (!
self::$autoloadLevel++) {
                
spl_autoload_register(__CLASS__.'::throwOnRequiredClass');
            }
            
$autoloadedClass self::$autoloadedClass;
            
self::$autoloadedClass ltrim($this->resource'\\');

            try {
                
$exists[0] = class_exists($this->resource) || interface_exists($this->resourcefalse) || trait_exists($this->resourcefalse);
            } catch (\
Exception $e) {
                
$exists[1] = $e->getMessage();

                try {
                    
self::throwOnRequiredClass($this->resource$e);
                } catch (\
ReflectionException $e) {
                    if (
>= $timestamp) {
                        throw 
$e;
                    }
                }
            } catch (\
Throwable $e) {
                
$exists[1] = $e->getMessage();

                throw 
$e;
            } finally {
                
self::$autoloadedClass $autoloadedClass;
                if (!--
self::$autoloadLevel) {
                    
spl_autoload_unregister(__CLASS__.'::throwOnRequiredClass');
                }
            }
        }

        if (
null === $this->exists) {
            
$this->exists $exists;
        }

        return 
$this->exists[0] xor !$exists[0];
    }

    
/**
     * @internal
     */
    
public function __sleep(): array
    {
        if (
null === $this->exists) {
            
$this->isFresh(0);
        }

        return [
'resource''exists'];
    }

    
/**
     * @internal
     */
    
public function __wakeup()
    {
        if (\
is_bool($this->exists)) {
            
$this->exists = [$this->existsnull];
        }
    }

    
/**
     * Throws a reflection exception when the passed class does not exist but is required.
     *
     * A class is considered "not required" when it's loaded as part of a "class_exists" or similar check.
     *
     * This function can be used as an autoload function to throw a reflection
     * exception if the class was not found by previous autoload functions.
     *
     * A previous exception can be passed. In this case, the class is considered as being
     * required totally, so if it doesn't exist, a reflection exception is always thrown.
     * If it exists, the previous exception is rethrown.
     *
     * @throws \ReflectionException
     *
     * @internal
     */
    
public static function throwOnRequiredClass(string $class, \Exception $previous null)
    {
        
// If the passed class is the resource being checked, we shouldn't throw.
        
if (null === $previous && self::$autoloadedClass === $class) {
            return;
        }

        if (
class_exists($classfalse) || interface_exists($classfalse) || trait_exists($classfalse)) {
            if (
null !== $previous) {
                throw 
$previous;
            }

            return;
        }

        if (
$previous instanceof \ReflectionException) {
            throw 
$previous;
        }

        
$message sprintf('Class "%s" not found.'$class);

        if (
self::$autoloadedClass !== $class) {
            
$message substr_replace($messagesprintf(' while loading "%s"'self::$autoloadedClass), -10);
        }

        if (
null !== $previous) {
            
$message $previous->getMessage();
        }

        
$e = new \ReflectionException($message0$previous);

        if (
null !== $previous) {
            throw 
$e;
        }

        
$trace debug_backtrace();
        
$autoloadFrame = [
            
'function' => 'spl_autoload_call',
            
'args' => [$class],
        ];

        if (\
PHP_VERSION_ID >= 80000 && isset($trace[1])) {
            
$callerFrame $trace[1];
            
$i 2;
        } elseif (
false !== $i array_search($autoloadFrame$tracetrue)) {
            
$callerFrame $trace[++$i];
        } else {
            throw 
$e;
        }

        if (isset(
$callerFrame['function']) && !isset($callerFrame['class'])) {
            switch (
$callerFrame['function']) {
                case 
'get_class_methods':
                case 
'get_class_vars':
                case 
'get_parent_class':
                case 
'is_a':
                case 
'is_subclass_of':
                case 
'class_exists':
                case 
'class_implements':
                case 
'class_parents':
                case 
'trait_exists':
                case 
'defined':
                case 
'interface_exists':
                case 
'method_exists':
                case 
'property_exists':
                case 
'is_callable':
                    return;
            }

            
$props = [
                
'file' => $callerFrame['file'] ?? null,
                
'line' => $callerFrame['line'] ?? null,
                
'trace' => \array_slice($trace$i),
            ];

            foreach (
$props as $p => $v) {
                if (
null !== $v) {
                    
$r = new \ReflectionProperty(\Exception::class, $p);
                    
$r->setAccessible(true);
                    
$r->setValue($e$v);
                }
            }
        }

        throw 
$e;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0044 ]--