From c6508cceb673f5670496a1929fabff500e47b4e6 Mon Sep 17 00:00:00 2001 From: kris Date: Fri, 22 Jan 2010 18:38:46 +0000 Subject: [PATCH] Fix http-enum.nse so it uses the full pathname for the fingerprints file (from fetchfile) so it doesn't throw an error and quit running. Reported by Ron Meldau and Brandon: http://seclists.org/nmap-dev/2010/q1/222 --- scripts/http-enum.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/http-enum.nse b/scripts/http-enum.nse index 1c432dfca..dd8f7e877 100644 --- a/scripts/http-enum.nse +++ b/scripts/http-enum.nse @@ -195,7 +195,7 @@ local function get_fingerprints() stdnse.print_debug(1, "http-enum: Attempting to parse fingerprint file %s", filename) local product = nil - for line in io.lines(filename) do + for line in io.lines(filename_full) do -- Ignore "Pre-Auth", "Post-Auth", and blank lines if(string.sub(line, 1, #PREAUTH) ~= PREAUTH and string.sub(line, 1, #POSTAUTH) ~= POSTAUTH and #line > 0) then -- Commented lines indicate products