MCPcopy Create free account
hub / github.com/adobe/Marinus / display_scan_output

Function display_scan_output

web_server/public/javascripts/api.js:630–645  ·  view source on GitHub ↗
(results, port)

Source from the content-addressed store, hash-verified

628}
629
630function display_scan_output(results, port) {
631 let data = "";
632 if (port === "22") {
633 data = results[0]['data']['xssh'];
634 } else if (port === "25") {
635 data = results[0]['data']['smtp'];
636 } else if (port === "80") {
637 data = results[0]['data']['http'];
638 } else if (port === "443") {
639 data = results[0]['data']['http'];
640 } else if (port === "465") {
641 data = results[0]['data']['smtps'];
642 }
643
644 document.getElementById("scanOutput").textContent = JSON.stringify(data);
645}
646
647function display_scan_records(ev) {
648 var id = ev.currentTarget.id;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected