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


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

/**
 * This file will help doing XPath queries in SAML 2 XML documents.
 *
 * @author Andreas Åkre Solberg, UNINETT AS. <andreas.solberg@uninett.no>
 * @package simpleSAMLphp
 * @version $Id: Parser.php 222 2008-01-30 11:10:10Z andreassolberg $
 */
class SimpleSAML_XML_Parser  {

    var 
$simplexml null;

    
    function 
__construct($xml) {
        
#parent::construct($xml);
        
$this->simplexml = new SimpleXMLElement($xml);
        
        
$this->simplexml->registerXPathNamespace('saml2',     'urn:oasis:names:tc:SAML:2.0:assertion');
        
$this->simplexml->registerXPathNamespace('saml2meta''urn:oasis:names:tc:SAML:2.0:metadata');
        
$this->simplexml->registerXPathNamespace('ds',        'http://www.w3.org/2000/09/xmldsig#');
        
    }
    
    public static function 
fromSimpleXMLElement(SimpleXMLElement $element) {
        
        
// Traverse all existing namespaces in element.
        
$namespaces $element->getNamespaces();
        foreach (
$namespaces AS $prefix => $ns) {
            
$element[(($prefix === '') ? 'xmlns' 'xmlns:' $prefix)] = $ns;
        }
        
        
/* Create a new parser with the xml document where the namespace definitions
         * are added.
         */
        
$parser = new SimpleSAML_XML_Parser($element->asXML());
        return 
$parser;
        
    }
    
    public function 
getValueDefault($xpath$defvalue) {
        try {
            return 
$this->getValue($xpathtrue);
        } catch (
Exception $e) {
            return 
$defvalue;
        }
    }
    
    public function 
getValue($xpath$required false) {
        
        
$result $this->simplexml->xpath($xpath);
        if (! 
$result or !is_array($result)) {
            if (
$required) throw new Exception('Could not get value from XML document using the following XPath expression: ' $xpath);
                else return 
null;
        }
        return (string) 
$result[0];
    }
    
    public function 
getValueAlternatives(array $xpath$required false) {
        foreach (
$xpath AS $x) {
            
$seek $this->getValue($x);
            if (
$seek) return $seek;
        }
        if (
$required) throw new Exception('Could not get value from XML document using multiple alternative XPath expressions.');
            else return 
null;
    }
    
}

?>

:: 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: 1.0571 ]--