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


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

/**
 * Authenticate using Facebook Platform.
 *
 * @author Andreas Åkre Solberg, UNINETT AS.
 * @package simpleSAMLphp
 * @version $Id$
 */
class sspmod_authfacebook_Auth_Source_Facebook extends SimpleSAML_Auth_Source {


    
/**
     * The string used to identify our states.
     */
    
const STAGE_INIT 'facebook:init';


    
/**
     * The key of the AuthId field in the state.
     */
    
const AUTHID 'facebook:AuthId';


    
/**
     * Facebook App ID or API Key
     */
    
private $api_key;


    
/**
     * Facebook App Secret
     */
    
private $secret;


    
/**
     * Which additional data permissions to request from user
     */
    
private $req_perms;


    
/**
     * Constructor for this authentication source.
     *
     * @param array $info  Information about this authentication source.
     * @param array $config  Configuration.
     */
    
public function __construct($info$config) {
        
assert('is_array($info)');
        
assert('is_array($config)');

        
/* Call the parent constructor first, as required by the interface. */
        
parent::__construct($info$config);

        
$cfgParse SimpleSAML_Configuration::loadFromArray($config'authsources[' var_export($this->authIdTRUE) . ']');
        
        
$this->api_key $cfgParse->getString('api_key');
        
$this->secret $cfgParse->getString('secret');
        
$this->req_perms $cfgParse->getString('req_perms'NULL);
    }


    
/**
     * Log-in using Facebook platform
     *
     * @param array &$state  Information about the current authentication.
     */
    
public function authenticate(&$state) {
        
assert('is_array($state)');

        
/* We are going to need the authId in order to retrieve this authentication source later. */
        
$state[self::AUTHID] = $this->authId;
        
$stateID SimpleSAML_Auth_State::saveState($stateself::STAGE_INIT);
        
        
$facebook = new sspmod_authfacebook_Facebook(array('appId' => $this->api_key'secret' => $this->secret), $state);
        
$facebook->destroySession();

        
$linkback SimpleSAML_Module::getModuleURL('authfacebook/linkback.php', array('AuthState' => $stateID));
        
$url $facebook->getLoginUrl(array('redirect_uri' => $linkback'scope' => $this->req_perms));
        
SimpleSAML_Auth_State::saveState($stateself::STAGE_INIT);

        
SimpleSAML_Utilities::redirect($url);
    }
        

    public function 
finalStep(&$state) {
        
assert('is_array($state)');

        
$facebook = new sspmod_authfacebook_Facebook(array('appId' => $this->api_key'secret' => $this->secret), $state);
        
$uid $facebook->getUser();

        if (isset(
$uid) && $uid) {
            try {
                
$info $facebook->api("/" $uid);
            } catch (
FacebookApiException $e) {
                throw new 
SimpleSAML_Error_AuthSource($this->authId'Error getting user profile.'$e);
            }
        }

        if (!isset(
$info)) {
            throw new 
SimpleSAML_Error_AuthSource($this->authId'Error getting user profile.');
        }
        
        
$attributes = array();
        foreach(
$info AS $key => $value) {
            if (
is_string($value) && !empty($value)) {
                
$attributes['facebook.' $key] = array((string)$value);
            }
        }

        if (
array_key_exists('username'$info)) {
            
$attributes['facebook_user'] = array($info['username'] . '@facebook.com');
        } else {
            
$attributes['facebook_user'] = array($uid '@facebook.com');
        }

        
$attributes['facebook_targetedID'] = array('http://facebook.com!' $uid);
        
$attributes['facebook_cn'] = array($info['name']);

        
SimpleSAML_Logger::debug('Facebook Returned Attributes: 'implode(", "array_keys($attributes)));

        
$state['Attributes'] = $attributes;
    
        
$facebook->destroySession();
    }

}

?>

:: 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: 1.7204 ]--