From 80e1977308e51b1b7aa038a38f8837a7e90b3849 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 6 Mar 2018 20:10:30 +0000 Subject: [PATCH] Don't use colons in directory names, part 2. Fixes #1146 --- scripts/http-fetch.nse | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/http-fetch.nse b/scripts/http-fetch.nse index 8887ae940..8ae686657 100644 --- a/scripts/http-fetch.nse +++ b/scripts/http-fetch.nse @@ -10,7 +10,7 @@ local table = require "table" description = [[The script is used to fetch files from servers. -The script supports three different use cases : +The script supports three different use cases: * The paths argument isn't provided, the script spiders the host and downloads files in their respective folders relative to the one provided using "destination". @@ -208,7 +208,7 @@ action = function(host, port) return output, output.ERROR end - local sub_directory = tostring(host.ip) .. ":" .. tostring(port.number) .. SEPARATOR + local sub_directory = tostring(host.ip) .. SEPARATOR .. tostring(port.number) .. SEPARATOR if destination:sub(-1) == '\\' or destination:sub(-1) == '/' then destination = destination .. sub_directory