!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)

/var/www/html/laravel-crm/vendor/php-debugbar/php-debugbar/src/DebugBar/DataCollector/   drwxrwxrwx
Free 13.13 GB of 57.97 GB (22.65%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     RequestDataCollector.php (3.42 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * This file is part of the DebugBar package.
 *
 * (c) 2013 Maxime Bouroumeau-Fuseau
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace DebugBar\DataCollector;

/**
 * Collects info about the current request
 */
class RequestDataCollector extends DataCollector implements RenderableAssetProvider
{
    
/**
     * @var array[]
     */
    
private $blacklist = [
        
'_GET' => [],
        
'_POST' => [],
        
'_COOKIE' => [],
        
'_SESSION' => [],
    ];

    
/**
     * @return array
     */
    
public function collect()
    {
        
$vars array_keys($this->blacklist);
        
$data = array();

        foreach (
$vars as $var) {
            if (! isset(
$GLOBALS[$var])) {
                continue;
            }

            
$key "$" $var;
            
$value $this->masked($GLOBALS[$var], $var);

            if (
$this->isHtmlVarDumperUsed()) {
                
$data[$key] = $this->getVarDumper()->renderVar($value);
            } else {
                
$data[$key] = $this->getDataFormatter()->formatVar($value);
            }
        }

        return 
$data;
    }

    
/**
     * Hide a sensitive value within one of the superglobal arrays.
     *
     * @param string $superGlobalName The name of the superglobal array, e.g. '_GET'
     * @param string|array $key       The key within the superglobal
     * @return void
     */
    
public function hideSuperglobalKeys($superGlobalName$keys)
    {
        if (!
is_array($keys)) {
            
$keys = [$keys];
        }

        if (!isset(
$this->blacklist[$superGlobalName])) {
            
$this->blacklist[$superGlobalName] = [];
        }

        foreach (
$keys as $key) {
            
$this->blacklist[$superGlobalName][] = $key;
        }
    }

    
/**
     * Checks all values within the given superGlobal array.
     *
     * Blacklisted values will be replaced by a equal length string containing
     * only '*' characters for string values.
     * Non-string values will be replaced with a fixed asterisk count.
     *
     * @param array|\ArrayAccess  $superGlobal     One of the superglobal arrays
     * @param string $superGlobalName The name of the superglobal array, e.g. '_GET'
     *
     * @return array $values without sensitive data
     */
    
private function masked($superGlobal$superGlobalName)
    {
        
$blacklisted $this->blacklist[$superGlobalName];

        
$values $superGlobal;

        foreach (
$blacklisted as $key) {
            if (isset(
$superGlobal[$key])) {
                
$values[$key] = str_repeat('*'is_string($superGlobal[$key]) ? strlen($superGlobal[$key]) : 3);
            }
        }

        return 
$values;
    }

    
/**
     * @return string
     */
    
public function getName()
    {
        return 
'request';
    }

    
/**
     * @return array
     */
    
public function getAssets() {
        return 
$this->isHtmlVarDumperUsed() ? $this->getVarDumper()->getAssets() : array();
    }

    
/**
     * @return array
     */
    
public function getWidgets()
    {
        
$widget $this->isHtmlVarDumperUsed()
            ? 
"PhpDebugBar.Widgets.HtmlVariableListWidget"
            
"PhpDebugBar.Widgets.VariableListWidget";
        return array(
            
"request" => array(
                
"icon" => "tags",
                
"widget" => $widget,
                
"map" => "request",
                
"default" => "{}"
            
)
        );
    }
}

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