!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/modules/smartattributes/lib/Auth/Process/   drwxrwxr-x
Free 11.73 GB of 61.93 GB (18.94%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

class sspmod_smartattributes_Auth_Process_SmartID extends SimpleSAML_Auth_ProcessingFilter {

    
/**
     * Which attributes to use as identifiers?
     *
     * IMPORTANT: If you use the (default) attributemaps (twitter2name, facebook2name,
     * etc., be sure to comment out the entries that map xxx_targetedID to
     * eduPersonTargetedID, or there will be no way to see its origin any more.
     */
    
private $_candidates = array(
        
'eduPersonTargetedID',
        
'eduPersonPrincipalName',
        
'openid',
        
'facebook_targetedID',
        
'twitter_targetedID',
        
'windowslive_targetedID',
        
'myspace_targetedID',
        
'linkedin_targetedID',
    );

    
/**
     * The name of the generated ID attribute.
     */
    
private $_id_attribute 'smart_id';

    
/**
     * Whether to append the AuthenticatingAuthority, separated by '!'
     * This only works when SSP is used as a gateway.
     */
    
private $_add_authority true;

    
/**
     * Attributes which should be added/appended.
     *
     * Associative array of arrays.
     */
    
private $attributes = array();


    public function 
__construct($config$reserved) {
        
parent::__construct($config$reserved);

        
assert('is_array($config)');

        if (
array_key_exists('candidates'$config)) {
            
$this->_candidates $config['candidates'];
            if (!
is_array($this->_candidates)) {
                throw new 
Exception('SmartID authproc configuration error: \'candidates\' should be an array.');
            }
        }

        if (
array_key_exists('id_attribute'$config)) {
            
$this->_id_attribute $config['id_attribute'];
            if (!
is_string($this->_id_attribute)) {
                throw new 
Exception('SmartID authproc configuration error: \'id_attribute\' should be a string.');
            }
        }

        if (
array_key_exists('add_authority'$config)) {
            
$this->_add_authority $config['add_authority'];
            if (!
is_bool($this->_add_authority)) {
                throw new 
Exception('SmartID authproc configuration error: \'add_authority\' should be a boolean.');
            }
        }

    }

    private function 
addID($attributes$request) {
        foreach (
$this->_candidates as $idCandidate) {
            if (isset(
$attributes[$idCandidate][0])) {
                if((
$this->_add_authority) && (isset($request['saml:AuthenticatingAuthority'][0]))) {
                    return 
$idCandidate.':'.$attributes[$idCandidate][0] . '!' $request['saml:AuthenticatingAuthority'][0];
                } else {
                    return 
$idCandidate.':'.$attributes[$idCandidate][0];
                }
            }
        }
        
/*
        * At this stage no usable id_candidate has been detected.
        */
        
throw new SimpleSAML_Error_Exception('This service needs at least one of the following
        attributes to identity users: '
.implode(', '$this->_candidates).'. Unfortunately not
        one of them was detected. Please ask your institution administrator to release one of
        them, or try using another identity provider.'
);
    }


    
/**
     * Apply filter to add or replace attributes.
     *
     * Add or replace existing attributes with the configured values.
     *
     * @param array &$request  The current request
     */
    
public function process(&$request) {
        
assert('is_array($request)');
        
assert('array_key_exists("Attributes", $request)');

        
$ID $this->addID($request['Attributes'], $request);

        if(isset(
$ID)) $request['Attributes'][$this->_id_attribute] = array($ID);
    }
}

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