smsonayla.org - c99shell

!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: LiteSpeed. PHP/7.4.33 

uname -a: Linux server704.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13
UTC 2025 x86_64
 

uid=1309(necipbey) gid=1314(necipbey) groups=1314(necipbey) 

Safe-mode: OFF (not secure)

/home/necipbey/public_html/system/Session/Handlers/Database/   drwxr-xr-x
Free 3429.08 GB of 4265.01 GB (80.4%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/**
 * This file is part of CodeIgniter 4 framework.
 *
 * (c) CodeIgniter Foundation <admin@codeigniter.com>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

namespace CodeIgniter\Session\Handlers\Database;

use 
CodeIgniter\Database\BaseBuilder;
use 
CodeIgniter\Session\Handlers\DatabaseHandler;
use 
ReturnTypeWillChange;

/**
 * Session handler for Postgre
 */
class PostgreHandler extends DatabaseHandler
{
    
/**
     * Sets SELECT clause
     */
    
protected function setSelect(BaseBuilder $builder)
    {
        
$builder->select("encode(data, 'base64') AS data");
    }

    
/**
     * Decodes column data
     *
     * @param mixed $data
     *
     * @return false|string
     */
    
protected function decodeData($data)
    {
        return 
base64_decode(rtrim($data), true);
    }

    
/**
     * Prepare data to insert/update
     */
    
protected function prepareData(string $data): string
    
{
        return 
'\x' bin2hex($data);
    }

    
/**
     * Cleans up expired sessions.
     *
     * @param int $max_lifetime Sessions that have not updated
     *                          for the last max_lifetime seconds will be removed.
     *
     * @return false|int Returns the number of deleted sessions on success, or false on failure.
     */
    #[ReturnTypeWillChange]
    
public function gc($max_lifetime)
    {
        
$separator '\'';
        
$interval  implode($separator, [''"{$max_lifetime} second"'']);

        return 
$this->db->table($this->table)->where('timestamp <'"now() - INTERVAL {$interval}"false)->delete() ? $this->fail();
    }

    
/**
     * Lock the session.
     */
    
protected function lockSession(string $sessionID): bool
    
{
        
$arg "hashtext('{$sessionID}')" . ($this->matchIP ", hashtext('{$this->ipAddress}')" '');
        if (
$this->db->simpleQuery("SELECT pg_advisory_lock({$arg})")) {
            
$this->lock $arg;

            return 
true;
        }

        return 
$this->fail();
    }

    
/**
     * Releases the lock, if any.
     */
    
protected function releaseLock(): bool
    
{
        if (! 
$this->lock) {
            return 
true;
        }

        if (
$this->db->simpleQuery("SELECT pg_advisory_unlock({$this->lock})")) {
            
$this->lock false;

            return 
true;
        }

        return 
$this->fail();
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.004 ]--