!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/vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/   drwxrwxr-x
Free 15.61 GB of 61.93 GB (25.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of the JsonSchema package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace JsonSchema\Uri\Retrievers;

use 
JsonSchema\Validator;

/**
 * Tries to retrieve JSON schemas from a URI using cURL library
 *
 * @author Sander Coolen <sander@jibber.nl>
 */
class Curl extends AbstractRetriever
{
    protected 
$messageBody;

    public function 
__construct()
    {
        if (!
function_exists('curl_init')) {
            throw new \
RuntimeException("cURL not installed");
        }
    }

    
/**
     * {@inheritDoc}
     * @see \JsonSchema\Uri\Retrievers\UriRetrieverInterface::retrieve()
     */
    
public function retrieve($uri)
    {
        
$ch curl_init();

        
curl_setopt($chCURLOPT_URL$uri);
        
curl_setopt($chCURLOPT_HEADERtrue);
        
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
        
curl_setopt($chCURLOPT_HTTPHEADER, array('Accept: ' Validator::SCHEMA_MEDIA_TYPE));

        
$response curl_exec($ch);
        if (
false === $response) {
            throw new \
JsonSchema\Exception\ResourceNotFoundException('JSON schema not found');
        }

        
$this->fetchMessageBody($response);
        
$this->fetchContentType($response);

        
curl_close($ch);

        return 
$this->messageBody;
    }

    
/**
     * @param string $response cURL HTTP response
     */
    
private function fetchMessageBody($response)
    {
        
preg_match("/(?:\r\n){2}(.*)$/ms"$response$match);
        
$this->messageBody $match[1];
    }

    
/**
     * @param string $response cURL HTTP response
     * @return boolean Whether the Content-Type header was found or not
     */
    
protected function fetchContentType($response)
    {
        if (
preg_match("/Content-Type:(\V*)/ims"$response$match)) {
            
$this->contentType trim($match[1]);

            return 
true;
        }

        return 
false;
    }
}

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