[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@52.15.173.197: ~ $
<?php

namespace Twig\Tests\Fixtures\errors;

require __DIR__.'/../../../vendor/autoload.php';

use Twig\Environment;
use Twig\Extension\AbstractExtension;
use Twig\Loader\ArrayLoader;
use Twig\TwigFilter;

class BrokenExtension extends AbstractExtension
{
    public function getFilters()
    {
        return [
            new TwigFilter('broken', [$this, 'broken']),
        ];
    }

    public function broken()
    {
        die('OOPS');
    }
}

$loader = new ArrayLoader([
    'index.html.twig' => 'Hello {{ "world"|broken }}',
]);
$twig = new Environment($loader, ['debug' => isset($argv[1])]);
$twig->addExtension(new BrokenExtension());

echo $twig->render('index.html.twig');

Filemanager

Name Type Size Permission Actions
base.html File 34 B 0644
index.html File 128 B 0644
leak-output.php File 688 B 0644