(results, source)
| 682 | } |
| 683 | |
| 684 | function addCountBox(results, source) { |
| 685 | if (results['count'] !== 0) { |
| 686 | document.getElementById("scanInformation").style.display = "block"; |
| 687 | let dataRow = document.getElementById("scanDataRow"); |
| 688 | dataRow.appendChild(create_div_data(source, create_button(results.count, source + "_button", "icon", "M", "search"))); |
| 689 | let titleRow = document.getElementById("scanTitleRow"); |
| 690 | |
| 691 | if (source === "22") { |
| 692 | titleRow.appendChild(create_div_title(source, "SSH")); |
| 693 | } else if (source === "25") { |
| 694 | titleRow.appendChild(create_div_title(source, "SMTP")); |
| 695 | } else if (source === "80") { |
| 696 | titleRow.appendChild(create_div_title(source, "HTTP")); |
| 697 | } else if (source === "443") { |
| 698 | titleRow.appendChild(create_div_title(source, "HTTPS")); |
| 699 | } else if (source === "465") { |
| 700 | titleRow.appendChild(create_div_title(source, "SMTPS")); |
| 701 | } else { |
| 702 | titleRow.appendChild(create_div_title(source, "Other")); |
| 703 | } |
| 704 | |
| 705 | document.getElementById(source + "_button").addEventListener("click", display_scan_records); |
| 706 | } |
| 707 | } |
| 708 | |
| 709 | function zgrab_rec(type, value) { |
| 710 |
nothing calls this directly
no test coverage detected