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


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

require_once(dirname(dirname(__FILE__)) . '/libextinc/OAuth.php');

try {
    


    
$oauthconfig SimpleSAML_Configuration::getOptionalConfig('module_oauth.php');

    if(!
array_key_exists('oauth_token'$_REQUEST)) {
        throw new 
Exception('Required URL parameter [oauth_token] is missing.');
    }
    
$requestToken $_REQUEST['oauth_token'];

    
$store = new sspmod_oauth_OAuthStore();
    
$server = new sspmod_oauth_OAuthServer($store);

    
$hmac_method = new OAuthSignatureMethod_HMAC_SHA1();
    
$plaintext_method = new OAuthSignatureMethod_PLAINTEXT();
    
$rsa_method = new sspmod_oauth_OAuthSignatureMethodRSASHA1();

    
$server->add_signature_method($hmac_method);
    
$server->add_signature_method($plaintext_method);
    
$server->add_signature_method($rsa_method);


    
$config SimpleSAML_Configuration::getInstance();
    
$session SimpleSAML_Session::getInstance();

    
$as $oauthconfig->getString('auth');
    if (!
$session->isValid($as)) {
        
SimpleSAML_Auth_Default::initLogin($asSimpleSAML_Utilities::selfURL());
    }


    if (!empty(
$_REQUEST['consent'])) {
        
$consumer $store->lookup_consumer_by_requestToken($requestToken);
    
        
$t = new SimpleSAML_XHTML_Template($config'oauth:consent.php');
        
$t->data['header'] = '{status:header_saml20_sp}';
        
$t->data['consumer'] = $consumer;    // array containint {name, description, key, secret, owner} keys
        
$t->data['urlAgree'] = SimpleSAML_Utilities::addURLparameterSimpleSAML_Utilities::selfURL(), array("consent" => "yes") );
        
$t->data['logouturl'] = SimpleSAML_Utilities::selfURLNoQuery() . '?logout';
    
        
$t->show();
    
        exit();    
// and be done.
    
}

    
$attributes $session->getAttributes();

    
// Assume user consent at this point and proceed with authorizing the token
    
list($url$verifier) = $store->authorize($requestToken$attributes);


    if (
$url) {
        
// If authorize() returns a URL, take user there (oauth1.0a)
        
SimpleSAML_Utilities::redirect($url);
    } 
    else if (isset(
$_REQUEST['oauth_callback'])) {
        
// If callback was provided in the request (oauth1.0)
        
SimpleSAML_Utilities::redirect($_REQUEST['oauth_callback']);
    
    } else {
        
// No callback provided, display standard template

        
$t = new SimpleSAML_XHTML_Template($config'oauth:authorized.php');

        
$t->data['header'] = '{status:header_saml20_sp}';
        
$t->data['remaining'] = $session->remainingTime();
        
$t->data['sessionsize'] = $session->getSize();
        
$t->data['attributes'] = $attributes;
        
$t->data['logouturl'] = SimpleSAML_Utilities::selfURLNoQuery() . '?logout';
        
$t->data['oauth_verifier'] = $verifier;
        
$t->show();
    }

} catch (
Exception $e) {
    
    
header('Content-type: text/plain; utf-8'TRUE500);
    
header('OAuth-Error: ' $e->getMessage());

    
print_r($e);
    
}


// 
// $req = OAuthRequest::from_request();
// $token = $server->fetch_request_token($req);
// echo $token;

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