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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/   drwxr-xr-x
Free 13.39 GB of 57.97 GB (23.1%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace PhpOffice\PhpSpreadsheet\Calculation;

use 
PhpOffice\PhpSpreadsheet\Settings;
use 
Psr\Http\Client\ClientExceptionInterface;

class 
Web
{
    
/**
     * WEBSERVICE.
     *
     * Returns data from a web service on the Internet or Intranet.
     *
     * Excel Function:
     *        Webservice(url)
     *
     * @return string the output resulting from a call to the webservice
     */
    
public static function WEBSERVICE(string $url)
    {
        
$url trim($url);
        if (
strlen($url) > 2048) {
            return 
Functions::VALUE(); // Invalid URL length
        
}

        if (!
preg_match('/^http[s]?:\/\//'$url)) {
            return 
Functions::VALUE(); // Invalid protocol
        
}

        
// Get results from the the webservice
        
$client Settings::getHttpClient();
        
$requestFactory Settings::getRequestFactory();
        
$request $requestFactory->createRequest('GET'$url);

        try {
            
$response $client->sendRequest($request);
        } catch (
ClientExceptionInterface $e) {
            return 
Functions::VALUE(); // cURL error
        
}

        if (
$response->getStatusCode() != 200) {
            return 
Functions::VALUE(); // cURL error
        
}

        
$output $response->getBody()->getContents();
        if (
strlen($output) > 32767) {
            return 
Functions::VALUE(); // Output not a string or too long
        
}

        return 
$output;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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