1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-14 19:59:02 +00:00

[NSE] Added sanity check in data/http-devframework-fingerprints.lua

This commit is contained in:
sophron
2014-11-02 11:49:56 +00:00
parent 9f34a29778
commit 52589ae6d1

View File

@@ -369,7 +369,9 @@ tools = { Django = { rapidDetect = function(host, port)
if response and response.status == 200 then
header_composed_by = response.header['composed-by']
-- Check in Composed-by header for the version
version = string.match(header_composed_by, ('SPIP ((%d+)%.(%d+)%.(%d+))'))
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
end