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

Function networkRowHTML

web/scripts/ragnar_modern.js:6314–6327  ·  view source on GitHub ↗
(net)

Source from the content-addressed store, hash-verified

6312 out.classList.remove('hidden');
6313 out.textContent = verb + ' ' + target + '…';
6314 try {
6315 const data = await postAPI(endpoint, { target });
6316 if (data.success) {
6317 out.textContent = data.output || '(no output)';
6318 } else if (data.missing_tool && rerunFnName) {
6319 out.innerHTML = _ndMissingTool(data, rerunFnName);
6320 } else {
6321 out.textContent = 'Error: ' + (data.error || 'failed');
6322 }
6323 } catch (e) {
6324 out.textContent = 'Failed: ' + e.message;
6325 } finally {
6326 _ndBusy(btn, false);
6327 }
6328}
6329
6330function runPing() { return _ndRunText('ping-target', 'ping-results', '/api/net/ping', 'Pinging', 'runPing'); }

Callers 1

displayPwnNetworksTableFunction · 0.85

Calls 5

escapeHtmlFunction · 0.70
formatTimestampFunction · 0.70
_pwnBadgesHTMLFunction · 0.70
_pwnGpsHTMLFunction · 0.70
_pwnFilesHTMLFunction · 0.70

Tested by

no test coverage detected