!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/notification/vendor/illuminate/cache/   drwxr-xr-x
Free 13.16 GB of 57.97 GB (22.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Cache;

use 
Memcached;

class 
MemcachedConnector
{
    
/**
     * Create a new Memcached connection.
     *
     * @param  array  $servers
     * @param  string|null  $connectionId
     * @param  array  $options
     * @param  array  $credentials
     * @return \Memcached
     */
    
public function connect(array $servers$connectionId null, array $options = [], array $credentials = [])
    {
        
$memcached $this->getMemcached(
            
$connectionId$credentials$options
        
);

        if (! 
$memcached->getServerList()) {
            
// For each server in the array, we'll just extract the configuration and add
            // the server to the Memcached connection. Once we have added all of these
            // servers we'll verify the connection is successful and return it back.
            
foreach ($servers as $server) {
                
$memcached->addServer(
                    
$server['host'], $server['port'], $server['weight']
                );
            }
        }

        return 
$memcached;
    }

    
/**
     * Get a new Memcached instance.
     *
     * @param  string|null  $connectionId
     * @param  array  $credentials
     * @param  array  $options
     * @return \Memcached
     */
    
protected function getMemcached($connectionId, array $credentials, array $options)
    {
        
$memcached $this->createMemcachedInstance($connectionId);

        if (
count($credentials) === 2) {
            
$this->setCredentials($memcached$credentials);
        }

        if (
count($options)) {
            
$memcached->setOptions($options);
        }

        return 
$memcached;
    }

    
/**
     * Create the Memcached instance.
     *
     * @param  string|null  $connectionId
     * @return \Memcached
     */
    
protected function createMemcachedInstance($connectionId)
    {
        return empty(
$connectionId) ? new Memcached : new Memcached($connectionId);
    }

    
/**
     * Set the SASL credentials on the Memcached connection.
     *
     * @param  \Memcached  $memcached
     * @param  array  $credentials
     * @return void
     */
    
protected function setCredentials($memcached$credentials)
    {
        [
$username$password] = $credentials;

        
$memcached->setOption(Memcached::OPT_BINARY_PROTOCOLtrue);

        
$memcached->setSaslAuthData($username$password);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0734 ]--