!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/Cache/Marshaller/   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:     TagAwareMarshaller.php (3.03 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\Cache\Marshaller;

/**
 * A marshaller optimized for data structures generated by AbstractTagAwareAdapter.
 *
 * @author Nicolas Grekas <[email protected]>
 */
class TagAwareMarshaller implements MarshallerInterface
{
    private 
$marshaller;

    public function 
__construct(MarshallerInterface $marshaller null)
    {
        
$this->marshaller $marshaller ?? new DefaultMarshaller();
    }

    
/**
     * {@inheritdoc}
     */
    
public function marshall(array $values, ?array &$failed): array
    {
        
$failed $notSerialized $serialized = [];

        foreach (
$values as $id => $value) {
            if (\
is_array($value) && \is_array($value['tags'] ?? null) && \array_key_exists('value'$value) && \count($value) === + (\is_string($value['meta'] ?? null) && === \strlen($value['meta']))) {
                
// if the value is an array with keys "tags", "value" and "meta", use a compact serialization format
                // magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F allow detecting this format quickly in unmarshall()

                
$v $this->marshaller->marshall($value$f);

                if (
$f) {
                    
$f = [];
                    
$failed[] = $id;
                } else {
                    if ([] === 
$value['tags']) {
                        
$v['tags'] = '';
                    }

                    
$serialized[$id] = "\x9D".($value['meta'] ?? "\0\0\0\0\0\0\0\0").pack('N', \strlen($v['tags'])).$v['tags'].$v['value'];
                    
$serialized[$id][9] = "\x5F";
                }
            } else {
                
// other arbitratry values are serialized using the decorated marshaller below
                
$notSerialized[$id] = $value;
            }
        }

        if (
$notSerialized) {
            
$serialized += $this->marshaller->marshall($notSerialized$f);
            
$failed array_merge($failed$f);
        }

        return 
$serialized;
    }

    
/**
     * {@inheritdoc}
     */
    
public function unmarshall(string $value)
    {
        
// detect the compact format used in marshall() using magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F
        
if (13 >= \strlen($value) || "\x9D" !== $value[0] || "\0" !== $value[5] || "\x5F" !== $value[9]) {
            return 
$this->marshaller->unmarshall($value);
        }

        
// data consists of value, tags and metadata which we need to unpack
        
$meta substr($value112);
        
$meta[8] = "\0";
        
$tagLen unpack('Nlen'$meta8)['len'];
        
$meta substr($meta08);

        return [
            
'value' => $this->marshaller->unmarshall(substr($value13 $tagLen)),
            
'tags' => $tagLen $this->marshaller->unmarshall(substr($value13$tagLen)) : [],
            
'meta' => "\0\0\0\0\0\0\0\0" === $meta null $meta,
        ];
    }
}

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