!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/dokan/script/vendor/nunomaduro/larastan/src/Methods/   drwxrwxrwx
Free 12.98 GB of 57.97 GB (22.4%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Passable.php (5.23 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
NunoMaduro\Larastan\Methods;

use 
Illuminate\Contracts\Pipeline\Pipeline;
use 
LogicException;
use 
Mockery;
use 
NunoMaduro\Larastan\Concerns;
use 
NunoMaduro\Larastan\Contracts\Methods\PassableContract;
use 
PHPStan\Broker\Broker;
use 
PHPStan\Reflection\ClassReflection;
use 
PHPStan\Reflection\MethodReflection;
use 
PHPStan\Reflection\Php\PhpMethodReflection;
use 
PHPStan\Reflection\Php\PhpMethodReflectionFactory;

/**
 * @internal
 */
final class Passable implements PassableContract
{
    use 
Concerns\HasContainer;

    
/**
     * @var \PHPStan\Reflection\Php\PhpMethodReflectionFactory
     */
    
private $methodReflectionFactory;

    
/**
     * @var \PHPStan\Broker\Broker
     */
    
private $broker;

    
/**
     * @var \Illuminate\Contracts\Pipeline\Pipeline
     */
    
private $pipeline;

    
/**
     * @var \PHPStan\Reflection\ClassReflection
     */
    
private $classReflection;

    
/**
     * @var string
     */
    
private $methodName;

    
/**
     * @var \PHPStan\Reflection\MethodReflection|null
     */
    
private $methodReflection;

    
/**
     * @var bool
     */
    
private $staticAllowed false;

    
/**
     * Method constructor.
     *
     * @param \PHPStan\Reflection\Php\PhpMethodReflectionFactory $methodReflectionFactory
     * @param \PHPStan\Broker\Broker $broker
     * @param \Illuminate\Contracts\Pipeline\Pipeline $pipeline
     * @param \PHPStan\Reflection\ClassReflection $classReflection
     * @param string $methodName
     */
    
public function __construct(
        
PhpMethodReflectionFactory $methodReflectionFactory,
        
Broker $broker,
        
Pipeline $pipeline,
        
ClassReflection $classReflection,
        
string $methodName
    
) {
        
$this->methodReflectionFactory $methodReflectionFactory;
        
$this->broker $broker;
        
$this->pipeline $pipeline;
        
$this->classReflection $classReflection;
        
$this->methodName $methodName;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getClassReflection(): ClassReflection
    
{
        return 
$this->classReflection;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setClassReflection(ClassReflection $classReflection): PassableContract
    
{
        
$this->classReflection $classReflection;

        return 
$this;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getMethodName(): string
    
{
        return 
$this->methodName;
    }

    
/**
     * {@inheritdoc}
     */
    
public function hasFound(): bool
    
{
        return 
$this->methodReflection !== null;
    }

    
/**
     * {@inheritdoc}
     */
    
public function searchOn(string $class): bool
    
{
        
$classReflection $this->broker->getClass($class);

        
$found $classReflection->hasNativeMethod($this->methodName);

        if (
$found) {
            
$this->setMethodReflection($classReflection->getNativeMethod($this->methodName));
        }

        return 
$found;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getMethodReflection(): MethodReflection
    
{
        if (
$this->methodReflection === null) {
            throw new 
LogicException("MethodReflection doesn't exist");
        }

        return 
$this->methodReflection;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setMethodReflection(MethodReflection $methodReflection): void
    
{
        
$this->methodReflection $methodReflection;
    }

    
/**
     * {@inheritdoc}
     */
    
public function setStaticAllowed(bool $staticAllowed): void
    
{
        
$this->staticAllowed $staticAllowed;
    }

    
/**
     * {@inheritdoc}
     */
    
public function isStaticAllowed(): bool
    
{
        return 
$this->staticAllowed;
    }

    
/**
     * {@inheritdoc}
     */
    
public function sendToPipeline(string $class$staticAllowed false): bool
    
{
        
$classReflection $this->broker->getClass($class);

        
$this->setStaticAllowed($this->staticAllowed ?: $staticAllowed);

        
$originalClassReflection $this->classReflection;
        
$this->pipeline->send($this->setClassReflection($classReflection))
            ->
then(
                function (
PassableContract $passable) use ($originalClassReflection) {
                    if (
$passable->hasFound()) {
                        
$this->setMethodReflection($passable->getMethodReflection());
                        
$this->setStaticAllowed($passable->isStaticAllowed());
                    }

                    
$this->setClassReflection($originalClassReflection);
                }
            );

        if (
$result $this->hasFound()) {
            
$methodReflection $this->getMethodReflection();
            if (
get_class($methodReflection) === PhpMethodReflection::class) {
                
$methodReflection Mockery::mock($methodReflection);
                
$methodReflection->shouldReceive('isStatic')
                    ->
andReturn(true);
            }

            
$this->setMethodReflection($methodReflection);
        }

        return 
$result;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getBroker(): Broker
    
{
        return 
$this->broker;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getMethodReflectionFactory(): PhpMethodReflectionFactory
    
{
        return 
$this->methodReflectionFactory;
    }
}

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