1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 08:51:36 +00:00

Adds Express in http-devframework-fingerprints.lua Closes #790

This commit is contained in:
vinamra
2017-07-06 20:57:43 +00:00
parent 8470351025
commit 706fd7c130

View File

@@ -383,4 +383,22 @@ tools = { Django = { rapidDetect = function(host, port)
end
},
Express = { rapidDetect = function(host, port)
local response = http.get(host, port, "/")
if response and response.status == 200 then
local header_x_powered_by = response.header['x-powered-by']
-- Check for 'X-Powered-By' Header
if header_x_powered_by == "Express" then
return string.format("Express detected. Found Express in X-Powered-By Header")
end
end
end,
consumingDetect = function(page, path)
return
end
},
}