From 752fd5331b9a2306ba48a7f58851b01b60c92648 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 19 Feb 2010 05:03:00 +0000 Subject: [PATCH] Use http.generic_request in http-iis-webdav-vuln.nse. --- scripts/http-iis-webdav-vuln.nse | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.