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


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

/**
 * Class handling encrypted assertions.
 *
 * @package simpleSAMLphp
 * @version $Id$
 */
class SAML2_EncryptedAssertion {

    
/**
     * The current encrypted assertion.
     *
     * @var DOMElement
     */
    
private $encryptedData;


    
/**
     * Constructor for SAML 2 encrypted assertions.
     *
     * @param DOMElement|NULL $xml  The encrypted assertion XML element.
     */
    
public function __construct(DOMElement $xml NULL) {
        if (
$xml === NULL) {
            return;
        }

        
$data SAML2_Utils::xpQuery($xml'./xenc:EncryptedData');
        if (
count($data) === 0) {
            throw new 
Exception('Missing encrypted data in <saml:EncryptedAssertion>.');
        } elseif (
count($data) > 1) {
            throw new 
Exception('More than one encrypted data element in <saml:EncryptedAssertion>.');
        }
        
$this->encryptedData $data[0];
    }


    
/**
     * Set the assertion.
     *
     * @param SAML2_Assertion $assertion  The assertion.
     * @param XMLSecurityKey $key  The key we should use to encrypt the assertion.
     */
    
public function setAssertion(SAML2_Assertion $assertionXMLSecurityKey $key) {

        
$xml $assertion->toXML();

        
SimpleSAML_Utilities::debugMessage($xml'encrypt');

        
$enc = new XMLSecEnc();
        
$enc->setNode($xml);
        
$enc->type XMLSecEnc::Element;

        switch (
$key->type) {
        case 
XMLSecurityKey::TRIPLEDES_CBC:
        case 
XMLSecurityKey::AES128_CBC:
        case 
XMLSecurityKey::AES192_CBC:
        case 
XMLSecurityKey::AES256_CBC:
            
$symmetricKey $key;
            break;

        case 
XMLSecurityKey::RSA_1_5:
        case 
XMLSecurityKey::RSA_OAEP_MGF1P:
            
$symmetricKey = new XMLSecurityKey(XMLSecurityKey::AES128_CBC);
            
$symmetricKey->generateSessionKey();

            
$enc->encryptKey($key$symmetricKey);

            break;

        default:
            throw new 
Exception('Unknown key type for encryption: ' $key->type);
        }

        
$this->encryptedData $enc->encryptNode($symmetricKey);
    }


    
/**
     * Retrieve the assertion.
     *
     * @param XMLSecurityKey $key  The key we should use to decrypt the assertion.
     * @param array $blacklist  Blacklisted decryption algorithms.
     * @return SAML2_Assertion  The decrypted assertion.
     */
    
public function getAssertion(XMLSecurityKey $inputKey, array $blacklist = array()) {

        
$assertionXML SAML2_Utils::decryptElement($this->encryptedData$inputKey$blacklist);

        
SimpleSAML_Utilities::debugMessage($assertionXML'decrypt');

        return new 
SAML2_Assertion($assertionXML);
    }


    
/**
     * Convert this encrypted assertion to an XML element.
     *
     * @param DOMNode|NULL $parentElement  The DOM node the assertion should be created in.
     * @return DOMElement  This encrypted assertion.
     */
    
public function toXML(DOMNode $parentElement NULL) {

        if (
$parentElement === NULL) {
            
$document = new DOMDocument();
            
$parentElement $document;
        } else {
            
$document $parentElement->ownerDocument;
        }

        
$root $document->createElementNS(SAML2_Const::NS_SAML'saml:' 'EncryptedAssertion');
        
$parentElement->appendChild($root);

        
$root->appendChild($document->importNode($this->encryptedDataTRUE));

        return 
$root;
    }

}

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