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


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

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

$config SimpleSAML_Configuration::getInstance();
$metadata SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();

// Get the local session
$session SimpleSAML_Session::getInstance();


SimpleSAML_Logger::info('SAML2.0 - SP.SingleLogoutService: Accessing SAML 2.0 SP endpoint SingleLogoutService');

if (!
$config->getBoolean('enable.saml20-sp'TRUE))
    throw new 
SimpleSAML_Error_Error('NOACCESS');



// Destroy local session if exists.
$session->doLogout('saml2');

$binding SAML2_Binding::getCurrentBinding();
$message $binding->receive();

$idpEntityId $message->getIssuer();
if (
$idpEntityId === NULL) {
    
/* Without an issuer we have no way to respond to the message. */
    
throw new SimpleSAML_Error_BadRequest('Received message on logout endpoint without issuer.');
}

$spEntityId $metadata->getMetaDataCurrentEntityId('saml20-sp-hosted');

$idpMetadata $metadata->getMetaDataConfig($idpEntityId'saml20-idp-remote');
$spMetadata $metadata->getMetaDataConfig($spEntityId'saml20-sp-hosted');

sspmod_saml_Message::validateMessage($idpMetadata$spMetadata$message);

if (
$message instanceof SAML2_LogoutRequest) {

    try {
        
// Extract some parameters from the logout request
        
$requestid $message->getId();

        
SimpleSAML_Logger::info('SAML2.0 - SP.SingleLogoutService: IdP (' $idpEntityId .
            
') is sending logout request to me SP (' $spEntityId ') requestid '.$requestid);
        
SimpleSAML_Logger::stats('saml20-idp-SLO idpinit ' $spEntityId ' ' $idpEntityId);

        
/* Create response. */
        
$lr sspmod_saml_Message::buildLogoutResponse($spMetadata$idpMetadata);
        
$lr->setRelayState($message->getRelayState());
        
$lr->setInResponseTo($message->getId());

        
SimpleSAML_Logger::info('SAML2.0 - SP.SingleLogoutService: SP me (' $spEntityId ') is sending logout response to IdP (' $idpEntityId ')');

        
/* Send response. */
        
$binding = new SAML2_HTTPRedirect();
        
$binding->send($lr);
    } catch (
Exception $exception) {
        throw new 
SimpleSAML_Error_Error('LOGOUTREQUEST'$exception);
    }

} elseif (
$message instanceof SAML2_LogoutResponse) {

    
SimpleSAML_Logger::stats('saml20-sp-SLO spinit ' $spEntityId ' ' $idpEntityId);

    
$id $message->getRelayState();
    if (empty(
$id)) {
        
/* For backwardscompatibility. */
        
$id $message->getInResponseTo();
    }

    
$returnTo $session->getData('spLogoutReturnTo'$id);
    if (empty(
$returnTo)) {
        throw new 
SimpleSAML_Error_Error('LOGOUTINFOLOST');
    }

    
SimpleSAML_Utilities::redirect($returnTo);

} else {
    throw new 
SimpleSAML_Error_Error('SLOSERVICEPARAMS');
}



?>

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