One Hat Cyber Team
Your IP:
216.73.216.176
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
proc
/
thread-self
/
root
/
proc
/
self
/
cwd
/
Edit File:
Encoding.tar
UnifyAudience.php 0000644 00000001244 15107523472 0010014 0 ustar 00 <?php declare(strict_types=1); namespace Lcobucci\JWT\Encoding; use Lcobucci\JWT\ClaimsFormatter; use Lcobucci\JWT\Token\RegisteredClaims; use function array_key_exists; use function count; use function current; final class UnifyAudience implements ClaimsFormatter { /** @inheritdoc */ public function formatClaims(array $claims): array { if ( ! array_key_exists(RegisteredClaims::AUDIENCE, $claims) || count($claims[RegisteredClaims::AUDIENCE]) !== 1 ) { return $claims; } $claims[RegisteredClaims::AUDIENCE] = current($claims[RegisteredClaims::AUDIENCE]); return $claims; } } ChainedFormatter.php 0000644 00000001323 15107523472 0010501 0 ustar 00 <?php declare(strict_types=1); namespace Lcobucci\JWT\Encoding; use Lcobucci\JWT\ClaimsFormatter; final class ChainedFormatter implements ClaimsFormatter { /** @var list<ClaimsFormatter> */ private array $formatters; public function __construct(ClaimsFormatter ...$formatters) { $this->formatters = $formatters; } public static function default(): self { return new self(new UnifyAudience(), new MicrosecondBasedDateConversion()); } /** @inheritdoc */ public function formatClaims(array $claims): array { foreach ($this->formatters as $formatter) { $claims = $formatter->formatClaims($claims); } return $claims; } } JoseEncoder.php 0000644 00000003343 15107523472 0007466 0 ustar 00 <?php declare(strict_types=1); namespace Lcobucci\JWT\Encoding; use JsonException; use Lcobucci\JWT\Decoder; use Lcobucci\JWT\Encoder; use function base64_decode; use function base64_encode; use function is_string; use function json_decode; use function json_encode; use function rtrim; use function strtr; use const JSON_THROW_ON_ERROR; use const JSON_UNESCAPED_SLASHES; use const JSON_UNESCAPED_UNICODE; /** * A utilitarian class that encodes and decodes data according with JOSE specifications */ final class JoseEncoder implements Encoder, Decoder { private const JSON_DEFAULT_DEPTH = 512; /** @inheritdoc */ public function jsonEncode($data): string { try { return json_encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR); } catch (JsonException $exception) { throw CannotEncodeContent::jsonIssues($exception); } } /** @inheritdoc */ public function jsonDecode(string $json) { try { return json_decode($json, true, self::JSON_DEFAULT_DEPTH, JSON_THROW_ON_ERROR); } catch (JsonException $exception) { throw CannotDecodeContent::jsonIssues($exception); } } public function base64UrlEncode(string $data): string { return rtrim(strtr(base64_encode($data), '+/', '-_'), '='); } public function base64UrlDecode(string $data): string { // Padding isn't added back because it isn't strictly necessary for decoding with PHP $decodedContent = base64_decode(strtr($data, '-_', '+/'), true); if (! is_string($decodedContent)) { throw CannotDecodeContent::invalidBase64String(); } return $decodedContent; } } MicrosecondBasedDateConversion.php 0000644 00000001543 15107523472 0013336 0 ustar 00 <?php declare(strict_types=1); namespace Lcobucci\JWT\Encoding; use DateTimeImmutable; use Lcobucci\JWT\ClaimsFormatter; use Lcobucci\JWT\Token\RegisteredClaims; use function array_key_exists; final class MicrosecondBasedDateConversion implements ClaimsFormatter { /** @inheritdoc */ public function formatClaims(array $claims): array { foreach (RegisteredClaims::DATE_CLAIMS as $claim) { if (! array_key_exists($claim, $claims)) { continue; } $claims[$claim] = $this->convertDate($claims[$claim]); } return $claims; } /** @return int|float */ private function convertDate(DateTimeImmutable $date) { if ($date->format('u') === '000000') { return (int) $date->format('U'); } return (float) $date->format('U.u'); } } CannotDecodeContent.php 0000644 00000001034 15107523472 0011142 0 ustar 00 <?php declare(strict_types=1); namespace Lcobucci\JWT\Encoding; use JsonException; use Lcobucci\JWT\Exception; use RuntimeException; final class CannotDecodeContent extends RuntimeException implements Exception { public static function jsonIssues(JsonException $previous): self { return new self('Error while decoding from JSON', 0, $previous); } public static function invalidBase64String(): self { return new self('Error while decoding from Base64Url, invalid base64 characters detected'); } } CannotEncodeContent.php 0000644 00000000562 15107523472 0011161 0 ustar 00 <?php declare(strict_types=1); namespace Lcobucci\JWT\Encoding; use JsonException; use Lcobucci\JWT\Exception; use RuntimeException; final class CannotEncodeContent extends RuntimeException implements Exception { public static function jsonIssues(JsonException $previous): self { return new self('Error while encoding to JSON', 0, $previous); } } Filter/Chunk.php 0000644 00000001340 15111705602 0007546 0 ustar 00 <?php namespace Http\Message\Encoding\Filter; /** * Userland implementation of the chunk stream filter. * * @author Joel Wurtz <joel.wurtz@gmail.com> */ class Chunk extends \php_user_filter { public function filter($in, $out, &$consumed, $closing): int { while ($bucket = stream_bucket_make_writeable($in)) { $lenbucket = stream_bucket_new($this->stream, dechex($bucket->datalen)."\r\n"); stream_bucket_append($out, $lenbucket); $consumed += $bucket->datalen; stream_bucket_append($out, $bucket); $lenbucket = stream_bucket_new($this->stream, "\r\n"); stream_bucket_append($out, $lenbucket); } return PSFS_PASS_ON; } } ChunkStream.php 0000644 00000001006 15111705602 0007474 0 ustar 00 <?php namespace Http\Message\Encoding; /** * Transform a regular stream into a chunked one. * * @author Joel Wurtz <joel.wurtz@gmail.com> */ class ChunkStream extends FilteredStream { protected function readFilter(): string { return 'chunk'; } protected function writeFilter(): string { return 'dechunk'; } protected function fill(): void { parent::fill(); if ($this->stream->eof()) { $this->buffer .= "0\r\n\r\n"; } } } DeflateStream.php 0000644 00000001501 15111705602 0007770 0 ustar 00 <?php namespace Http\Message\Encoding; use Clue\StreamFilter as Filter; use Psr\Http\Message\StreamInterface; /** * Stream deflate (RFC 1951). * * @author Joel Wurtz <joel.wurtz@gmail.com> */ class DeflateStream extends FilteredStream { /** * @param int $level */ public function __construct(StreamInterface $stream, $level = -1) { parent::__construct($stream, ['window' => -15, 'level' => $level]); // @deprecated will be removed in 2.0 $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => -15]); } /** * {@inheritdoc} */ protected function readFilter(): string { return 'zlib.deflate'; } /** * {@inheritdoc} */ protected function writeFilter(): string { return 'zlib.inflate'; } } GzipDecodeStream.php 0000644 00000001756 15111705602 0010455 0 ustar 00 <?php namespace Http\Message\Encoding; use Clue\StreamFilter as Filter; use Psr\Http\Message\StreamInterface; /** * Stream for decoding from gzip format (RFC 1952). * * @author Joel Wurtz <joel.wurtz@gmail.com> */ class GzipDecodeStream extends FilteredStream { /** * @param int $level */ public function __construct(StreamInterface $stream, $level = -1) { if (!extension_loaded('zlib')) { throw new \RuntimeException('The zlib extension must be enabled to use this stream'); } parent::__construct($stream, ['window' => 31]); // @deprecated will be removed in 2.0 $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => 31, 'level' => $level]); } /** * {@inheritdoc} */ protected function readFilter(): string { return 'zlib.inflate'; } /** * {@inheritdoc} */ protected function writeFilter(): string { return 'zlib.deflate'; } } InflateStream.php 0000644 00000001615 15111705602 0010014 0 ustar 00 <?php namespace Http\Message\Encoding; use Clue\StreamFilter as Filter; use Psr\Http\Message\StreamInterface; /** * Stream inflate (RFC 1951). * * @author Joel Wurtz <joel.wurtz@gmail.com> */ class InflateStream extends FilteredStream { /** * @param int $level */ public function __construct(StreamInterface $stream, $level = -1) { if (!extension_loaded('zlib')) { throw new \RuntimeException('The zlib extension must be enabled to use this stream'); } parent::__construct($stream, ['window' => -15]); // @deprecated will be removed in 2.0 $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => -15, 'level' => $level]); } protected function readFilter(): string { return 'zlib.inflate'; } protected function writeFilter(): string { return 'zlib.deflate'; } } FilteredStream.php 0000644 00000013126 15111705602 0010170 0 ustar 00 <?php namespace Http\Message\Encoding; use Clue\StreamFilter as Filter; use Http\Message\Decorator\StreamDecorator; use Psr\Http\Message\StreamInterface; /** * A filtered stream has a filter for filtering output and a filter for filtering input made to a underlying stream. * * @author Joel Wurtz <joel.wurtz@gmail.com> */ abstract class FilteredStream implements StreamInterface { use StreamDecorator { rewind as private doRewind; seek as private doSeek; } public const BUFFER_SIZE = 8192; /** * @var callable */ protected $readFilterCallback; /** * @var resource * * @deprecated since version 1.5, will be removed in 2.0 */ protected $readFilter; /** * @var callable * * @deprecated since version 1.5, will be removed in 2.0 */ protected $writeFilterCallback; /** * @var resource * * @deprecated since version 1.5, will be removed in 2.0 */ protected $writeFilter; /** * Internal buffer. * * @var string */ protected $buffer = ''; /** * @param mixed|null $readFilterOptions * @param mixed|null $writeFilterOptions deprecated since 1.5, will be removed in 2.0 */ public function __construct(StreamInterface $stream, $readFilterOptions = null, $writeFilterOptions = null) { if (null !== $readFilterOptions) { $this->readFilterCallback = Filter\fun($this->readFilter(), $readFilterOptions); } else { $this->readFilterCallback = Filter\fun($this->readFilter()); } if (null !== $writeFilterOptions) { $this->writeFilterCallback = Filter\fun($this->writeFilter(), $writeFilterOptions); @trigger_error('The $writeFilterOptions argument is deprecated since version 1.5 and will be removed in 2.0.', E_USER_DEPRECATED); } else { $this->writeFilterCallback = Filter\fun($this->writeFilter()); } $this->stream = $stream; } public function read(int $length): string { if (strlen($this->buffer) >= $length) { $read = substr($this->buffer, 0, $length); $this->buffer = substr($this->buffer, $length); return $read; } if ($this->stream->eof()) { $buffer = $this->buffer; $this->buffer = ''; return $buffer; } $read = $this->buffer; $this->buffer = ''; $this->fill(); return $read.$this->read($length - strlen($read)); } public function eof(): bool { return $this->stream->eof() && '' === $this->buffer; } /** * Buffer is filled by reading underlying stream. * * Callback is reading once more even if the stream is ended. * This allow to get last data in the PHP buffer otherwise this * bug is present : https://bugs.php.net/bug.php?id=48725 */ protected function fill(): void { $readFilterCallback = $this->readFilterCallback; $this->buffer .= $readFilterCallback($this->stream->read(self::BUFFER_SIZE)); if ($this->stream->eof()) { $this->buffer .= $readFilterCallback(); } } /** * {@inheritdoc} */ public function getContents(): string { $buffer = ''; while (!$this->eof()) { $buf = $this->read(self::BUFFER_SIZE); // Using a loose equality here to match on '' and false. if (null == $buf) { break; } $buffer .= $buf; } return $buffer; } /** * Always returns null because we can't tell the size of a stream when we filter. */ public function getSize(): ?int { return null; } public function __toString(): string { return $this->getContents(); } /** * Filtered streams are not seekable. * * We would need to buffer and process everything to allow seeking. */ public function isSeekable(): bool { return false; } /** * Filtered streams are not seekable and can thus not be rewound. */ public function rewind(): void { @trigger_error('Filtered streams are not seekable. This method will start raising an exception in the next major version', E_USER_DEPRECATED); $this->doRewind(); } /** * Filtered streams are not seekable. */ public function seek(int $offset, int $whence = SEEK_SET): void { @trigger_error('Filtered streams are not seekable. This method will start raising an exception in the next major version', E_USER_DEPRECATED); $this->doSeek($offset, $whence); } /** * Returns the read filter name. * * @deprecated since version 1.5, will be removed in 2.0 */ public function getReadFilter(): string { @trigger_error('The '.__CLASS__.'::'.__METHOD__.' method is deprecated since version 1.5 and will be removed in 2.0.', E_USER_DEPRECATED); return $this->readFilter(); } /** * Returns the write filter name. */ abstract protected function readFilter(): string; /** * Returns the write filter name. * * @deprecated since version 1.5, will be removed in 2.0 */ public function getWriteFilter(): string { @trigger_error('The '.__CLASS__.'::'.__METHOD__.' method is deprecated since version 1.5 and will be removed in 2.0.', E_USER_DEPRECATED); return $this->writeFilter(); } /** * Returns the write filter name. */ abstract protected function writeFilter(): string; } error_log 0000644 00000013576 15111705602 0006473 0 ustar 00 [25-Nov-2025 18:02:09 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/DechunkStream.php:12 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/DechunkStream.php on line 12 [25-Nov-2025 19:53:50 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/CompressStream.php:13 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/CompressStream.php on line 13 [25-Nov-2025 19:55:14 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/GzipDecodeStream.php:13 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/GzipDecodeStream.php on line 13 [25-Nov-2025 19:56:19 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/GzipEncodeStream.php:13 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/GzipEncodeStream.php on line 13 [25-Nov-2025 20:22:52 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/DeflateStream.php:13 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/DeflateStream.php on line 13 [25-Nov-2025 20:25:45 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/ChunkStream.php:10 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/ChunkStream.php on line 10 [25-Nov-2025 22:01:15 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/DecompressStream.php:13 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/DecompressStream.php on line 13 [25-Nov-2025 22:05:53 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/InflateStream.php:13 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/InflateStream.php on line 13 [25-Nov-2025 22:06:09 UTC] PHP Fatal error: Trait "Http\Message\Decorator\StreamDecorator" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/FilteredStream.php on line 14 [26-Nov-2025 17:09:35 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/DeflateStream.php:13 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/DeflateStream.php on line 13 [26-Nov-2025 17:10:01 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/DecompressStream.php:13 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/DecompressStream.php on line 13 [26-Nov-2025 17:32:24 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/InflateStream.php:13 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/InflateStream.php on line 13 [26-Nov-2025 18:48:56 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/GzipEncodeStream.php:13 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/GzipEncodeStream.php on line 13 [26-Nov-2025 18:49:38 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/CompressStream.php:13 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/CompressStream.php on line 13 [26-Nov-2025 19:05:24 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/ChunkStream.php:10 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/ChunkStream.php on line 10 [26-Nov-2025 19:08:07 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/DechunkStream.php:12 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/DechunkStream.php on line 12 [26-Nov-2025 19:08:20 UTC] PHP Fatal error: Uncaught Error: Class "Http\Message\Encoding\FilteredStream" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/GzipDecodeStream.php:13 Stack trace: #0 {main} thrown in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/GzipDecodeStream.php on line 13 [26-Nov-2025 19:33:34 UTC] PHP Fatal error: Trait "Http\Message\Decorator\StreamDecorator" not found in /home/fluxyjvi/public_html/project/vendor/php-http/message/src/Encoding/FilteredStream.php on line 14 DecompressStream.php 0000644 00000001621 15111705602 0010533 0 ustar 00 <?php namespace Http\Message\Encoding; use Clue\StreamFilter as Filter; use Psr\Http\Message\StreamInterface; /** * Stream decompress (RFC 1950). * * @author Joel Wurtz <joel.wurtz@gmail.com> */ class DecompressStream extends FilteredStream { /** * @param int $level */ public function __construct(StreamInterface $stream, $level = -1) { if (!extension_loaded('zlib')) { throw new \RuntimeException('The zlib extension must be enabled to use this stream'); } parent::__construct($stream, ['window' => 15]); // @deprecated will be removed in 2.0 $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => 15, 'level' => $level]); } protected function readFilter(): string { return 'zlib.inflate'; } protected function writeFilter(): string { return 'zlib.deflate'; } } GzipEncodeStream.php 0000644 00000001754 15111705603 0010466 0 ustar 00 <?php namespace Http\Message\Encoding; use Clue\StreamFilter as Filter; use Psr\Http\Message\StreamInterface; /** * Stream for encoding to gzip format (RFC 1952). * * @author Joel Wurtz <joel.wurtz@gmail.com> */ class GzipEncodeStream extends FilteredStream { /** * @param int $level */ public function __construct(StreamInterface $stream, $level = -1) { if (!extension_loaded('zlib')) { throw new \RuntimeException('The zlib extension must be enabled to use this stream'); } parent::__construct($stream, ['window' => 31, 'level' => $level]); // @deprecated will be removed in 2.0 $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => 31]); } /** * {@inheritdoc} */ protected function readFilter(): string { return 'zlib.deflate'; } /** * {@inheritdoc} */ protected function writeFilter(): string { return 'zlib.inflate'; } } CompressStream.php 0000644 00000001615 15111705603 0010226 0 ustar 00 <?php namespace Http\Message\Encoding; use Clue\StreamFilter as Filter; use Psr\Http\Message\StreamInterface; /** * Stream compress (RFC 1950). * * @author Joel Wurtz <joel.wurtz@gmail.com> */ class CompressStream extends FilteredStream { /** * @param int $level */ public function __construct(StreamInterface $stream, $level = -1) { if (!extension_loaded('zlib')) { throw new \RuntimeException('The zlib extension must be enabled to use this stream'); } parent::__construct($stream, ['window' => 15, 'level' => $level]); // @deprecated will be removed in 2.0 $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => 15]); } protected function readFilter(): string { return 'zlib.deflate'; } protected function writeFilter(): string { return 'zlib.inflate'; } } DechunkStream.php 0000644 00000000602 15111705603 0010007 0 ustar 00 <?php namespace Http\Message\Encoding; /** * Decorate a stream which is chunked. * * Allow to decode a chunked stream * * @author Joel Wurtz <joel.wurtz@gmail.com> */ class DechunkStream extends FilteredStream { protected function readFilter(): string { return 'dechunk'; } protected function writeFilter(): string { return 'chunk'; } }
Simpan