Codebase list phpggc / 0ab3c3cf-9fb4-4819-9693-c53227701ce6/main lib / PHPGGC / GadgetChain / RCE / FunctionCall.php
0ab3c3cf-9fb4-4819-9693-c53227701ce6/main

Tree @0ab3c3cf-9fb4-4819-9693-c53227701ce6/main (Download .tar.gz)

FunctionCall.php @0ab3c3cf-9fb4-4819-9693-c53227701ce6/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
        ];
    }
}