!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/local/wp/vendor/wp-cli/php-cli-tools/lib/cli/arguments/   drwxr-xr-x
Free 714.09 GB of 879.6 GB (81.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Lexer.php (2.49 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * PHP Command Line Tools
 *
 * This source file is subject to the MIT license that is bundled
 * with this package in the file LICENSE.
 *
 * @author    James Logsdon <[email protected]>
 * @copyright 2010 James Logsdom (http://girsbrain.org)
 * @license   http://www.opensource.org/licenses/mit-license.php The MIT License
 */

namespace cli\arguments;

use cli\Memoize;

class Lexer extends Memoize implements \Iterator {
    private $_item;
    private $_items = array();
    private $_index = 0;
    private $_length = 0;
    private $_first = true;

    /**
     * @param array  $items  A list of strings to process as tokens.
     */
    public function __construct(array $items) {
        $this->_items = $items;
        $this->_length = count($items);
    }

    /**
     * The current token.
     *
     * @return string
     */
    #[\ReturnTypeWillChange]
    public function current() {
        return $this->_item;
    }

    /**
     * Peek ahead to the next token without moving the cursor.
     *
     * @return Argument
     */
    public function peek() {
        return new Argument($this->_items[0]);
    }

    /**
     * Move the cursor forward 1 element if it is valid.
     */
    #[\ReturnTypeWillChange]
    public function next() {
        if ($this->valid()) {
            $this->_shift();
        }
    }

    /**
     * Return the current position of the cursor.
     *
     * @return int
     */
    #[\ReturnTypeWillChange]
    public function key() {
        return $this->_index;
    }

    /**
     * Move forward 1 element and, if the method hasn't been called before, reset
     * the cursor's position to 0.
     */
    #[\ReturnTypeWillChange]
    public function rewind() {
        $this->_shift();
        if ($this->_first) {
            $this->_index = 0;
            $this->_first = false;
        }
    }

    /**
     * Returns true if the cursor has not reached the end of the list.
     *
     * @return bool
     */
    #[\ReturnTypeWillChange]
    public function valid() {
        return ($this->_index < $this->_length);
    }

    /**
     * Push an element to the front of the stack.
     *
     * @param mixed  $item  The value to set
     */
    public function unshift($item) {
        array_unshift($this->_items, $item);
        $this->_length += 1;
    }

    /**
     * Returns true if the cursor is at the end of the list.
     *
     * @return bool
     */
    public function end() {
        return ($this->_index + 1) == $this->_length;
    }

    private function _shift() {
        $this->_item = new Argument(array_shift($this->_items));
        $this->_index += 1;
        $this->_explode();
        $this->_unmemo('peek');
    }

    private function _explode() {
        if (!$this->_item->canExplode) {
            return false;
        }

        foreach ($this->_item->exploded as $piece) {
            $this->unshift('-' . $piece);
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.078 ]--