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

Function _pwnFilesHTML

web/scripts/ragnar_modern.js:6266–6279  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

6264 });
6265 return;
6266 }
6267 renderNetIntegrity(await fetchAPI('/api/net/integrity'));
6268 } catch (e) { /* offline — leave chips as-is */
6269 if (btn) { btn.disabled = false; btn.textContent = btn.dataset.orig || 'Check now'; }
6270 }
6271}
6272function _netintFillIfaces() {
6273 const sel = document.getElementById('netint-iface');
6274 if (!sel || sel.dataset.filled === '1') return Promise.resolve();
6275 return fetchAPI('/api/net/interfaces').then(x => {
6276 (x.interfaces || []).forEach(i => {
6277 const o = document.createElement('option');
6278 o.value = i.name;
6279 const tag = i.type === 'wifi' ? ' (WiFi)' : i.type === 'ethernet' ? ' (LAN)' : (i.type ? ' (' + i.type + ')' : '');
6280 o.textContent = i.name + tag;
6281 sel.appendChild(o);
6282 });

Callers 2

networkCardHTMLFunction · 0.70
networkRowHTMLFunction · 0.70

Calls 2

escapeHtmlFunction · 0.70
_pwnFileSizeLabelFunction · 0.70

Tested by

no test coverage detected