From a4a648a56ba50a7add9b3b285aaa2b97bf546931 Mon Sep 17 00:00:00 2001 From: sophron Date: Sun, 2 Mar 2014 17:38:57 +0000 Subject: [PATCH] Added an entry to http-devframework-fingerprints that detects SPIP framework. Patch by Paul AMAR. --- .../data/http-devframework-fingerprints.lua | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/nselib/data/http-devframework-fingerprints.lua b/nselib/data/http-devframework-fingerprints.lua index 47238c4f9..0aaae9087 100644 --- a/nselib/data/http-devframework-fingerprints.lua +++ b/nselib/data/http-devframework-fingerprints.lua @@ -361,4 +361,24 @@ tools = { Django = { rapidDetect = function(host, port) return end }, + + SPIP = { rapidDetect = function(host, port) + + local response = http.get(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 version ~= nil then + return "Version of the SPIP install is " .. version + end + end + end, + + consumingDetect = function(page, path) + return + end + }, + }