!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/DependencyInjection/Dumper/   drwxr-xr-x
Free 83.26 GB of 96.73 GB (86.07%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Preloader.php (4.02 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\DependencyInjection\Dumper;

/**
 * @author Nicolas Grekas <[email protected]>
 */
final class Preloader
{
    public static function 
append(string $file, array $list): void
    
{
        if (!
file_exists($file)) {
            throw new \
LogicException(sprintf('File "%s" does not exist.'$file));
        }

        
$cacheDir = \dirname($file);
        
$classes = [];

        foreach (
$list as $item) {
            if (
=== strpos($item$cacheDir)) {
                
file_put_contents($filesprintf("require_once __DIR__.%s;\n"var_export(strtr(substr($item, \strlen($cacheDir)), \DIRECTORY_SEPARATOR'/'), true)), \FILE_APPEND);
                continue;
            }

            
$classes[] = sprintf("\$classes[] = %s;\n"var_export($itemtrue));
        }

        
file_put_contents($filesprintf("\n\$classes = [];\n%s\$preloaded = Preloader::preload(\$classes, \$preloaded);\n"implode(''$classes)), \FILE_APPEND);
    }

    public static function 
preload(array $classes, array $preloaded = []): array
    {
        
set_error_handler(function ($t$m$f$l) {
            if (
error_reporting() & $t) {
                if (
__FILE__ !== $f) {
                    throw new \
ErrorException($m0$t$f$l);
                }

                throw new \
ReflectionException($m);
            }
        });

        
$prev = [];

        try {
            while (
$prev !== $classes) {
                
$prev $classes;
                foreach (
$classes as $c) {
                    if (!isset(
$preloaded[$c])) {
                        
self::doPreload($c$preloaded);
                    }
                }
                
$classes array_merge(get_declared_classes(), get_declared_interfaces(), get_declared_traits());
            }
        } finally {
            
restore_error_handler();
        }

        return 
$preloaded;
    }

    private static function 
doPreload(string $class, array &$preloaded): void
    
{
        if (isset(
$preloaded[$class]) || \in_array($class, ['self''static''parent'], true)) {
            return;
        }

        
$preloaded[$class] = true;

        try {
            if (!
class_exists($class) && !interface_exists($classfalse) && !trait_exists($classfalse)) {
                return;
            }

            
$r = new \ReflectionClass($class);

            if (
$r->isInternal()) {
                return;
            }

            
$r->getConstants();
            
$r->getDefaultProperties();

            if (\
PHP_VERSION_ID >= 70400) {
                foreach (
$r->getProperties(\ReflectionProperty::IS_PUBLIC) as $p) {
                    
self::preloadType($p->getType(), $preloaded);
                }
            }

            foreach (
$r->getMethods(\ReflectionMethod::IS_PUBLIC) as $m) {
                foreach (
$m->getParameters() as $p) {
                    if (
$p->isDefaultValueAvailable() && $p->isDefaultValueConstant()) {
                        
$c $p->getDefaultValueConstantName();

                        if (
$i strpos($c'::')) {
                            
self::doPreload(substr($c0$i), $preloaded);
                        }
                    }

                    
self::preloadType($p->getType(), $preloaded);
                }

                
self::preloadType($m->getReturnType(), $preloaded);
            }
        } catch (\
Throwable $e) {
            
// ignore missing classes
        
}
    }

    private static function 
preloadType(?\ReflectionType $t, array &$preloaded): void
    
{
        if (!
$t) {
            return;
        }

        foreach ((
$t instanceof \ReflectionUnionType || $t instanceof \ReflectionIntersectionType) ? $t->getTypes() : [$t] as $t) {
            if (!
$t->isBuiltin()) {
                
self::doPreload($t instanceof \ReflectionNamedType $t->getName() : $t$preloaded);
            }
        }
    }
}

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