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


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

namespace Illuminate\Database\Connectors;

use 
Doctrine\DBAL\Driver\PDOConnection;
use 
Exception;
use 
Illuminate\Database\DetectsLostConnections;
use 
PDO;
use 
Throwable;

class 
Connector
{
    use 
DetectsLostConnections;

    
/**
     * The default PDO connection options.
     *
     * @var array
     */
    
protected $options = [
        
PDO::ATTR_CASE => PDO::CASE_NATURAL,
        
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
        
PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL,
        
PDO::ATTR_STRINGIFY_FETCHES => false,
        
PDO::ATTR_EMULATE_PREPARES => false,
    ];

    
/**
     * Create a new PDO connection.
     *
     * @param  string  $dsn
     * @param  array  $config
     * @param  array  $options
     * @return \PDO
     *
     * @throws \Exception
     */
    
public function createConnection($dsn, array $config, array $options)
    {
        [
$username$password] = [
            
$config['username'] ?? null$config['password'] ?? null,
        ];

        try {
            return 
$this->createPdoConnection(
                
$dsn$username$password$options
            
);
        } catch (
Exception $e) {
            return 
$this->tryAgainIfCausedByLostConnection(
                
$e$dsn$username$password$options
            
);
        }
    }

    
/**
     * Create a new PDO connection instance.
     *
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     */
    
protected function createPdoConnection($dsn$username$password$options)
    {
        if (
class_exists(PDOConnection::class) && ! $this->isPersistentConnection($options)) {
            return new 
PDOConnection($dsn$username$password$options);
        }

        return new 
PDO($dsn$username$password$options);
    }

    
/**
     * Determine if the connection is persistent.
     *
     * @param  array  $options
     * @return bool
     */
    
protected function isPersistentConnection($options)
    {
        return isset(
$options[PDO::ATTR_PERSISTENT]) &&
               
$options[PDO::ATTR_PERSISTENT];
    }

    
/**
     * Handle an exception that occurred during connect execution.
     *
     * @param  \Throwable  $e
     * @param  string  $dsn
     * @param  string  $username
     * @param  string  $password
     * @param  array  $options
     * @return \PDO
     *
     * @throws \Exception
     */
    
protected function tryAgainIfCausedByLostConnection(Throwable $e$dsn$username$password$options)
    {
        if (
$this->causedByLostConnection($e)) {
            return 
$this->createPdoConnection($dsn$username$password$options);
        }

        throw 
$e;
    }

    
/**
     * Get the PDO options based on the configuration.
     *
     * @param  array  $config
     * @return array
     */
    
public function getOptions(array $config)
    {
        
$options $config['options'] ?? [];

        return 
array_diff_key($this->options$options) + $options;
    }

    
/**
     * Get the default PDO connection options.
     *
     * @return array
     */
    
public function getDefaultOptions()
    {
        return 
$this->options;
    }

    
/**
     * Set the default PDO connection options.
     *
     * @param  array  $options
     * @return void
     */
    
public function setDefaultOptions(array $options)
    {
        
$this->options $options;
    }
}

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