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

Function detectSerialPort

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

Source from the content-addressed store, hash-verified

17986 return;
17987 }
17988
17989 const previewCount = 10;
17990 const hasMore = networks.length > previewCount;
17991 const previewItems = networks.slice(0, previewCount);
17992 const hiddenItems = hasMore ? networks.slice(previewCount) : [];
17993
17994 /* --- Mobile card layout (shown < md) --- */
17995 function networkCardHTML(net) {
17996 const ssid = escapeHtml(net.ssid || 'Unknown');
17997 const bssid = escapeHtml(net.bssid || 'Unknown');
17998 const lastSeen = net.last_seen ? formatTimestamp(net.last_seen) : 'Unknown';
17999 return `
18000 <div class="bg-slate-800 bg-opacity-60 rounded-lg p-4">
18001 <div class="flex items-start justify-between gap-2 mb-2">
18002 <span class="text-white font-semibold text-sm break-all">${ssid}</span>
18003 <span class="text-xs text-gray-400 whitespace-nowrap">${lastSeen}</span>
18004 </div>
18005 <div class="text-xs text-gray-400 font-mono mb-2">${bssid}</div>
18006 <div class="flex flex-wrap gap-1 mb-1">${_pwnBadgesHTML(net)}</div>
18007 <div class="text-xs mt-1">${_pwnGpsHTML(net)}</div>
18008 ${_pwnFilesHTML(net.files)}
18009 </div>`;

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected