Update icap-info.nse

Not all ICAP servers use a service name and also will not return a service header from an OPTIONS request, resulting in no information returned by the script despite their being an ICAP service available.

To detect these cases have added service "/", and added parsing for "Methods" header which will return the capabilities even if no service name exists.
This commit is contained in:
Aimon 2026-04-29 10:33:44 +10:00 • committed by GitHub
parent 8f0ebd84ad
commit e43da571a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,8 +74,8 @@ end
action = function(host, port)
local services = {"/avscan", "/echo", "/srv_clamav", "/url_check", "/nmap" }
local headers = {"Service", "ISTag"}
local services = {"/avscan", "/echo", "/srv_clamav", "/url_check", "/nmap", "/" }
local headers = {"Service", "ISTag", "Methods"}
local probe = {
"OPTIONS icap://%s%s ICAP/1.0",
"Host: %s",