Tul xxx Tul
User / IP
:
216.73.216.146
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
/
cuentame
/
Viewing: sw.js
const CACHE_NAME = 'cuentame-pwa-v1'; // Derivar base a partir del scope de registro (normalmente .../cuentame/) const SCOPE = (self.registration && self.registration.scope) || (self.location.origin + self.location.pathname.replace(/sw\.js$/, '')); function toPath(rel){ return new URL(rel, SCOPE).pathname; } const APP_SHELL = [ toPath('index.php'), toPath('manifest.webmanifest'), toPath('assets/js/pwa.js'), // Favicon fuera de cuentame: subir desde scope un nivel new URL('../assets/img/favicon.png', SCOPE).pathname ]; self.addEventListener('install', (event) => { event.waitUntil( caches.open(CACHE_NAME).then((cache) => cache.addAll(APP_SHELL)).then(() => self.skipWaiting()) ); }); self.addEventListener('activate', (event) => { event.waitUntil( caches.keys().then((keys) => Promise.all(keys.map((k) => { if (k !== CACHE_NAME) return caches.delete(k); }))) .then(() => self.clients.claim()) ); }); self.addEventListener('fetch', (event) => { const req = event.request; // Try network first, fallback to cache event.respondWith( fetch(req).then((res) => { const resClone = res.clone(); caches.open(CACHE_NAME).then((cache) => cache.put(req, resClone)).catch(()=>{}); return res; }).catch(() => caches.match(req)) ); }); // Handle notification clicks: focus an existing client or open a new one self.addEventListener('notificationclick', (event) => { event.notification.close(); const targetUrl = (event.notification && event.notification.data && event.notification.data.url) || new URL('.', SCOPE).pathname; event.waitUntil( (async () => { const allClients = await self.clients.matchAll({ type: 'window', includeUncontrolled: true }); // Try to focus an open tab with same origin and path prefix for (const client of allClients) { try { if (client.url && client.url.indexOf(new URL('.', SCOPE).pathname) !== -1) { await client.focus(); await client.navigate(targetUrl); return; } } catch (_) {} } // Otherwise open a new window await self.clients.openWindow(targetUrl); })() ); }); // Optional: handle Web Push payloads if configured in the future self.addEventListener('push', (event) => { try { const data = event.data ? event.data.json() : {}; const title = data.title || 'Nuevo mensaje'; const body = data.body || 'Tienes una nueva notificación'; const url = data.url || new URL('.', SCOPE).pathname; const options = { body, icon: new URL('../assets/img/favicon.png', SCOPE).pathname, badge: new URL('../assets/img/favicon.png', SCOPE).pathname, data: { url } }; event.waitUntil(self.registration.showNotification(title, options)); } catch (_) { // noop } });
Coded With 💗 by
0x6ick