!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/monolog/monolog/src/Monolog/Processor/   drwxrwxr-x
Free 15.58 GB of 61.93 GB (25.15%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     WebProcessor.php (3.14 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Monolog package.
 *
 * (c) Jordi Boggiano <j.boggiano@seld.be>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Monolog\Processor;

/**
 * Injects url/method and remote IP of the current web request in all records
 *
 * @author Jordi Boggiano <j.boggiano@seld.be>
 */
class WebProcessor
{
    
/**
     * @var array|\ArrayAccess
     */
    
protected $serverData;

    
/**
     * Default fields
     *
     * Array is structured as [key in record.extra => key in $serverData]
     *
     * @var array
     */
    
protected $extraFields = array(
        
'url'         => 'REQUEST_URI',
        
'ip'          => 'REMOTE_ADDR',
        
'http_method' => 'REQUEST_METHOD',
        
'server'      => 'SERVER_NAME',
        
'referrer'    => 'HTTP_REFERER',
    );

    
/**
     * @param array|\ArrayAccess $serverData  Array or object w/ ArrayAccess that provides access to the $_SERVER data
     * @param array|null         $extraFields Field names and the related key inside $serverData to be added. If not provided it defaults to: url, ip, http_method, server, referrer
     */
    
public function __construct($serverData null, array $extraFields null)
    {
        if (
null === $serverData) {
            
$this->serverData = &$_SERVER;
        } elseif (
is_array($serverData) || $serverData instanceof \ArrayAccess) {
            
$this->serverData $serverData;
        } else {
            throw new \
UnexpectedValueException('$serverData must be an array or object implementing ArrayAccess.');
        }

        if (
null !== $extraFields) {
            if (isset(
$extraFields[0])) {
                foreach (
array_keys($this->extraFields) as $fieldName) {
                    if (!
in_array($fieldName$extraFields)) {
                        unset(
$this->extraFields[$fieldName]);
                    }
                }
            } else {
                
$this->extraFields $extraFields;
            }
        }
    }

    
/**
     * @param  array $record
     * @return array
     */
    
public function __invoke(array $record)
    {
        
// skip processing if for some reason request data
        // is not present (CLI or wonky SAPIs)
        
if (!isset($this->serverData['REQUEST_URI'])) {
            return 
$record;
        }

        
$record['extra'] = $this->appendExtraFields($record['extra']);

        return 
$record;
    }

    
/**
     * @param  string $extraName
     * @param  string $serverName
     * @return $this
     */
    
public function addExtraField($extraName$serverName)
    {
        
$this->extraFields[$extraName] = $serverName;

        return 
$this;
    }

    
/**
     * @param  array $extra
     * @return array
     */
    
private function appendExtraFields(array $extra)
    {
        foreach (
$this->extraFields as $extraName => $serverName) {
            
$extra[$extraName] = isset($this->serverData[$serverName]) ? $this->serverData[$serverName] : null;
        }

        if (isset(
$this->serverData['UNIQUE_ID'])) {
            
$extra['unique_id'] = $this->serverData['UNIQUE_ID'];
        }

        return 
$extra;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5198 ]--