(type, value)
| 707 | } |
| 708 | |
| 709 | function zgrab_rec(type, value) { |
| 710 | |
| 711 | if (type === "ip") { |
| 712 | let url = "/api/v1.0/zgrab/ip"; |
| 713 | let query = "?ip=" + value + "&count=1"; |
| 714 | for (let entry in ScanSupportedPorts) { |
| 715 | let final_url = url + query + "&port=" + ScanSupportedPorts[entry]; |
| 716 | make_get_request(final_url, addCountBox, ScanSupportedPorts[entry], "scanOutput"); |
| 717 | } |
| 718 | } else if (type === "domain") { |
| 719 | var url = "/api/v1.0/zgrab/domain"; |
| 720 | let query = "?domain=" + value + "&count=1"; |
| 721 | for (let entry in ScanSupportedPorts) { |
| 722 | let final_url = url + query + "&port=" + ScanSupportedPorts[entry]; |
| 723 | make_get_request(final_url, addCountBox, ScanSupportedPorts[entry], "scanOutput"); |
| 724 | } |
| 725 | } |
| 726 | } |
no test coverage detected