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


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

/**
 * Filter to set name in a smart way, based on available name attributes.
 *
 * @author Andreas Åkre Solberg, UNINETT AS.
 * @package simpleSAMLphp
 * @version $Id$
 */
class sspmod_smartnameattribute_Auth_Process_SmartName extends SimpleSAML_Auth_ProcessingFilter {

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


    private function 
getFullName($attributes) {
        if (isset(
$attributes['displayName']))
            return 
$attributes['displayName'][0];
        
        if (isset(
$attributes['cn'])) {
            if (
count(explode(' '$attributes['cn'][0])) > 1)
                return 
$attributes['cn'][0];
        }
        
        if (isset(
$attributes['sn']) && isset($attributes['givenName']))
            return 
$attributes['givenName'][0] . ' ' $attributes['sn'][0];

        if (isset(
$attributes['cn']))
            return 
$attributes['cn'][0];

        if (isset(
$attributes['sn']))
            return 
$attributes['sn'][0];

        if (isset(
$attributes['givenName']))
            return 
$attributes['givenName'][0];
        
        if (isset(
$attributes['eduPersonPrincipalName'])) {
            
$localname $this->getLocalUser($attributes['eduPersonPrincipalName'][0]);
            if (isset(
$localname)) return $localname;
        }        
        
        return 
NULL;
    }
    
    private function 
getLocalUser($userid) {
        if (
strpos($userid'@') === FALSE) return NULL;
        
$decomposed explode('@'$userid);
        if(
count($decomposed) === 2) {
            return 
$decomposed[0];
        }
        return 
NULL;
    }

    
/**
     * 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)');

        
SimpleSAML_Logger::warning('You are using the deprecated smartnameattribute:SmartName filter. You should replace it with smartattributes:SmartName instead.');

        
$attributes =& $request['Attributes'];
        
        
$fullname $this->getFullName($attributes);
        
        if(isset(
$fullname)) $request['Attributes']['smartname-fullname'] = array($fullname);
        
    }

}

?>

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