mirror of
https://github.com/nmap/nmap.git
synced 2026-08-29 04:53:24 +00:00
[NSE] Added sanity check in data/http-devframework-fingerprints.lua
This commit is contained in:
parent
9f34a29778
commit
52589ae6d1
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue