From e43da571a852848f4fb96a31fe13fb5a98d01aff Mon Sep 17 00:00:00 2001 From: Aimon Date: Wed, 29 Apr 2026 10:33:44 +1000 Subject: [PATCH] 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. --- scripts/icap-info.nse | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/icap-info.nse b/scripts/icap-info.nse index 11c9e7ee5..4e5f65352 100644 --- a/scripts/icap-info.nse +++ b/scripts/icap-info.nse @@ -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",