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

Function copyRecoveryCodes

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

Source from the content-addressed store, hash-verified

5735 const phyCls = c.is_11b ? 'text-red-300' : c.legacy ? 'text-amber-300' : 'text-gray-400';
5736 const phyTip = c.is_11b ? 'title="802.11b CCK — forces protection overhead on the whole cell"' : '';
5737 const phy = `<span class="${phyCls}" ${phyTip}>${conf}${c.phy || '—'}</span>`;
5738 // Disproportion: airtime share ÷ byte share. >1 = eating more airtime than
5739 // its traffic justifies; this is the number that names the culprit.
5740 const disp = c.disproportion != null && c.disproportion >= 2
5741 ? ` <span class="text-orange-400 text-[10px]" title="airtime share ÷ byte share">${c.disproportion}×</span>` : '';
5742 const name = c.hostname || c.device_label || c.vendor;
5743 const sub = [c.hostname ? (c.device_label || c.vendor) : c.vendor, c.ip]
5744 .filter(Boolean).join(' · ');
5745 const device = name
5746 ? `<span class="text-gray-200">${_esc(name)}</span>${sub ? ` <span class="text-gray-500 text-[10px]">${_esc(sub)}</span>` : ''}`
5747 : '<span class="text-gray-600" title="Not in the host inventory — run a network scan on the connected radio to name it">unidentified</span>';
5748 const ssid = c.ssid ? _esc(c.ssid)
5749 : (c.bssid ? `<span class="text-gray-600 font-mono text-[10px]" title="AP SSID not seen in this capture">${c.bssid}</span>` : '<span class="text-gray-600">—</span>');
5750 return `<tr class="border-b border-slate-800/50 ${c.legacy ? 'bg-red-900/10' : ''}">
5751 <td class="py-1 pr-2 font-mono text-[11px]" data-label="Client">${c.client}</td>

Callers

nothing calls this directly

Calls 1

addConsoleMessageFunction · 0.70

Tested by

no test coverage detected