(results, port)
| 628 | } |
| 629 | |
| 630 | function 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 | |
| 647 | function display_scan_records(ev) { |
| 648 | var id = ev.currentTarget.id; |
nothing calls this directly
no outgoing calls
no test coverage detected