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

Function trimPwnLogBuffer

web/scripts/ragnar_modern.js:6523–6536  ·  view source on GitHub ↗
(limit = 600)

Source from the content-addressed store, hash-verified

6521 try {
6522 const d = await fetchAPI('/api/net/identity' + (scoped ? '?interface=' + encodeURIComponent(scoped) : ''));
6523 if (!d.success) {
6524 out.innerHTML = '<p class="text-red-400">' + escapeHtml(d.error || 'failed') + '</p>';
6525 return;
6526 }
6527 _ndLastIdentity = d;
6528 const rows = [];
6529 const row = (label, value) => rows.push(
6530 `<tr class="border-t border-slate-800">
6531 <td class="px-3 py-1.5 text-gray-500 whitespace-nowrap align-top">${escapeHtml(label)}</td>
6532 <td class="px-3 py-1.5 font-mono text-gray-200">${value}</td>
6533 </tr>`);
6534
6535 // Domain / search suffix
6536 let domainHtml;
6537 if (d.domains && d.domains.length) {
6538 domainHtml = d.domains.map(escapeHtml).join('<br>');
6539 } else if (d.guessed_domain) {

Callers 1

appendPwnLogEntriesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected