From 067e0eb806bfd43f17d0dcc88664c646d100384c Mon Sep 17 00:00:00 2001 From: Elbert Alias Date: Sun, 3 Feb 2013 10:04:43 +1100 Subject: [PATCH] Fixed Django pattern, added version detection to PHP driver --- drivers/bookmarklet/json | 2 +- drivers/chrome/apps.json | 2 +- drivers/chrome/js/content.js | 2 +- drivers/chrome/manifest.json | 2 +- drivers/firefox-jetpack/data/apps.json | 2 +- drivers/firefox/content/apps.json | 2 +- drivers/firefox/install.rdf | 2 +- drivers/html/apps.json | 2 +- drivers/php/apps.json | 2 +- drivers/php/index.php | 2 +- drivers/php/js/driver.js | 3 ++- share/apps.json | 2 +- 12 files changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/bookmarklet/json b/drivers/bookmarklet/json index 771d59afb..5c766147e 100755 --- a/drivers/bookmarklet/json +++ b/drivers/bookmarklet/json @@ -492,7 +492,7 @@ "Django CMS": { "cats": [ 1 ], "script": "media/cms/js/csrf\\.js", - "headers": { "Set-Cookie": "django[^\\;]=" }, + "headers": { "Set-Cookie": "django[^;]=" }, "implies": "Django" }, "Dojo": { diff --git a/drivers/chrome/apps.json b/drivers/chrome/apps.json index 771d59afb..5c766147e 100755 --- a/drivers/chrome/apps.json +++ b/drivers/chrome/apps.json @@ -492,7 +492,7 @@ "Django CMS": { "cats": [ 1 ], "script": "media/cms/js/csrf\\.js", - "headers": { "Set-Cookie": "django[^\\;]=" }, + "headers": { "Set-Cookie": "django[^;]=" }, "implies": "Django" }, "Dojo": { diff --git a/drivers/chrome/js/content.js b/drivers/chrome/js/content.js index 24b5330bd..1d9d3fb0e 100644 --- a/drivers/chrome/js/content.js +++ b/drivers/chrome/js/content.js @@ -49,7 +49,7 @@ c.log('getEnvironmentVars: ' + environmentVars); - environmentVars = environmentVars.split(' '); + environmentVars = environmentVars.split(' ').slice(0, 500); chrome.extension.sendRequest({ id: 'analyze', subject: { env: environmentVars } }); }), true); diff --git a/drivers/chrome/manifest.json b/drivers/chrome/manifest.json index 493eef862..b0289a304 100644 --- a/drivers/chrome/manifest.json +++ b/drivers/chrome/manifest.json @@ -1,7 +1,7 @@ { "name": "Wappalyzer", "homepage_url": "http://wappalyzer.com?utm_source=chrome&utm_medium=context&utm_campaign=extensions", "description": "Identifies software on the web", - "version": "2.17", + "version": "2.18", "default_locale": "en", "manifest_version": 2, "icons": { diff --git a/drivers/firefox-jetpack/data/apps.json b/drivers/firefox-jetpack/data/apps.json index 771d59afb..5c766147e 100755 --- a/drivers/firefox-jetpack/data/apps.json +++ b/drivers/firefox-jetpack/data/apps.json @@ -492,7 +492,7 @@ "Django CMS": { "cats": [ 1 ], "script": "media/cms/js/csrf\\.js", - "headers": { "Set-Cookie": "django[^\\;]=" }, + "headers": { "Set-Cookie": "django[^;]=" }, "implies": "Django" }, "Dojo": { diff --git a/drivers/firefox/content/apps.json b/drivers/firefox/content/apps.json index 771d59afb..5c766147e 100755 --- a/drivers/firefox/content/apps.json +++ b/drivers/firefox/content/apps.json @@ -492,7 +492,7 @@ "Django CMS": { "cats": [ 1 ], "script": "media/cms/js/csrf\\.js", - "headers": { "Set-Cookie": "django[^\\;]=" }, + "headers": { "Set-Cookie": "django[^;]=" }, "implies": "Django" }, "Dojo": { diff --git a/drivers/firefox/install.rdf b/drivers/firefox/install.rdf index 4d965fa75..4108b285c 100644 --- a/drivers/firefox/install.rdf +++ b/drivers/firefox/install.rdf @@ -3,7 +3,7 @@ wappalyzer@crunchlabz.com - 2.6.2 + 2.7.0 2 true diff --git a/drivers/html/apps.json b/drivers/html/apps.json index 771d59afb..5c766147e 100755 --- a/drivers/html/apps.json +++ b/drivers/html/apps.json @@ -492,7 +492,7 @@ "Django CMS": { "cats": [ 1 ], "script": "media/cms/js/csrf\\.js", - "headers": { "Set-Cookie": "django[^\\;]=" }, + "headers": { "Set-Cookie": "django[^;]=" }, "implies": "Django" }, "Dojo": { diff --git a/drivers/php/apps.json b/drivers/php/apps.json index 771d59afb..5c766147e 100755 --- a/drivers/php/apps.json +++ b/drivers/php/apps.json @@ -492,7 +492,7 @@ "Django CMS": { "cats": [ 1 ], "script": "media/cms/js/csrf\\.js", - "headers": { "Set-Cookie": "django[^\\;]=" }, + "headers": { "Set-Cookie": "django[^;]=" }, "implies": "Django" }, "Dojo": { diff --git a/drivers/php/index.php b/drivers/php/index.php index 1b82856fb..de82e3799 100644 --- a/drivers/php/index.php +++ b/drivers/php/index.php @@ -22,7 +22,7 @@ try { if ( $detectedApps ) { foreach ( $detectedApps as $detectedApp => $data ) { - echo $detectedApp . ', ' . $data->confidence . '%, ', implode(', ', $data->categories) . "\n"; + echo $detectedApp . ', ' . $data->version . ', ', $data->confidence . '%, ', implode(', ', $data->categories) . "\n"; } } else { echo "No applications detected\n"; diff --git a/drivers/php/js/driver.js b/drivers/php/js/driver.js index 8c2499e0a..36a8a385c 100644 --- a/drivers/php/js/driver.js +++ b/drivers/php/js/driver.js @@ -25,7 +25,8 @@ w.driver = { for ( app in w.detected[w.driver.data.url] ) { apps[app] = { categories: [], - confidence: w.detected[w.driver.data.url][app].confidenceTotal + confidence: w.detected[w.driver.data.url][app].confidenceTotal, + version: w.detected[w.driver.data.url][app].version }; w.apps[app].cats.map(function(cat) { diff --git a/share/apps.json b/share/apps.json index 771d59afb..5c766147e 100755 --- a/share/apps.json +++ b/share/apps.json @@ -492,7 +492,7 @@ "Django CMS": { "cats": [ 1 ], "script": "media/cms/js/csrf\\.js", - "headers": { "Set-Cookie": "django[^\\;]=" }, + "headers": { "Set-Cookie": "django[^;]=" }, "implies": "Django" }, "Dojo": {