1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 19:09:01 +00:00

Don't use colons in directory names, part 2. Fixes #1146

This commit is contained in:
dmiller
2018-03-06 20:10:30 +00:00
parent 61ef838875
commit 80e1977308

View File

@@ -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