MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / toggleLootExpansion

Function toggleLootExpansion

web/scripts/ragnar_modern.js:12369–12390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12367 }
12368 out.innerHTML = html;
12369 } catch (e) {
12370 out.innerHTML = '<p class="text-sm text-red-400">Failed: ' + escapeHtml(e.message) + '</p>';
12371 } finally {
12372 _ndBusy(btn, false);
12373 }
12374}
12375
12376// ---- SSDP / UPnP Watch (passive discovery + GENA eventing + IGD scanner) ----
12377const _SSDP_VERDICT_STYLE = {
12378 clean: ['bg-green-950/40 border-green-900 text-green-400', '✓ SSDP/UPnP healthy — no CallStranger, reflection/amplifier or IGD-abuse shape'],
12379 anomaly: ['bg-amber-950/50 border-amber-800 text-amber-300', '⚠ SSDP/UPnP posture issue — scope/TTL escape, advert spoof, byebye flood or unbounded GENA timeout'],
12380 attack: ['bg-red-950/60 border-red-800 text-red-300', '🛑 SSDP/UPnP attack / exposure — CallStranger off-link CALLBACK, reflection/amplifier, or WAN-side / third-party IGD control'],
12381 unknown: ['bg-slate-800 border-slate-700 text-slate-400', '— Could not determine'],
12382};
12383const _SSDP_SEV_COLOR = { high: 'text-red-300', medium: 'text-amber-300', low: 'text-gray-400' };
12384function _ssdpFillIfaces() {
12385 const sel = document.getElementById('ssdp-iface');
12386 if (!sel || sel.dataset.filled === '1') return Promise.resolve();
12387 return fetchAPI('/api/net/interfaces').then(x => {
12388 (x.interfaces || []).forEach(i => {
12389 const o = document.createElement('option');
12390 o.value = i.name;
12391 const tag = i.type === 'wifi' ? ' (WiFi)' : i.type === 'ethernet' ? ' (LAN)' : (i.type ? ' (' + i.type + ')' : '');
12392 o.textContent = i.name + tag;
12393 sel.appendChild(o);

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected