mirror of
https://github.com/nmap/nmap.git
synced 2025-12-12 18:59:03 +00:00
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
#Nmap Changelog ($Id$); -*-text-*-
|
#Nmap Changelog ($Id$); -*-text-*-
|
||||||
|
|
||||||
|
o [NSE][GH#1099] Fix http-fetch to keep downloaded files in separate
|
||||||
|
destination directories. [Aniket Pandey]
|
||||||
|
|
||||||
o [NSE] Added two new fingerprints to http-default-accounts
|
o [NSE] Added two new fingerprints to http-default-accounts
|
||||||
(Hikvision DS-XXX Network Camera and NUOO DVR) [Paulino Calderon]
|
(Hikvision DS-XXX Network Camera and NUOO DVR) [Paulino Calderon]
|
||||||
|
|
||||||
|
|||||||
@@ -211,10 +211,12 @@ action = function(host, port)
|
|||||||
return output, output.ERROR
|
return output, output.ERROR
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local sub_directory = tostring(host.ip) .. ":" .. tostring(port.number) .. SEPARATOR
|
||||||
|
|
||||||
if destination:sub(-1) == '\\' or destination:sub(-1) == '/' then
|
if destination:sub(-1) == '\\' or destination:sub(-1) == '/' then
|
||||||
destination = destination
|
destination = destination .. sub_directory
|
||||||
else
|
else
|
||||||
destination = destination .. SEPARATOR
|
destination = destination .. SEPARATOR .. sub_directory
|
||||||
end
|
end
|
||||||
|
|
||||||
if paths then
|
if paths then
|
||||||
|
|||||||
Reference in New Issue
Block a user