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

Fix some globals in nselib/data/http-*.lua

This commit is contained in:
dmiller
2015-02-20 15:54:12 +00:00
parent ff8c8484b0
commit ca3d838b1b
2 changed files with 6 additions and 6 deletions

View File

@@ -367,13 +367,13 @@ tools = { Django = { rapidDetect = function(host, port)
local response = http.get(host, port, "/")
if response and response.status == 200 then
header_composed_by = response.header['composed-by']
local header_composed_by = response.header['composed-by']
-- Check in Composed-by header for the version
if header_composed_by ~= nil then
version = string.match(header_composed_by, ('SPIP ((%d+)%.(%d+)%.(%d+))'))
end
if version ~= nil then
return "Version of the SPIP install is " .. version
local version = string.match(header_composed_by, ('SPIP (%d+%.%d+%.%d+)'))
if version ~= nil then
return "Version of the SPIP install is " .. version
end
end
end
end,