mirror of
https://github.com/nmap/nmap.git
synced 2026-11-28 10:30:14 +00:00
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:
parent
8f0ebd84ad
commit
e43da571a8
1 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue