From 7cd36842427703583f99c527d985ee133655c8c7 Mon Sep 17 00:00:00 2001 From: q-- Date: Fri, 30 Nov 2012 16:00:22 +0100 Subject: [PATCH] More strict patterns Overly broad patterns can make detection less accurate and slower This is an improvedment of patterns changed in https://github.com/gadcam/Wappalyzer/commit/ff69a5b2adc83ea0d52672dd85591c0f53822eee#L52R138 --- drivers/bookmarklet/json | 22 +++++++++++----------- drivers/chrome/apps.json | 22 +++++++++++----------- drivers/firefox-jetpack/data/apps.json | 22 +++++++++++----------- drivers/firefox/content/apps.json | 22 +++++++++++----------- drivers/html/apps.json | 22 +++++++++++----------- drivers/php/apps.json | 22 +++++++++++----------- share/apps.json | 22 +++++++++++----------- 7 files changed, 77 insertions(+), 77 deletions(-) diff --git a/drivers/bookmarklet/json b/drivers/bookmarklet/json index ace737969..c89c29bff 100644 --- a/drivers/bookmarklet/json +++ b/drivers/bookmarklet/json @@ -299,7 +299,7 @@ }, "CO2Stats": { "cats": [ 10 ], - "html": "src=.+co2stats\\.com/propres\\.php" + "html": "src=[^>]+co2stats\\.com/propres\\.php" }, "CodeIgniter": { "cats": [ 18 ], @@ -389,12 +389,12 @@ "CS Cart": { "cats": [ 6 ], "env": "^fn_compare_strings$", - "html": " Powered by (]+cs-cart\\.com|CS-Cart)", "implies": [ "PHP" ] }, "CubeCart": { "cats": [ 6 ], - "html": "(Powered by ]+>Powered by CubeCart)", + "html": "(Powered by ]+cubecart\\.com|]+>Powered by CubeCart)", "meta": { "generator": "cubecart" }, "implies": [ "PHP" ] }, @@ -597,7 +597,7 @@ }, "Flyspray": { "cats": [ 13 ], - "html": "(]+>Powered by Flyspray|]+>Powered by Flyspray|]+flyspray\\.org)" }, "FreeBSD": { "cats": [ 28 ], @@ -619,7 +619,7 @@ }, "Gambio": { "cats": [ 6 ], - "html": "] href=\\\"templates/gambio/|]content\\.php\\?coID=\\d|", + "html": "]* href=\\\"templates/gambio/|]content\\.php\\?coID=\\d|", "implies": [ "PHP" ] }, "Gauges": { @@ -658,7 +658,7 @@ "Google Font API": { "cats": [ 17 ], "script": "googleapis.com/.+webfont", - "html": "]* href=.+fonts\\.googleapis\\.com", + "html": "]* href=[^>]+fonts\\.googleapis\\.com", "env": "^WebFonts$" }, "Google Maps": { @@ -1266,7 +1266,7 @@ }, "Plura": { "cats": [ 19 ], - "html": "