!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/enlightn/enlightn/src/Analyzers/Concerns/   drwxr-xr-x
Free 13.11 GB of 57.97 GB (22.61%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Enlightn\Enlightn\Analyzers\Concerns;

use 
GuzzleHttp\Client;
use 
GuzzleHttp\Exception\GuzzleException;

trait 
AnalyzesHeaders
{
    
/**
     * The Guzzle client instance.
     *
     * @var \GuzzleHttp\Client
     */
    
protected $client;

    
/**
     * Set the Guzzle client.
     *
     * @param \GuzzleHttp\Client $client
     */
    
public function setClient(Client $client)
    {
        
$this->client $client;
    }

    
/**
     * Determine if the header(s) exist on the URL.
     *
     * @param string|null $url
     * @param string|array $headers
     * @param array $options
     * @return bool
     */
    
protected function headerExistsOnUrl($url$headers$options = [])
    {
        if (
is_null($url)) {
            
// If we can't find the route, we cannot perform this check.
            
return false;
        }

        try {
            
$response $this->client->get($urlarray_merge(['http_errors' => false], $options));

            return 
collect($headers)->contains(function ($header) use ($response) {
                return 
$response->hasHeader($header);
            });
        } catch (
GuzzleException $e) {
            return 
false;
        }
    }

    
/**
     * Get the headers on the URL.
     *
     * @param  string|null  $url
     * @param  string  $header
     * @param  array  $options
     * @return array
     */
    
protected function getHeadersOnUrl($urlstring $header$options = [])
    {
        if (
is_null($url)) {
            
// If we can't find the route, we cannot perform this check.
            
return [];
        }

        try {
            
$response $this->client->get($urlarray_merge(['http_errors' => false], $options));

            return 
$response->getHeader($header);
        } catch (
GuzzleException $e) {
            return [];
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0089 ]--