!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_led/php/vendor/guzzlehttp/guzzle/src/Cookie/   drwxrwxr-x
Free 15.56 GB of 61.93 GB (25.13%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     FileCookieJar.php (2.25 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace GuzzleHttp\Cookie;

use 
GuzzleHttp\Utils;

/**
 * Persists non-session cookies using a JSON formatted file
 */
class FileCookieJar extends CookieJar
{
    
/** @var string filename */
    
private $filename;

    
/**
     * Create a new FileCookieJar object
     *
     * @param string $cookieFile File to store the cookie data
     *
     * @throws \RuntimeException if the file cannot be found or created
     */
    
public function __construct($cookieFile)
    {
        
$this->filename $cookieFile;

        if (
file_exists($cookieFile)) {
            
$this->load($cookieFile);
        }
    }

    
/**
     * Saves the file when shutting down
     */
    
public function __destruct()
    {
        
$this->save($this->filename);
    }

    
/**
     * Saves the cookies to a file.
     *
     * @param string $filename File to save
     * @throws \RuntimeException if the file cannot be found or created
     */
    
public function save($filename)
    {
        
$json = [];
        foreach (
$this as $cookie) {
            if (
$cookie->getExpires() && !$cookie->getDiscard()) {
                
$json[] = $cookie->toArray();
            }
        }

        if (
false === file_put_contents($filenamejson_encode($json))) {
            
// @codeCoverageIgnoreStart
            
throw new \RuntimeException("Unable to save file {$filename}");
            
// @codeCoverageIgnoreEnd
        
}
    }

    
/**
     * Load cookies from a JSON formatted file.
     *
     * Old cookies are kept unless overwritten by newly loaded ones.
     *
     * @param string $filename Cookie file to load.
     * @throws \RuntimeException if the file cannot be loaded.
     */
    
public function load($filename)
    {
        
$json file_get_contents($filename);
        if (
false === $json) {
            
// @codeCoverageIgnoreStart
            
throw new \RuntimeException("Unable to load file {$filename}");
            
// @codeCoverageIgnoreEnd
        
}

        
$data Utils::jsonDecode($jsontrue);
        if (
is_array($data)) {
            foreach (
Utils::jsonDecode($jsontrue) as $cookie) {
                
$this->setCookie(new SetCookie($cookie));
            }
        } elseif (
strlen($data)) {
            throw new \
RuntimeException("Invalid cookie file: {$filename}");
        }
    }
}

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