Tul xxx Tul
User / IP
:
216.73.216.217
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
/
emprendo.com.co
/
public_html
/
ecomercial
/
app
/
Viewing: gift_helpers.php
<?php require_once __DIR__ . '/bootstrap.php'; function gift_base_path() { $scriptName = $_SERVER['SCRIPT_NAME'] ?? '/gift.php'; $basePath = dirname($scriptName); if (basename(str_replace('\\', '/', $basePath)) === 'admin') { $basePath = dirname($basePath); } if ($basePath === '/' || $basePath === '\\' || $basePath === '.') { return ''; } return rtrim(str_replace('\\', '/', $basePath), '/'); } function gift_asset_url($path) { $path = trim((string) $path); if ($path === '') { $path = 'assets/img/eComercial.png'; } if (preg_match('#^(https?:)?//#', $path) || str_starts_with($path, 'data:')) { return $path; } if (str_starts_with($path, '/')) { return $path; } return gift_base_path() . '/' . ltrim($path, '/'); } function gift_public_url($token, $absolute = false) { $path = gift_base_path() . '/regalo/' . rawurlencode((string) $token); if (!$absolute) { return $path; } $https = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || (($_SERVER['SERVER_PORT'] ?? '') === '443'); $scheme = $https ? 'https' : 'http'; $host = $_SERVER['HTTP_HOST'] ?? ''; return $host ? ($scheme . '://' . $host . $path) : $path; } function gift_by_token(PDO $pdo, $token) { $stmt = $pdo->prepare('SELECT * FROM cms_gift_deliveries WHERE public_token = ? LIMIT 1'); $stmt->execute([trim((string) $token)]); return $stmt->fetch() ?: null; } function gift_file_path(array $gift) { $fileUrl = trim((string) ($gift['gift_file_url'] ?? '')); if ($fileUrl === '' || preg_match('#^https?://#', $fileUrl)) { return null; } $localPath = parse_url($fileUrl, PHP_URL_PATH) ?: $fileUrl; $localPath = rawurldecode(str_replace('\\', '/', $localPath)); $root = realpath(__DIR__ . '/..'); $path = realpath(__DIR__ . '/../' . ltrim($localPath, '/')); if (!$root || !$path || !str_starts_with($path, $root) || !is_file($path)) { return null; } return $path; } function gift_is_video(array $gift) { $extension = strtolower(pathinfo((string) ($gift['gift_original_name'] ?? $gift['gift_file_url'] ?? ''), PATHINFO_EXTENSION)); return in_array($extension, ['mp4', 'mov', 'webm'], true); }
Coded With 💗 by
0x6ick