!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_tdfonline/php/3ros/guzzle/guzzle/guzzle/src/Guzzle/Parser/Cookie/   drwxr-xr-x
Free 13.83 GB of 61.93 GB (22.34%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Guzzle\Parser\Cookie;

/**
 * Default Guzzle implementation of a Cookie parser
 */
class CookieParser implements CookieParserInterface
{
    
/** @var array Cookie part names to snake_case array values */
    
protected static $cookieParts = array(
        
'domain'      => 'Domain',
        
'path'        => 'Path',
        
'max_age'     => 'Max-Age',
        
'expires'     => 'Expires',
        
'version'     => 'Version',
        
'secure'      => 'Secure',
        
'port'        => 'Port',
        
'discard'     => 'Discard',
        
'comment'     => 'Comment',
        
'comment_url' => 'Comment-Url',
        
'http_only'   => 'HttpOnly'
    
);

    public function 
parseCookie($cookie$host null$path null$decode false)
    {
        
// Explode the cookie string using a series of semicolons
        
$pieces array_filter(array_map('trim'explode(';'$cookie)));

        
// The name of the cookie (first kvp) must include an equal sign.
        
if (empty($pieces) || !strpos($pieces[0], '=')) {
            return 
false;
        }

        
// Create the default return array
        
$data array_merge(array_fill_keys(array_keys(self::$cookieParts), null), array(
            
'cookies'   => array(),
            
'data'      => array(),
            
'path'      => $path ?: '/',
            
'http_only' => false,
            
'discard'   => false,
            
'domain'    => $host
        
));
        
$foundNonCookies 0;

        
// Add the cookie pieces into the parsed data array
        
foreach ($pieces as $part) {

            
$cookieParts explode('='$part2);
            
$key trim($cookieParts[0]);

            if (
count($cookieParts) == 1) {
                
// Can be a single value (e.g. secure, httpOnly)
                
$value true;
            } else {
                
// Be sure to strip wrapping quotes
                
$value trim($cookieParts[1], " \n\r\t\0\x0B\"");
                if (
$decode) {
                    
$value urldecode($value);
                }
            }

            
// Only check for non-cookies when cookies have been found
            
if (!empty($data['cookies'])) {
                foreach (
self::$cookieParts as $mapValue => $search) {
                    if (!
strcasecmp($search$key)) {
                        
$data[$mapValue] = $mapValue == 'port' array_map('trim'explode(','$value)) : $value;
                        
$foundNonCookies++;
                        continue 
2;
                    }
                }
            }

            
// If cookies have not yet been retrieved, or this value was not found in the pieces array, treat it as a
            // cookie. IF non-cookies have been parsed, then this isn't a cookie, it's cookie data. Cookies then data.
            
$data[$foundNonCookies 'data' 'cookies'][$key] = $value;
        }

        
// Calculate the expires date
        
if (!$data['expires'] && $data['max_age']) {
            
$data['expires'] = time() + (int) $data['max_age'];
        }

        return 
$data;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.9774 ]--