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 /
Syntax /
[ HOME SHELL ]
Name
Size
Permission
Action
ES2015
[ DIR ]
drwxr-xr-x
ES2016
[ DIR ]
drwxr-xr-x
ES2017
[ DIR ]
drwxr-xr-x
ES2018
[ DIR ]
drwxr-xr-x
ES2019
[ DIR ]
drwxr-xr-x
ES2020
[ DIR ]
drwxr-xr-x
ES2021
[ DIR ]
drwxr-xr-x
ES2022
[ DIR ]
drwxr-xr-x
ES2023
[ DIR ]
drwxr-xr-x
ES2024
[ DIR ]
drwxr-xr-x
ES2025
[ DIR ]
drwxr-xr-x
JSX
[ DIR ]
drwxr-xr-x
Node
[ DIR ]
drwxr-xr-x
CommentsRegistry.php
10.15
KB
-rw-r--r--
EncodingException.php
503
B
-rw-r--r--
EventsEmitter.php
1.52
KB
-rw-r--r--
Exception.php
1.01
KB
-rw-r--r--
Features.php
3.17
KB
-rw-r--r--
LSM.php
4.46
KB
-rw-r--r--
Parser.php
132.71
KB
-rw-r--r--
ParserAbstract.php
9.09
KB
-rw-r--r--
Position.php
1.75
KB
-rw-r--r--
Scanner.php
56.98
KB
-rw-r--r--
SourceLocation.php
1.67
KB
-rw-r--r--
Token.php
3.69
KB
-rw-r--r--
Utils.php
9.66
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : LSM.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\Syntax; /** * Longest Sequence Matcher. Utility class used by the scanner to consume * the longest sequence of character given a set of allowed characters sequences. * * @author Marco Marchiò <marco.mm89@gmail.com> */ class LSM { /** * Internal sequences map * * @var array */ protected $map = array(); /** * Encoding handle flag * * @var bool */ protected $handleEncoding = false; /** * Class constructor * * @param array $sequences Allowed characters sequences * @param bool $handleEncoding True to handle encoding when matching */ function __construct($sequences, $handleEncoding = false) { $this->handleEncoding = $handleEncoding; foreach ($sequences as $s) { $this->add($s); } } /** * Adds a sequence * * @param string $sequence Sequence to add * * @return $this */ public function add($sequence) { if ($this->handleEncoding) { $s = Utils::stringToUTF8Array($sequence); $first = $s[0]; $len = count($s); } else { $first = $sequence[0]; $len = strlen($sequence); } if (!isset($this->map[$first])) { $this->map[$first] = array( "maxLen" => $len, "map" => array($sequence) ); } else { $this->map[$first]["map"][] = $sequence; $this->map[$first]["maxLen"] = max($this->map[$first]["maxLen"], $len); } return $this; } /** * Removes a sequence * * @param string $sequence Sequence to remove * * @return $this */ public function remove($sequence) { if ($this->handleEncoding) { $s = Utils::stringToUTF8Array($sequence); $first = $s[0]; } else { $first = $sequence[0]; } if (isset($this->map[$first])) { $len = $this->handleEncoding ? count($s) : strlen($sequence); $this->map[$first]["map"] = array_diff( $this->map[$first]["map"], array($sequence) ); if (!count($this->map[$first]["map"])) { unset($this->map[$first]); } elseif ($this->map[$first]["maxLen"] === $len) { // Recalculate the max length if necessary foreach ($this->map[$first]["map"] as $m) { $this->map[$first]["maxLen"] = max( $this->map[$first]["maxLen"], strlen($m) ); } } } return $this; } /** * Executes the match. It returns an array where the first element is the * number of consumed characters and the second element is the match. If * no match is found it returns null. * * @param Scanner $scanner Scanner instance * @param int $index Current index * @param string $char Current character * * @return array|null */ public function match($scanner, $index, $char) { $consumed = 1; $bestMatch = null; if (isset($this->map[$char])) { //If the character is present in the map and it has a max length of //1, match immediately if ($this->map[$char]["maxLen"] === 1) { $bestMatch = array($consumed, $char); } else { //Otherwise consume a number of characters equal to the max //length and find the longest match $buffer = $char; $map = $this->map[$char]["map"]; $maxLen = $this->map[$char]["maxLen"]; do { if (in_array($buffer, $map)) { $bestMatch = array($consumed, $buffer); } $nextChar = $scanner->charAt($index + $consumed); if ($nextChar === null) { break; } $buffer .= $nextChar; $consumed++; } while ($consumed <= $maxLen); } } return $bestMatch; } }
Close