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


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

/**
 * IdP implementation for SAML 1.1 protocol.
 *
 * @package simpleSAMLphp
 * @version $Id$
 */
class sspmod_saml_IdP_SAML1 {

    
/**
     * Send a response to the SP.
     *
     * @param array $state  The authentication state.
     */
    
public static function sendResponse(array $state) {
        
assert('isset($state["Attributes"])');
        
assert('isset($state["SPMetadata"])');
        
assert('isset($state["saml:shire"])');
        
assert('array_key_exists("saml:target", $state)'); // Can be NULL.

        
$spMetadata $state["SPMetadata"];
        
$spEntityId $spMetadata['entityid'];
        
$spMetadata SimpleSAML_Configuration::loadFromArray($spMetadata,
            
'$metadata[' var_export($spEntityIdTRUE) . ']');

        
SimpleSAML_Logger::info('Sending SAML 1.1 Response to ' var_export($spEntityIdTRUE));

        
$attributes $state['Attributes'];
        
$shire $state['saml:shire'];
        
$target $state['saml:target'];

        
$idp SimpleSAML_IdP::getByState($state);

        
$idpMetadata $idp->getConfig();

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

        
SimpleSAML_Stats::log('saml:idp:Response', array(
            
'spEntityID' => $spEntityId,
            
'idpEntityID' => $idpMetadata->getString('entityid'),
            
'protocol' => 'saml1',
        ));

        
/* Generate and send response. */
        
$ar = new SimpleSAML_XML_Shib13_AuthnResponse();
        
$authnResponseXML $ar->generate($idpMetadata$spMetadata$shire$attributes);

        
$httppost = new SimpleSAML_Bindings_Shib13_HTTPPost($config$metadata);
        
$httppost->sendResponse($authnResponseXML$idpMetadata$spMetadata$target$shire);
    }


    
/**
     * Receive an authentication request.
     *
     * @param SimpleSAML_IdP $idp  The IdP we are receiving it for.
     */
    
public static function receiveAuthnRequest(SimpleSAML_IdP $idp) {

        if (isset(
$_REQUEST['cookieTime'])) {
            
$cookieTime = (int)$_REQUEST['cookieTime'];
            if (
$cookieTime time()) {
                
/*
                 * Less than five seconds has passed since we were
                 * here the last time. Cookies are probably disabled.
                 */
                
SimpleSAML_Utilities::checkCookie(SimpleSAML_Utilities::selfURL());
            }
        }

        if (!isset(
$_REQUEST['providerId'])) {
            throw new 
SimpleSAML_Error_BadRequest('Missing providerId parameter.');
        }
        
$spEntityId = (string)$_REQUEST['providerId'];

        if (!isset(
$_REQUEST['shire'])) {
            throw new 
SimpleSAML_Error_BadRequest('Missing shire parameter.');
        }
        
$shire = (string)$_REQUEST['shire'];

        if (isset(
$_REQUEST['target'])) {
            
$target $_REQUEST['target'];
        } else {
            
$target NULL;
        }

        
SimpleSAML_Logger::info('Shib1.3 - IdP.SSOService: Got incoming Shib authnRequest from ' var_export($spEntityIdTRUE) . '.');

        
$metadata SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
        
$spMetadata $metadata->getMetaDataConfig($spEntityId'shib13-sp-remote');

        
$found FALSE;
        foreach (
$spMetadata->getEndpoints('AssertionConsumerService') as $ep) {
            if (
$ep['Binding'] !== 'urn:oasis:names:tc:SAML:1.0:profiles:browser-post') {
                continue;
            }
            if (
$ep['Location'] !== $shire) {
                continue;
            }
            
$found TRUE;
            break;
        }
        if (!
$found) {
            throw new 
Exception('Invalid AssertionConsumerService for SP ' .
                
var_export($spEntityIdTRUE) . ': ' var_export($shireTRUE));
        }

        
SimpleSAML_Stats::log('saml:idp:AuthnRequest', array(
            
'spEntityID' => $spEntityId,
            
'protocol' => 'saml1',
        ));

        
$sessionLostURL SimpleSAML_Utilities::addURLparameter(
            
SimpleSAML_Utilities::selfURL(),
            array(
'cookieTime' => time()));

        
$state = array(
            
'Responder' => array('sspmod_saml_IdP_SAML1''sendResponse'),
            
'SPMetadata' => $spMetadata->toArray(),

            
'saml:shire' => $shire,
            
'saml:target' => $target,
        );

        
$idp->handleAuthenticationRequest($state);
    }

}

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