Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.189
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
lms-api-8 /
vendor /
mpdf /
mpdf /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
Barcode
[ DIR ]
drwxrwxr-x
Color
[ DIR ]
drwxrwxr-x
Config
[ DIR ]
drwxrwxr-x
Container
[ DIR ]
drwxrwxr-x
Conversion
[ DIR ]
drwxrwxr-x
Css
[ DIR ]
drwxrwxr-x
Exception
[ DIR ]
drwxrwxr-x
File
[ DIR ]
drwxrwxr-x
Fonts
[ DIR ]
drwxrwxr-x
Gif
[ DIR ]
drwxrwxr-x
Http
[ DIR ]
drwxrwxr-x
Image
[ DIR ]
drwxrwxr-x
Language
[ DIR ]
drwxrwxr-x
Log
[ DIR ]
drwxrwxr-x
Output
[ DIR ]
drwxrwxr-x
Pdf
[ DIR ]
drwxrwxr-x
Shaper
[ DIR ]
drwxrwxr-x
Tag
[ DIR ]
drwxrwxr-x
Utils
[ DIR ]
drwxrwxr-x
Writer
[ DIR ]
drwxrwxr-x
AssetFetcher.php
3.54
KB
-rwxrwxr-x
Barcode.php
5.92
KB
-rwxrwxr-x
Cache.php
2.32
KB
-rwxrwxr-x
CssManager.php
76.41
KB
-rwxrwxr-x
DirectWrite.php
14.58
KB
-rwxrwxr-x
Form.php
67.39
KB
-rwxrwxr-x
FpdiTrait.php
11.59
KB
-rwxrwxr-x
Gradient.php
34.06
KB
-rwxrwxr-x
HTMLParserMode.php
731
B
-rwxrwxr-x
Hyphenator.php
4.97
KB
-rwxrwxr-x
Mpdf.php
938.82
KB
-rwxrwxr-x
MpdfException.php
73
B
-rwxrwxr-x
MpdfImageException.php
82
B
-rwxrwxr-x
Otl.php
248.46
KB
-rwxrwxr-x
OtlDump.php
163.1
KB
-rwxrwxr-x
PageBox.php
1.02
KB
-rwxrwxr-x
PageFormat.php
2.33
KB
-rwxrwxr-x
ServiceFactory.php
5.79
KB
-rwxrwxr-x
SizeConverter.php
3.31
KB
-rwxrwxr-x
Strict.php
1.5
KB
-rwxrwxr-x
TTFontFile.php
169.31
KB
-rwxrwxr-x
TTFontFileAnalysis.php
14.22
KB
-rwxrwxr-x
TableOfContents.php
32.67
KB
-rwxrwxr-x
Tag.php
7.23
KB
-rwxrwxr-x
Ucdn.php
128.86
KB
-rwxrwxr-x
Watermark.php
49
B
-rwxrwxr-x
WatermarkImage.php
1.17
KB
-rwxrwxr-x
WatermarkText.php
887
B
-rwxrwxr-x
functions-dev.php
165
B
-rwxrwxr-x
functions.php
521
B
-rwxrwxr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : AssetFetcher.php
<?php namespace Mpdf; use Mpdf\File\LocalContentLoaderInterface; use Mpdf\File\StreamWrapperChecker; use Mpdf\Http\ClientInterface; use Mpdf\Log\Context as LogContext; use Mpdf\PsrHttpMessageShim\Request; use Mpdf\PsrLogAwareTrait\PsrLogAwareTrait; use Psr\Log\LoggerInterface; class AssetFetcher implements \Psr\Log\LoggerAwareInterface { use PsrLogAwareTrait; private $mpdf; private $contentLoader; private $http; public function __construct(Mpdf $mpdf, LocalContentLoaderInterface $contentLoader, ClientInterface $http, LoggerInterface $logger) { $this->mpdf = $mpdf; $this->contentLoader = $contentLoader; $this->http = $http; $this->logger = $logger; } public function fetchDataFromPath($path, $originalSrc = null) { /** * Prevents insecure PHP object injection through phar:// wrapper * @see https://github.com/mpdf/mpdf/issues/949 * @see https://github.com/mpdf/mpdf/issues/1381 */ $wrapperChecker = new StreamWrapperChecker($this->mpdf); if ($wrapperChecker->hasBlacklistedStreamWrapper($path)) { throw new \Mpdf\Exception\AssetFetchingException('File contains an invalid stream. Only ' . implode(', ', $wrapperChecker->getWhitelistedStreamWrappers()) . ' streams are allowed.'); } if ($originalSrc && $wrapperChecker->hasBlacklistedStreamWrapper($originalSrc)) { throw new \Mpdf\Exception\AssetFetchingException('File contains an invalid stream. Only ' . implode(', ', $wrapperChecker->getWhitelistedStreamWrappers()) . ' streams are allowed.'); } $this->mpdf->GetFullPath($path); return $this->isPathLocal($path) || ($originalSrc !== null && $this->isPathLocal($originalSrc)) ? $this->fetchLocalContent($path, $originalSrc) : $this->fetchRemoteContent($path); } public function fetchLocalContent($path, $originalSrc) { $data = ''; if ($originalSrc && $this->mpdf->basepathIsLocal && $check = @fopen($originalSrc, 'rb')) { fclose($check); $path = $originalSrc; $this->logger->debug(sprintf('Fetching content of file "%s" with local basepath', $path), ['context' => LogContext::REMOTE_CONTENT]); return $this->contentLoader->load($path); } if ($path && $check = @fopen($path, 'rb')) { fclose($check); $this->logger->debug(sprintf('Fetching content of file "%s" with non-local basepath', $path), ['context' => LogContext::REMOTE_CONTENT]); return $this->contentLoader->load($path); } return $data; } public function fetchRemoteContent($path) { $data = ''; try { $this->logger->debug(sprintf('Fetching remote content of file "%s"', $path), ['context' => LogContext::REMOTE_CONTENT]); /** @var \Mpdf\PsrHttpMessageShim\Response $response */ $response = $this->http->sendRequest(new Request('GET', $path)); if (!str_starts_with((string) $response->getStatusCode(), '2')) { $message = sprintf('Non-OK HTTP response "%s" on fetching remote content "%s" because of an error', $response->getStatusCode(), $path); if ($this->mpdf->debug) { throw new \Mpdf\MpdfException($message); } $this->logger->info($message); return $data; } $data = $response->getBody()->getContents(); } catch (\InvalidArgumentException $e) { $message = sprintf('Unable to fetch remote content "%s" because of an error "%s"', $path, $e->getMessage()); if ($this->mpdf->debug) { throw new \Mpdf\MpdfException($message, 0, E_ERROR, null, null, $e); } $this->logger->warning($message); } return $data; } public function isPathLocal($path) { return str_starts_with($path, 'file://') || strpos($path, '://') === false; // @todo More robust implementation } }
Close