Codebase list phpggc / 0a0732bb-898c-41f1-b464-b9ba025c444d/main lib / PHPGGC / GadgetChain / RCE / FunctionCall.php
0a0732bb-898c-41f1-b464-b9ba025c444d/main

Tree @0a0732bb-898c-41f1-b464-b9ba025c444d/main (Download .tar.gz)

FunctionCall.php @0a0732bb-898c-41f1-b464-b9ba025c444d/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
        ];
    }
}