Tul xxx Tul
User / IP
:
216.73.216.227
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
/
Viewing: pwa-icon.php
<?php require_once __DIR__ . '/config/config.php'; require_once __DIR__ . '/app/core/Database.php'; require_once __DIR__ . '/app/core/Model.php'; require_once __DIR__ . '/app/models/Ajuste.php'; function normalizePwaIconPath(string $path, string $fallback = ''): string { $path = trim($path); if ($path === '') { $path = $fallback; } return $path; } function resolvePwaLocalPath(string $assetPath): ?string { $assetPath = trim($assetPath); if ($assetPath === '') { return null; } if (preg_match('/^(https?:)?\/\//i', $assetPath) || str_starts_with($assetPath, 'data:')) { return null; } $assetPath = ltrim(str_replace('\\', '/', $assetPath), '/'); $fullPath = ROOT_PATH . '/' . $assetPath; return is_file($fullPath) ? $fullPath : null; } function createImageResourceFromFile(string $path) { $extension = strtolower(pathinfo($path, PATHINFO_EXTENSION)); return match ($extension) { 'png' => @imagecreatefrompng($path), 'jpg', 'jpeg' => @imagecreatefromjpeg($path), 'gif' => @imagecreatefromgif($path), 'webp' => function_exists('imagecreatefromwebp') ? @imagecreatefromwebp($path) : false, default => false, }; } $requestedSize = isset($_GET['size']) ? (int)$_GET['size'] : 512; $allowedSizes = [180, 192, 512]; $size = in_array($requestedSize, $allowedSizes, true) ? $requestedSize : 512; $fallbackPath = ROOT_PATH . '/public/assets/img/PNG.png'; $sourcePath = $fallbackPath; try { $ajustesMap = Ajuste::getMap(); $faviconSetting = normalizePwaIconPath($ajustesMap['favicon'] ?? '', 'public/assets/img/favicon.png'); $faviconLocalPath = resolvePwaLocalPath($faviconSetting); if ($faviconLocalPath) { $sourcePath = $faviconLocalPath; } } catch (Throwable $e) { } if (!extension_loaded('gd')) { if (is_file($sourcePath)) { header('Content-Type: image/png'); readfile($sourcePath); exit; } http_response_code(404); exit; } $source = createImageResourceFromFile($sourcePath); if (!$source) { $source = createImageResourceFromFile($fallbackPath); } if (!$source) { http_response_code(404); exit; } $canvas = imagecreatetruecolor($size, $size); imagealphablending($canvas, false); imagesavealpha($canvas, true); $transparent = imagecolorallocatealpha($canvas, 0, 0, 0, 127); imagefilledrectangle($canvas, 0, 0, $size, $size, $transparent); $sourceWidth = imagesx($source); $sourceHeight = imagesy($source); $scale = min($size / max($sourceWidth, 1), $size / max($sourceHeight, 1)); $targetWidth = max(1, (int)round($sourceWidth * $scale)); $targetHeight = max(1, (int)round($sourceHeight * $scale)); $targetX = (int)floor(($size - $targetWidth) / 2); $targetY = (int)floor(($size - $targetHeight) / 2); imagecopyresampled($canvas, $source, $targetX, $targetY, 0, 0, $targetWidth, $targetHeight, $sourceWidth, $sourceHeight); header('Content-Type: image/png'); header('Cache-Control: public, max-age=86400'); imagepng($canvas); imagedestroy($canvas); imagedestroy($source);
Coded With 💗 by
0x6ick