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


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

/* Load simpleSAMLphp, configuration and metadata */
$config SimpleSAML_Configuration::getInstance();
$metaconfig SimpleSAML_Configuration::getConfig('module_metaedit.php');

$mdh = new SimpleSAML_Metadata_MetaDataStorageHandlerSerialize($metaconfig->getValue('metahandlerConfig'NULL));

$authsource $metaconfig->getValue('auth''login-admin');
$useridattr $metaconfig->getValue('useridattr''eduPersonPrincipalName');

$as = new SimpleSAML_Auth_Simple($authsource);
$as->requireAuth();
$attributes $as->getAttributes();
// Check if userid exists
if (!isset($attributes[$useridattr]))
    throw new 
Exception('User ID is missing');
$userid $attributes[$useridattr][0];

function 
requireOwnership($metadata$userid) {
    if (!isset(
$metadata['owner']))
        throw new 
Exception('Metadata has no owner. Which means no one is granted access, not even you.');
    if (
$metadata['owner'] !== $userid
        throw new 
Exception('Metadata has an owner that is not equal to your userid, hence you are not granted access.');
}


if (isset(
$_REQUEST['delete'])) {
    
$premetadata $mdh->getMetadata($_REQUEST['delete'], 'saml20-sp-remote');    
    
requireOwnership($premetadata$userid);
    
$mdh->deleteMetadata($_REQUEST['delete'], 'saml20-sp-remote');
}


$list $mdh->getMetadataSet('saml20-sp-remote');

$slist = array('mine' => array(), 'others' => array());
foreach(
$list AS $listitem) {
    if (
array_key_exists('owner'$listitem)) {
        if (
$listitem['owner'] === $userid) {
            
$slist['mine'][] = $listitem; continue;
        }
    }
    
$slist['others'][] = $listitem;
}


$template = new SimpleSAML_XHTML_Template($config'metaedit:metalist.php');
$template->data['metadata'] = $slist;
$template->data['userid'] = $userid;
$template->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.4922 ]--