Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.13
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
wp /
vendor /
mck89 /
peast /
lib /
Peast /
[ HOME SHELL ]
Name
Size
Permission
Action
Formatter
[ DIR ]
drwxr-xr-x
Selector
[ DIR ]
drwxr-xr-x
Syntax
[ DIR ]
drwxr-xr-x
Peast.php
8.02
KB
-rw-r--r--
Query.php
2.81
KB
-rw-r--r--
Renderer.php
48.59
KB
-rw-r--r--
Traverser.php
6.67
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Query.php
<?php /** * This file is part of the Peast package * * (c) Marco Marchiò <marco.mm89@gmail.com> * * For the full copyright and license information refer to the LICENSE file * distributed with this source code */ namespace Peast; /** * Nodes query class * * @author Marco Marchiò <marco.mm89@gmail.com> */ class Query implements \IteratorAggregate, \Countable { /** * Current matches * * @var Selector\Matches */ protected $matches; /** * Options array * * @var array */ protected $options; /** * Class constructor. Available options are: * - encoding: selectors encoding. If not specified the * parser will assume UTF-8. * * @param Syntax\Node\Program $root Root node * @param array $options Options array */ public function __construct(Syntax\Node\Program $root, $options = array()) { $this->matches = new Selector\Matches(); $this->matches->addMatch($root); $this->options = $options; } /** * Finds nodes matching the given selector starting from the * current matched nodes, if any, or from the root * * @param string $selector Selector * * @return $this * * @throws Selector\Exception */ public function find($selector) { $parser = new Selector\Parser($selector, $this->options); $selector = $parser->parse(); $this->matches = $selector->exec($this->matches); return $this; } /** * Executes the given selector on the current nodes and filters * out the nodes which don't match * * @param string $selector Selector * * @return $this * * @throws Selector\Exception */ public function filter($selector) { $parser = new Selector\Parser($selector, $this->options); $selector = $parser->parse(true); $this->matches->filter(function ($node, $parent) use ($selector) { $newMatch = new Selector\Matches(); $newMatch->addMatch($node, $parent); return $selector->exec($newMatch)->getMatches(); }); return $this; } /** * Returns the number of matched nodes * * @return int */ #[\ReturnTypeWillChange] public function count() { return $this->matches->count(); } /** * Returns the node at the given index * * @param int $index Index * * @return array * * @throws \Exception */ public function get($index) { return $this->matches->get($index)[0]; } /** * Returns the nodes iterator * * @return \ArrayIterator */ #[\ReturnTypeWillChange] public function getIterator() { return new \ArrayIterator($this->matches->getNodes()); } }
Close