diff --git a/scripts/http-iis-webdav-vuln.nse b/scripts/http-iis-webdav-vuln.nse index c8cf5ab65..893dc3476 100644 --- a/scripts/http-iis-webdav-vuln.nse +++ b/scripts/http-iis-webdav-vuln.nse @@ -47,7 +47,7 @@ local enum_results = local function get_response(host, port, folder) local webdav_req = '' - local mod_options = { + local options = { header = { Host = host.ip, Connection = "close", @@ -57,7 +57,7 @@ local function get_response(host, port, folder) content = webdav_req } - return http.request(host, port, "PROPFIND " .. folder .. " HTTP/1.1\r\n", mod_options) + return http.generic_request(host, port, "PROPFIND", folder, options) end ---Check a single folder on a single host for the vulnerability. Returns one of the enum_results codes.