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


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

/**
 * Implementation of the Shibboleth 1.3 HTTP-POST binding.
 *
 * @author Andreas Åkre Solberg, UNINETT AS. <andreas.solberg@uninett.no>
 * @package simpleSAMLphp
 * @version $Id: HTTPPost.php 2542 2010-09-10 13:14:09Z olavmrk $
 */
class SimpleSAML_Bindings_Shib13_HTTPPost {

    private 
$configuration null;
    private 
$metadata null;

    function 
__construct(SimpleSAML_Configuration $configurationSimpleSAML_Metadata_MetaDataStorageHandler $metadatastore) {
        
$this->configuration $configuration;
        
$this->metadata $metadatastore;
    }

    
/**
     * Send an authenticationResponse using HTTP-POST.
     *
     * @param string $response  The response which should be sent.
     * @param SimpleSAML_Configuration $idpmd  The metadata of the IdP which is sending the response.
     * @param SimpleSAML_Configuration $spmd  The metadata of the SP which is receiving the response.
     * @param string|NULL $relayState  The relaystate for the SP.
     * @param string $shire  The shire which should receive the response.
     */
    
public function sendResponse($responseSimpleSAML_Configuration $idpmdSimpleSAML_Configuration $spmd$relayState$shire) {

        
SimpleSAML_Utilities::validateXMLDocument($response'saml11');

        
$privatekey SimpleSAML_Utilities::loadPrivateKey($idpmdTRUE);
        
$publickey SimpleSAML_Utilities::loadPublicKey($idpmdTRUE);

        
$responsedom = new DOMDocument();
        
$responsedom->loadXML(str_replace ("\r"""$response));

        
$responseroot $responsedom->getElementsByTagName('Response')->item(0);
        
$firstassertionroot $responsedom->getElementsByTagName('Assertion')->item(0);

        
/* Determine what we should sign - either the Response element or the Assertion. The default
         * is to sign the Assertion, but that can be overridden by the 'signresponse' option in the
         * SP metadata or 'saml20.signresponse' in the global configuration.
         */
        
$signResponse FALSE;
        if (
$spmd->hasValue('signresponse')) {
            
$signResponse $spmd->getBoolean['signresponse'];
        } else {
            
$signResponse $this->configuration->getBoolean('shib13.signresponse'TRUE);
        }

        
/* Check if we have an assertion to sign. Force to sign the response if not. */
        
if ($firstassertionroot === NULL) {
            
$signResponse TRUE;
        }

        
$signer = new SimpleSAML_XML_Signer(array(
            
'privatekey_array' => $privatekey,
            
'publickey_array' => $publickey,
            
'id' => ($signResponse 'ResponseID' 'AssertionID') ,
            ));

        if (
$idpmd->hasValue('certificatechain')) {
            
$signer->addCertificate($idpmd->getString('certificatechain'));
        }

        if (
$signResponse) {
            
/* Sign the response - this must be done after encrypting the assertion. */
            /* We insert the signature before the saml2p:Status element. */
            
$statusElements SimpleSAML_Utilities::getDOMChildren($responseroot'Status''@saml1p');
            
assert('count($statusElements) === 1');
            
$signer->sign($responseroot$responseroot$statusElements[0]);

        } else {
            
/* Sign the assertion */
            
$signer->sign($firstassertionroot$firstassertionroot);
        }

        
$response $responsedom->saveXML();

        
SimpleSAML_Utilities::debugMessage($response'out');

        
SimpleSAML_Utilities::postRedirect($shire, array(
            
'TARGET' => $relayState,
            
'SAMLResponse' => base64_encode($response),
        ));

    }


    
/**
     * Decode a received response.
     *
     * @param array $post  POST data received.
     * @return SimpleSAML_XML_Shib13_AuthnResponse  Response.
     */
    
public function decodeResponse($post) {
        
assert('is_array($post)');

        if (!
array_key_exists('SAMLResponse'$post)) {
            throw new 
Exception('Missing required SAMLResponse parameter.');
        }
        
$rawResponse $post['SAMLResponse'];
        
$samlResponseXML base64_decode($rawResponse);

        
SimpleSAML_Utilities::debugMessage($samlResponseXML'in');

        
SimpleSAML_Utilities::validateXMLDocument($samlResponseXML'saml11');

        
$samlResponse = new SimpleSAML_XML_Shib13_AuthnResponse();
        
$samlResponse->setXML($samlResponseXML);

        if (
array_key_exists('TARGET'$post)) {
            
$samlResponse->setRelayState($post['TARGET']);
        }

        return 
$samlResponse;
    }

}

?>

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