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

Function zgrab_rec

web_server/public/javascripts/api.js:709–726  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

707}
708
709function 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}

Callers 1

queriesFunction · 0.85

Calls 1

make_get_requestFunction · 0.85

Tested by

no test coverage detected