Codebase list phpggc / 1996c5fc-42e6-48d7-906a-d22b1851ac00/main lib / PHPGGC / GadgetChain / RCE / FunctionCall.php
1996c5fc-42e6-48d7-906a-d22b1851ac00/main

Tree @1996c5fc-42e6-48d7-906a-d22b1851ac00/main (Download .tar.gz)

FunctionCall.php @1996c5fc-42e6-48d7-906a-d22b1851ac00/mainraw · history · blame

<?php

namespace PHPGGC\GadgetChain\RCE;

/**
 * Class FunctionCall
 * Executes a PHP function with one argument.
 * @package PHPGGC\GadgetChain\RCE
 */
abstract class FunctionCall extends \PHPGGC\GadgetChain\RCE
{
    public static $type = self::TYPE_RCE_FUNCTIONCALL;
    public static $parameters = [
        'function',
        'parameter'
    ];
    
    public function test_setup()
    {
        $command = $this->_test_build_command();
        return [
            'function' => 'system',
            'parameter' => 
                $command
        ];
    }
}