!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/VarExporter/Internal/   drwxr-xr-x
Free 83.25 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:     Hydrator.php (5.26 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\VarExporter\Internal;

use 
Symfony\Component\VarExporter\Exception\ClassNotFoundException;

/**
 * @author Nicolas Grekas <[email protected]>
 *
 * @internal
 */
class Hydrator
{
    public static 
$hydrators = [];

    public 
$registry;
    public 
$values;
    public 
$properties;
    public 
$value;
    public 
$wakeups;

    public function 
__construct(?Registry $registry, ?Values $values, array $properties$value, array $wakeups)
    {
        
$this->registry $registry;
        
$this->values $values;
        
$this->properties $properties;
        
$this->value $value;
        
$this->wakeups $wakeups;
    }

    public static function 
hydrate($objects$values$properties$value$wakeups)
    {
        foreach (
$properties as $class => $vars) {
            (
self::$hydrators[$class] ?? self::getHydrator($class))($vars$objects);
        }
        foreach (
$wakeups as $k => $v) {
            if (\
is_array($v)) {
                
$objects[-$k]->__unserialize($v);
            } else {
                
$objects[$v]->__wakeup();
            }
        }

        return 
$value;
    }

    public static function 
getHydrator($class)
    {
        if (
'stdClass' === $class) {
            return 
self::$hydrators[$class] = static function ($properties$objects) {
                foreach (
$properties as $name => $values) {
                    foreach (
$values as $i => $v) {
                        
$objects[$i]->$name $v;
                    }
                }
            };
        }

        if (!
class_exists($class) && !interface_exists($classfalse) && !trait_exists($classfalse)) {
            throw new 
ClassNotFoundException($class);
        }
        
$classReflector = new \ReflectionClass($class);

        if (!
$classReflector->isInternal()) {
            return 
self::$hydrators[$class] = (self::$hydrators['stdClass'] ?? self::getHydrator('stdClass'))->bindTo(null$class);
        }

        if (
$classReflector->name !== $class) {
            return 
self::$hydrators[$classReflector->name] ?? self::getHydrator($classReflector->name);
        }

        switch (
$class) {
            case 
'ArrayIterator':
            case 
'ArrayObject':
                
$constructor = \Closure::fromCallable([$classReflector->getConstructor(), 'invokeArgs']);

                return 
self::$hydrators[$class] = static function ($properties$objects) use ($constructor) {
                    foreach (
$properties as $name => $values) {
                        if (
"\0" !== $name) {
                            foreach (
$values as $i => $v) {
                                
$objects[$i]->$name $v;
                            }
                        }
                    }
                    foreach (
$properties["\0"] ?? [] as $i => $v) {
                        
$constructor($objects[$i], $v);
                    }
                };

            case 
'ErrorException':
                return 
self::$hydrators[$class] = (self::$hydrators['stdClass'] ?? self::getHydrator('stdClass'))->bindTo(null, new class() extends \ErrorException {
                });

            case 
'TypeError':
                return 
self::$hydrators[$class] = (self::$hydrators['stdClass'] ?? self::getHydrator('stdClass'))->bindTo(null, new class() extends \Error {
                });

            case 
'SplObjectStorage':
                return 
self::$hydrators[$class] = static function ($properties$objects) {
                    foreach (
$properties as $name => $values) {
                        if (
"\0" === $name) {
                            foreach (
$values as $i => $v) {
                                for (
$j 0$j < \count($v); ++$j) {
                                    
$objects[$i]->attach($v[$j], $v[++$j]);
                                }
                            }
                            continue;
                        }
                        foreach (
$values as $i => $v) {
                            
$objects[$i]->$name $v;
                        }
                    }
                };
        }

        
$propertySetters = [];
        foreach (
$classReflector->getProperties() as $propertyReflector) {
            if (!
$propertyReflector->isStatic()) {
                
$propertyReflector->setAccessible(true);
                
$propertySetters[$propertyReflector->name] = \Closure::fromCallable([$propertyReflector'setValue']);
            }
        }

        if (!
$propertySetters) {
            return 
self::$hydrators[$class] = self::$hydrators['stdClass'] ?? self::getHydrator('stdClass');
        }

        return 
self::$hydrators[$class] = static function ($properties$objects) use ($propertySetters) {
            foreach (
$properties as $name => $values) {
                if (
$setValue $propertySetters[$name] ?? null) {
                    foreach (
$values as $i => $v) {
                        
$setValue($objects[$i], $v);
                    }
                    continue;
                }
                foreach (
$values as $i => $v) {
                    
$objects[$i]->$name $v;
                }
            }
        };
    }
}

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