!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

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

Safe-mode: OFF (not secure)

/usr/share/php/Symfony/Component/ExpressionLanguage/   drwxr-xr-x
Free 83.23 GB of 96.73 GB (86.04%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\ExpressionLanguage;

/**
 * Represents a function that can be used in an expression.
 *
 * A function is defined by two PHP callables. The callables are used
 * by the language to compile and/or evaluate the function.
 *
 * The "compiler" function is used at compilation time and must return a
 * PHP representation of the function call (it receives the function
 * arguments as arguments).
 *
 * The "evaluator" function is used for expression evaluation and must return
 * the value of the function call based on the values defined for the
 * expression (it receives the values as a first argument and the function
 * arguments as remaining arguments).
 *
 * @author Fabien Potencier <[email protected]>
 */
class ExpressionFunction
{
    private 
$name;
    private 
$compiler;
    private 
$evaluator;

    
/**
     * @param string   $name      The function name
     * @param callable $compiler  A callable able to compile the function
     * @param callable $evaluator A callable able to evaluate the function
     */
    
public function __construct(string $name, callable $compiler, callable $evaluator)
    {
        
$this->name $name;
        
$this->compiler $compiler instanceof \Closure $compiler : \Closure::fromCallable($compiler);
        
$this->evaluator $evaluator instanceof \Closure $evaluator : \Closure::fromCallable($evaluator);
    }

    
/**
     * @return string
     */
    
public function getName()
    {
        return 
$this->name;
    }

    
/**
     * @return \Closure
     */
    
public function getCompiler()
    {
        return 
$this->compiler;
    }

    
/**
     * @return \Closure
     */
    
public function getEvaluator()
    {
        return 
$this->evaluator;
    }

    
/**
     * Creates an ExpressionFunction from a PHP function name.
     *
     * @param string|null $expressionFunctionName The expression function name (default: same than the PHP function name)
     *
     * @return self
     *
     * @throws \InvalidArgumentException if given PHP function name does not exist
     * @throws \InvalidArgumentException if given PHP function name is in namespace
     *                                   and expression function name is not defined
     */
    
public static function fromPhp(string $phpFunctionNamestring $expressionFunctionName null)
    {
        
$phpFunctionName ltrim($phpFunctionName'\\');
        if (!\
function_exists($phpFunctionName)) {
            throw new \
InvalidArgumentException(sprintf('PHP function "%s" does not exist.'$phpFunctionName));
        }

        
$parts explode('\\'$phpFunctionName);
        if (!
$expressionFunctionName && \count($parts) > 1) {
            throw new \
InvalidArgumentException(sprintf('An expression function name must be defined when PHP function "%s" is namespaced.'$phpFunctionName));
        }

        
$compiler = function (...$args) use ($phpFunctionName) {
            return 
sprintf('\%s(%s)'$phpFunctionNameimplode(', '$args));
        };

        
$evaluator = function ($p, ...$args) use ($phpFunctionName) {
            return 
$phpFunctionName(...$args);
        };

        return new 
self($expressionFunctionName ?: end($parts), $compiler$evaluator);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0041 ]--