!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/3ros/simplesamlphp/www/auth/   drwxrwxr-x
Free 11.88 GB of 61.93 GB (19.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     login-tlsclient.php (2.16 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php


require_once('../_include.php');

$config SimpleSAML_Configuration::getInstance();
$metadata SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
$session SimpleSAML_Session::getInstance();

SimpleSAML_Logger::info('AUTH  - ldap: Accessing auth endpoint login');

$ldapconfig SimpleSAML_Configuration::getConfig('ldap.php');


$error null;
$attributes = array();
$username null;

/* Load the RelayState argument. The RelayState argument contains the address
 * we should redirect the user to after a successful authentication.
 */
if (!array_key_exists('RelayState'$_REQUEST)) {
    throw new 
SimpleSAML_Error_Error('NORELAYSTATE');
}

$relaystate $_REQUEST['RelayState'];


try {

    
$attributes = array();
    
$userid null;

    if (!
array_key_exists('SSL_CLIENT_VERIFY'$_SERVER))
        throw new 
Exception('Apache header variable SSL_CLIENT_VERIFY was not available. Recheck your apache configuration.');
    
    if (
strcmp($_SERVER['SSL_CLIENT_VERIFY'], "SUCCESS") != 0) {
        throw new 
SimpleSAML_Error_Error('NOTVALIDCERT'$e);
    }
    
    
$userid $_SERVER['SSL_CLIENT_S_DN'];
    
    
$attributes['CertificateDN']   = array($userid);
    
$attributes['CertificateDNCN'] = array($_SERVER['SSL_CLIENT_S_DN_CN']);
    
    
$session->doLogin('tlsclient');
    
$session->setAttributes($attributes);
    
    
#echo '<pre>';
    #print_r($_SERVER);
    #echo '</pre>'; exit;

    
SimpleSAML_Logger::info('AUTH - tlsclient: '$userid ' successfully authenticated');
    
    
    
$session->setNameID(array(
        
'value' => SimpleSAML_Utilities::generateID(),
        
'Format' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:transient'));
        
    
/**
     * Create a statistics log entry for every successfull login attempt.
     * Also log a specific attribute as set in the config: statistics.authlogattr
     */
    
$authlogattr $config->getValue('statistics.authlogattr'null);
    if (
$authlogattr && array_key_exists($authlogattr$attributes)) 
        
SimpleSAML_Logger::stats('AUTH-tlsclient OK ' $attributes[$authlogattr][0]);
    else 
        
SimpleSAML_Logger::stats('AUTH-tlsclient OK');
        

    
$returnto $_REQUEST['RelayState'];
    
SimpleSAML_Utilities::redirect($returnto);    
    
    
} catch (
Exception $e) {
    throw new 
SimpleSAML_Error_Error('CONFIG'$e);

}



?>

:: 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 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.7865 ]--