mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +00:00
Adds Express in http-devframework-fingerprints.lua Closes #790
This commit is contained in:
@@ -383,4 +383,22 @@ tools = { Django = { rapidDetect = function(host, port)
|
|||||||
end
|
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
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user