Merge pull request #11 from AliasIO/master

update
main
֍ DaAwesomeP ֎ 8 years ago committed by GitHub
commit 21b8ddc8d5

12
.gitignore vendored

@ -1,19 +1,11 @@
.vagrant .vagrant
build/* build/*
drivers/npm/node_modules
drivers/npm/npm-debug.log
src/icons/converted/* src/icons/converted/*
package.json node_modules
node_modules/
npm-debug.log npm-debug.log
Thumbs.db tags
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
!.gitkeep !.gitkeep

@ -24,7 +24,7 @@ node $WAPPALYZER_NODE_PATH/node_modules/jsonlint/lib/cli.js -ist $'\t' $WAPPALYZ
echo "Compressing PNG and SVG icons..." echo "Compressing PNG and SVG icons..."
node $WAPPALYZER_NODE_PATH/node_modules/imagemin-cli/cli.js $WAPPALYZER_ROOT/src/icons/* $WAPPALYZER_ROOT/src/icons node $WAPPALYZER_NODE_PATH/node_modules/imagemin-cli/cli.js $WAPPALYZER_ROOT/src/icons/* --out-dir $WAPPALYZER_ROOT/src/icons 2>&1 > /dev/null
echo "Converting SVG icons to PNG..." echo "Converting SVG icons to PNG..."
@ -50,10 +50,6 @@ node $WAPPALYZER_NODE_PATH/node_modules/imagemin-cli/cli.js $WAPPALYZER_ROOT/src
wappalyzer links wappalyzer links
# Npm Module
mkdir -p $WAPPALYZER_ROOT/build/wappalyzer_npm/
cp -R $WAPPALYZER_ROOT/src/drivers/npm/* $WAPPALYZER_ROOT/build/wappalyzer_npm/
# Mozilla Firefox # Mozilla Firefox
echo "Building Firefox driver..." echo "Building Firefox driver..."
@ -70,17 +66,13 @@ pushd $WAPPALYZER_ROOT/src/drivers/chrome > /dev/null
zip -qr $WAPPALYZER_ROOT/build/wappalyzer_chrome.zip . zip -qr $WAPPALYZER_ROOT/build/wappalyzer_chrome.zip .
popd > /dev/null # Google Chrome
echo "Building WebExtension driver..."
# Bookmarklet
echo "Building Bookmarklet driver..."
echo "var json =" > /tmp/bookmarklet
cat $WAPPALYZER_ROOT/src/apps.json >> /tmp/bookmarklet pushd $WAPPALYZER_ROOT/src/drivers/webextension > /dev/null
echo -e ";\n\nwappalyzer.apps = json.apps;\nwappalyzer.categories = json.categories;" >> /tmp/bookmarklet zip -qr $WAPPALYZER_ROOT/build/wappalyzer_webextension.zip .
mv /tmp/bookmarklet $WAPPALYZER_ROOT/src/drivers/bookmarklet/js/apps.js popd > /dev/null
echo "Done. Builds have been created in $WAPPALYZER_ROOT/build." echo "Done. Builds have been created in $WAPPALYZER_ROOT/build."

@ -27,44 +27,34 @@ path="$path/src"
echo "Creating hard links..." echo "Creating hard links..."
ln -f $path/wappalyzer.js $path/drivers/firefox/lib ln -f $path/wappalyzer.js $path/drivers/phantomjs
ln -f $path/apps.json $path/drivers/phantomjs
ln -f $path/wappalyzer.js $path/drivers/firefox
ln -f $path/apps.json $path/drivers/firefox/data ln -f $path/apps.json $path/drivers/firefox/data
ln -f $path/icons/*.png $path/drivers/firefox/data/images/icons ln -f $path/icons/*.png $path/drivers/firefox/data/images/icons
ln -f $path/icons/*.svg $path/drivers/firefox/data/images/icons ln -f $path/icons/*.svg $path/drivers/firefox/data/images/icons
ln -f $path/utils/*.js $path/drivers/firefox/data/js ln -f $path/utils/iframe.js $path/drivers/firefox/data/js
ln -f $path/wappalyzer.js $path/drivers/chrome/js ln -f $path/wappalyzer.js $path/drivers/chrome/js
ln -f $path/apps.json $path/drivers/chrome ln -f $path/apps.json $path/drivers/chrome
ln -f $path/icons/*.png $path/drivers/chrome/images/icons ln -f $path/icons/*.png $path/drivers/chrome/images/icons
ln -f $path/icons/*.svg $path/drivers/chrome/images/icons
ln -f $path/utils/*.js $path/drivers/chrome/js ln -f $path/utils/*.js $path/drivers/chrome/js
if [ compgen -G "$path/icons/converted/*.png" > /dev/null ]; then if [ "$(compgen -G "$path/icons/converted/*.png" | head -n1)" ]; then
ln -f $path/icons/converted/*.png $path/drivers/chrome/images/icons/converted ln -f $path/icons/converted/*.png $path/drivers/chrome/images/icons/converted
fi fi
ln -f $path/wappalyzer.js $path/drivers/bookmarklet/js ln -f $path/wappalyzer.js $path/drivers/webextension/js
ln -f $path/icons/*.png $path/drivers/bookmarklet/images/icons ln -f $path/apps.json $path/drivers/webextension
ln -f $path/icons/*.svg $path/drivers/bookmarklet/images/icons ln -f $path/icons/*.png $path/drivers/webextension/images/icons
ln -f $path/icons/*.svg $path/drivers/webextension/images/icons
ln -f $path/wappalyzer.js $path/drivers/html/js ln -f $path/utils/*.js $path/drivers/webextension/js
ln -f $path/apps.json $path/drivers/html
ln -f $path/icons/*.png $path/drivers/html/images/icons
ln -f $path/icons/*.svg $path/drivers/html/images/icons
ln -f $path/wappalyzer.js $path/drivers/php/js
ln -f $path/apps.json $path/drivers/php
ln -f $path/wappalyzer.js $path/drivers/python/js
ln -f $path/apps.json $path/drivers/python
ln -f $path/wappalyzer.js $path/drivers/phantomjs if [ "$(compgen -G "$path/icons/converted/*.png" | head -n1)" ]; then
ln -f $path/apps.json $path/drivers/phantomjs ln -f $path/icons/converted/*.png $path/drivers/webextension/images/icons/converted
fi
ln -f $path/wappalyzer.js $path/drivers/ruby/js
ln -f $path/apps.json $path/drivers/ruby
ln -f $path/wappalyzer.js $path/drivers/npm
ln -f $path/apps.json $path/drivers/npm
echo "OK" echo "OK"

@ -1,23 +1,20 @@
#!/bin/bash #!/bin/bash
path=$1 path="$1"
if [ -z $path ] if [ -z "$path" ]; then
then if [ -z "$WAPPALYZER_ROOT" ]; then
if [ -z $WAPPALYZER_ROOT ]
then
echo "-$(basename $0): No path specified" echo "-$(basename $0): No path specified"
exit 1 exit 1
fi fi
path=$WAPPALYZER_ROOT path="$WAPPALYZER_ROOT"
fi fi
set -eu set -eu
if [ ! -d $path/src ] if [ ! -d "$path/src" ]; then
then
echo "-$(basename $0): Incorrect path" echo "-$(basename $0): Incorrect path"
exit 1 exit 1
@ -27,7 +24,7 @@ path="$path/src"
echo "Validating apps.json..." echo "Validating apps.json..."
node $WAPPALYZER_NODE_PATH/node_modules/jsonlint/lib/cli.js --quiet -V $WAPPALYZER_ROOT/schema.json $path/apps.json node "$WAPPALYZER_NODE_PATH/node_modules/jsonlint/lib/cli.js" --quiet -V "$WAPPALYZER_ROOT/schema.json" "$path/apps.json"
echo "Validating regular expressions..." echo "Validating regular expressions..."

@ -80,7 +80,7 @@ for ( app in json.apps ) {
} }
}); });
if ( /[a-z]+:\/\//i.test(json.apps[app].website) ) { if ( !/^https?:\/\//i.test(json.apps[app].website) ) {
throw new Error('Do not include the protocol in the website URL\n' + app + ': ' + json.apps[app].website); throw new Error('Invalid website URL\n' + app + ': ' + json.apps[app].website);
} }
} }

@ -8,9 +8,10 @@ ENV WAPPALYZER_ROOT /home/wappalyzer/synced
ENV WAPPALYZER_NODE_PATH /home/wappalyzer/node ENV WAPPALYZER_NODE_PATH /home/wappalyzer/node
# Install packages # Install packages
RUN apt-get update && apt-get install -y sudo curl bzip2 zip libfreetype6 libfontconfig RUN sed -i 's/archive\.ubuntu\.com/au.archive.ubuntu.com/g' /etc/apt/sources.list
RUN apt-get update && apt-get install -y sudo curl
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs RUN apt-get install -y nodejs bzip2 zip libfreetype6 libfontconfig rsync
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
@ -39,7 +40,6 @@ RUN su wappalyzer -c "mkdir $WAPPALYZER_NODE_PATH"
ADD node/package.json $WAPPALYZER_NODE_PATH/package.json ADD node/package.json $WAPPALYZER_NODE_PATH/package.json
RUN ln -s -f /usr/local/bin/npm /usr/bin/npm
RUN su wappalyzer -c "cd $WAPPALYZER_NODE_PATH && npm i" RUN su wappalyzer -c "cd $WAPPALYZER_NODE_PATH && npm i"

File diff suppressed because it is too large Load Diff

@ -1,118 +0,0 @@
div#wappalyzer-container * {
background-color: transparent !important;
border: none !important;
border-left: none !important;
border-top: none !important;
border-right: none !important;
border-bottom: none !important;
border-spacing: 0 !important;
color: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
font-family: inherit !important;
font-style: inherit !important;
line-height: inherit !important;
list-style: none inside !important;
margin: 0 !important;
outline: none !important;
padding: 0 !important;
text-align: inherit !important;
text-decoration: none !important;
white-space: inherit !important;
}
#wappalyzer-container {
background: #fff !important;
border: 1px solid #999;
box-shadow: 0 0 10px rgba(0, 0, 0, .2) !important;
color: #222 !important;
font-family: Arial, sans-serif !important;
font-size: 14px !important;
line-height: 1.5em !important;
margin: 0 !important;
position: fixed !important;
text-align: left !important;
right: 20px !important;
top: 20px !important;
width: 250px !important;
z-index: 99999 !important;
}
#wappalyzer-container #wappalyzer-pending {
background-repeat: no-repeat !important;
background-position: center center !important;
height: 60px !important;
}
#wappalyzer-container a#wappalyzer-close:link,
#wappalyzer-container a#wappalyzer-close:hover,
#wappalyzer-container a#wappalyzer-close:active,
#wappalyzer-container a#wappalyzer-close:visited {
background: #f8f8f8 !important;
border-bottom: 1px solid #ccc !important;
display: block !important;
font-weight: bold !important;
line-height: 30px !important;
text-align: center !important;
}
#wappalyzer-container #wappalyzer-close:hover {
background: #f4f4f4 !important;
color: #0072B6 !important;
}
#wappalyzer-container #wappalyzer-empty {
border-bottom: 1px solid #ccc !important;
color: #999 !important;
display: block !important;
line-height: 30px !important;
text-align: center !important;
}
#wappalyzer-container #wappalyzer-apps {
padding-top: 2px !important;
}
#wappalyzer-container #wappalyzer-apps img {
vertical-align: middle !important;
}
#wappalyzer-container #wappalyzer-apps a:link,
#wappalyzer-container #wappalyzer-apps a:hover,
#wappalyzer-container #wappalyzer-apps a:active,
#wappalyzer-container #wappalyzer-apps a:visited {
display: block !important;
text-decoration: none !important;
}
#wappalyzer-container #wappalyzer-apps a:hover {
color: #0072B6 !important;
}
#wappalyzer-container #wappalyzer-apps div.wappalyzer-app {
background: #fff !important;
border-radius: 5px !important;
-moz-border-radius: 5px !important;
-webkit-border-radius: 5px !important;
margin: 0 2px 2px 2px !important;
padding: 7px 10px !important;
}
#wappalyzer-container #wappalyzer-apps a.wappalyzer-application:link,
#wappalyzer-container #wappalyzer-apps a.wappalyzer-application:hover,
#wappalyzer-container #wappalyzer-apps a.wappalyzer-application:active,
#wappalyzer-container #wappalyzer-apps a.wappalyzer-application:visited {
font-weight: bold !important;
margin-bottom: 3px !important;
}
#wappalyzer-container #wappalyzer-apps a.wappalyzer-category:link,
#wappalyzer-container #wappalyzer-apps a.wappalyzer-category:hover,
#wappalyzer-container #wappalyzer-apps a.wappalyzer-category:active,
#wappalyzer-container #wappalyzer-apps a.wappalyzer-category:visited {
color: #999 !important;
}
#wappalyzer-container #wappalyzer-apps a.wappalyzer-category:hover {
color: #0072B6 !important;
}

@ -3,7 +3,9 @@
*/ */
(function() { (function() {
if ( wappalyzer == null ) return; if ( typeof wappalyzer === 'undefined' ) {
return;
}
var var
w = wappalyzer, w = wappalyzer,
@ -11,54 +13,12 @@
d = window.document, d = window.document,
container = d.getElementById('wappalyzer-container'), container = d.getElementById('wappalyzer-container'),
domain = window.top.location.host, domain = window.top.location.host,
url = window.top.location.href, url = window.top.location.href.replace(/#.*$/, ''),
hasOwn = Object.prototype.hasOwnProperty, hasOwn = Object.prototype.hasOwnProperty;
categoryNames = {
1: 'CMS',
2: 'Message Board',
3: 'Database Manager',
4: 'Documentation Tool',
5: 'Widget',
6: 'Web Shop',
7: 'Photo Gallery',
8: 'Wiki',
9: 'Hosting Panel',
10: 'Analytics',
11: 'Blog',
12: 'Javascript Framework',
13: 'Issue Tracker',
14: 'Video Player',
15: 'Comment System',
16: 'Captcha',
17: 'Font Script',
18: 'Web Framework',
19: 'Miscellaneous',
20: 'Editor',
21: 'LMS',
22: 'Web Server',
23: 'Cache Tool',
24: 'Rich Text Editor',
25: 'Javascript Graphics',
26: 'Mobile Framework',
27: 'Programming Language',
28: 'Operating System',
29: 'Search Engine',
30: 'Web Mail',
31: 'CDN',
32: 'Marketing Automation',
33: 'Web Server Extensions',
34: 'Databases',
35: 'Maps',
36: 'Advertising Networks',
37: 'Network Devices',
38: 'Media Servers',
39: 'Webcams',
40: 'Printers',
41: 'Payment Processors'
}
;
w.driver = { w.driver = {
timeout: 1000,
/** /**
* Log messages to console * Log messages to console
*/ */
@ -79,9 +39,11 @@
getEnvironmentVars: function() { getEnvironmentVars: function() {
w.log('func: getEnvironmentVars'); w.log('func: getEnvironmentVars');
var env = new Array; var i, env = [];
for ( i in window ) { env.push(i); } for ( i in window ) {
env.push(i);
}
w.analyze(domain, url, { html: d.documentElement.innerHTML, env: env }); w.analyze(domain, url, { html: d.documentElement.innerHTML, env: env });
}, },
@ -103,11 +65,13 @@
var responseHeaders = {}; var responseHeaders = {};
headers.forEach(function(line) { headers.forEach(function(line) {
var name, value;
if ( line ) { if ( line ) {
name = line.substring(0, line.indexOf(': ')); name = line.substring(0, line.indexOf(': '));
value = line.substring(line.indexOf(': ') + 2, line.length - 1); value = line.substring(line.indexOf(': ') + 2, line.length - 1);
responseHeaders[name] = value; responseHeaders[name.toLowerCase()] = value;
} }
}); });
@ -126,39 +90,40 @@
w.log('func: diplayApps'); w.log('func: diplayApps');
var var
i,
first = true, first = true,
app,
category, category,
html html;
;
html = html =
'<a id="wappalyzer-close" href="javascript: window.document.body.removeChild(window.document.getElementById(\'wappalyzer-container\')); void(0);">' + '<a id="wappalyzer-close" href="javascript: window.document.body.removeChild(window.document.getElementById(\'wappalyzer-container\')); void(0);">' +
'Close' + 'Close' +
'</a>' + '</a>' +
'<div id="wappalyzer-apps">' '<div id="wappalyzer-apps">';
;
if ( w.detected[url] != null && Object.keys(w.detected[url]).length ) { if ( w.detected[url] != null && Object.keys(w.detected[url]).length ) {
for ( app in w.detected[url] ) { for ( app in w.detected[url] ) {
if ( !hasOwn.call(w.detected[url], app) ) { if ( !hasOwn.call(w.detected[url], app) ) {
continue; continue;
} }
html += html +=
'<div class="wappalyzer-app' + ( first ? ' wappalyzer-first' : '' ) + '">' + '<div class="wappalyzer-app' + ( first ? ' wappalyzer-first' : '' ) + '">' +
'<a target="_blank" class="wappalyzer-application" href="' + w.config.websiteURL + 'applications/' + app.toLowerCase().replace(/ /g, '-').replace(/[^a-z0-9-]/g, '') + '">' + '<a target="_blank" class="wappalyzer-application" href="' + w.config.websiteURL + 'applications/' + app.toLowerCase().replace(/ /g, '-').replace(/[^a-z0-9-]/g, '') + '">' +
'<strong>' + '<strong>' +
'<img src="' + w.config.websiteURL + 'bookmarklet/images/icons/' + w.apps[app].icon + '" width="16" height="16"/> ' + app + '<img src="' + w.config.websiteURL + 'images/icons/' + w.apps[app].icon + '" width="16" height="16"/> ' + app +
'</strong>' + '</strong>' +
'</a>' '</a>';
;
for ( i in w.apps[app].cats ) { for ( i in w.apps[app].cats ) {
if ( !hasOwn.call(w.apps[app].cats, i) ) { if ( !hasOwn.call(w.apps[app].cats, i) ) {
continue; continue;
} }
category = w.apps[app].cats[i];
html += '<a target="_blank" class="wappalyzer-category" href="' + w.config.websiteURL + 'categories/' + w.categories[category] + '">' + categoryNames[category] + '</a>'; category = w.categories[w.apps[app].cats[i]];
html += '<a target="_blank" class="wappalyzer-category" href="' + w.config.websiteURL + 'categories/' + w.driver.slugify(category) + '">' + category + '</a>';
} }
html += '</div>'; html += '</div>';
@ -179,6 +144,10 @@
*/ */
goToURL: function(args) { goToURL: function(args) {
window.open(args.url); window.open(args.url);
},
slugify: function(string) {
return string.toLowerCase().replace(/ /g, '-').replace(/[^\w-]/g, '');
} }
}; };

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

@ -1,94 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Wappalyzer</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<style type="text/css">
body {
color: #000;
font-family: Verdana, Arial, sans-serif;
font-size: 14px;
}
#bookmarklet {
border: 1px solid #333;
color: #000;
display: inline-block;
padding: 10px 25px;
text-decoration: none;
}
</style>
</head>
<body>
<p>
Drag this button to your bookmarks toolbar:
</p>
<p>
<a id="bookmarklet" href="javascript: void(0);">Wappalyzer</a>
</p>
<div id="bookmarklet-code" style="display: none">
(function() {
var
d = document,
e = d.getElementById('wappalyzer-container');
if ( e !== null ) {
d.body.removeChild(e);
}
var
u = 'https://wappalyzer.com/bookmarklet/',
t = new Date().getTime(),
c = d.createElement('div'),
p = d.createElement('div'),
l = d.createElement('link'),
s = d.createElement('script');
c.setAttribute('id', 'wappalyzer-container');
l.setAttribute('rel', 'stylesheet');
l.setAttribute('href', u + 'css/wappalyzer.css');
d.head.appendChild(l);
p.setAttribute('id', 'wappalyzer-pending');
p.setAttribute('style', 'background-image: url(' + u + 'images/pending.gif) !important');
c.appendChild(p);
s.setAttribute('src', u + 'js/wappalyzer.js?' + t);
s.onload = function() {
s = d.createElement('script');
s.setAttribute('src', u + 'js/apps.js?' + t);
s.onload = function() {
s = d.createElement('script');
s.setAttribute('src', u + 'js/driver.js?' + t);
c.appendChild(s);
};
c.appendChild(s);
};
c.appendChild(s);
d.body.appendChild(c);
})();
</div>
<script>
$('#bookmarklet').attr('href', 'javascript:' + $('#bookmarklet-code').html().replace(/\s+/g, ' '));
</script>
</body>
</html>

@ -1,5 +1,7 @@
apps.json apps.json
images/icons/converted/*.png
images/icons/*.png images/icons/*.png
images/icons/*.svg images/icons/*.svg
js/wappalyzer.js js/wappalyzer.js
js/iframe.js js/iframe.js
js/network.js

@ -16,7 +16,7 @@
"categoryName5": { "message": "Widget" }, "categoryName5": { "message": "Widget" },
"categoryName10": { "message": "Analytics" }, "categoryName10": { "message": "Analytics" },
"categoryName11": { "message": "Blog" }, "categoryName11": { "message": "Blog" },
"categoryName12": { "message": "Framework της Javascript" }, "categoryName12": { "message": "Framework της JavaScript" },
"categoryName13": { "message": "Issue Tracker" }, "categoryName13": { "message": "Issue Tracker" },
"categoryName14": { "message": "Πρόγραμμα αναπαραγωγής Βίντεο" }, "categoryName14": { "message": "Πρόγραμμα αναπαραγωγής Βίντεο" },
"categoryName15": { "message": "Σύστημα Σχολίων" }, "categoryName15": { "message": "Σύστημα Σχολίων" },
@ -29,7 +29,7 @@
"categoryName22": { "message": "Διακομιστής Διαδικτύου" }, "categoryName22": { "message": "Διακομιστής Διαδικτύου" },
"categoryName23": { "message": "Εργαλείο Μνήμης Cache" }, "categoryName23": { "message": "Εργαλείο Μνήμης Cache" },
"categoryName24": { "message": "Επεξεργαστής Εμπλουτισμένου Κειμένου" }, "categoryName24": { "message": "Επεξεργαστής Εμπλουτισμένου Κειμένου" },
"categoryName25": { "message": "Γραφικά Javascript" }, "categoryName25": { "message": "Γραφικά JavaScript" },
"categoryName26": { "message": "Framework για Κινητά" }, "categoryName26": { "message": "Framework για Κινητά" },
"categoryName27": { "message": "Γλώσσα Προγραμματισμού" }, "categoryName27": { "message": "Γλώσσα Προγραμματισμού" },
"categoryName28": { "message": "Λειτουργικό Σύστημα" }, "categoryName28": { "message": "Λειτουργικό Σύστημα" },
@ -55,5 +55,6 @@
"categoryName48": { "message": "Δικτυακός Αποθηκευτικός Χώρος" }, "categoryName48": { "message": "Δικτυακός Αποθηκευτικός Χώρος" },
"categoryName49": { "message": "Feed Readers" }, "categoryName49": { "message": "Feed Readers" },
"categoryName50": { "message": "Συστήματα Διαχειρίσης Εγγράφων" }, "categoryName50": { "message": "Συστήματα Διαχειρίσης Εγγράφων" },
"categoryName51": { "message": "Σύστημα Κατασκευής Σελίδων Υποδοχής" } "categoryName51": { "message": "Σύστημα Κατασκευής Σελίδων Υποδοχής" },
"categoryName52": { "message": "Live Chat" }
} }

@ -16,7 +16,7 @@
"categoryName5": { "message": "Widget" }, "categoryName5": { "message": "Widget" },
"categoryName10": { "message": "Analytics" }, "categoryName10": { "message": "Analytics" },
"categoryName11": { "message": "Blog" }, "categoryName11": { "message": "Blog" },
"categoryName12": { "message": "Javascript Framework" }, "categoryName12": { "message": "JavaScript Framework" },
"categoryName13": { "message": "Issue Tracker" }, "categoryName13": { "message": "Issue Tracker" },
"categoryName14": { "message": "Video Player" }, "categoryName14": { "message": "Video Player" },
"categoryName15": { "message": "Comment System" }, "categoryName15": { "message": "Comment System" },
@ -29,7 +29,7 @@
"categoryName22": { "message": "Web Server" }, "categoryName22": { "message": "Web Server" },
"categoryName23": { "message": "Cache Tool" }, "categoryName23": { "message": "Cache Tool" },
"categoryName24": { "message": "Rich Text Editor" }, "categoryName24": { "message": "Rich Text Editor" },
"categoryName25": { "message": "Javascript Graphics" }, "categoryName25": { "message": "JavaScript Graphics" },
"categoryName26": { "message": "Mobile Framework" }, "categoryName26": { "message": "Mobile Framework" },
"categoryName27": { "message": "Programming Language" }, "categoryName27": { "message": "Programming Language" },
"categoryName28": { "message": "Operating System" }, "categoryName28": { "message": "Operating System" },
@ -55,5 +55,6 @@
"categoryName48": { "message": "Network Storage" }, "categoryName48": { "message": "Network Storage" },
"categoryName49": { "message": "Feed Readers" }, "categoryName49": { "message": "Feed Readers" },
"categoryName50": { "message": "Document Management Systems" }, "categoryName50": { "message": "Document Management Systems" },
"categoryName51": { "message": "Landing Page Builder" } "categoryName51": { "message": "Landing Page Builder" },
"categoryName52": { "message": "Live Chat" }
} }

@ -20,7 +20,7 @@
"categoryName9": { "message": "Panel de Hosting" }, "categoryName9": { "message": "Panel de Hosting" },
"categoryName10": { "message": "Analítica" }, "categoryName10": { "message": "Analítica" },
"categoryName11": { "message": "Blog" }, "categoryName11": { "message": "Blog" },
"categoryName12": { "message": "Framework Javascript" }, "categoryName12": { "message": "Framework JavaScript" },
"categoryName13": { "message": "Gestor de Incidencias" }, "categoryName13": { "message": "Gestor de Incidencias" },
"categoryName14": { "message": "Reproductor de Vídeo" }, "categoryName14": { "message": "Reproductor de Vídeo" },
"categoryName15": { "message": "Sistema de Comentarios" }, "categoryName15": { "message": "Sistema de Comentarios" },
@ -33,7 +33,7 @@
"categoryName22": { "message": "Servidor Web" }, "categoryName22": { "message": "Servidor Web" },
"categoryName23": { "message": "Herramienta de Cache" }, "categoryName23": { "message": "Herramienta de Cache" },
"categoryName24": { "message": "Editor de Texto Enriquecido" }, "categoryName24": { "message": "Editor de Texto Enriquecido" },
"categoryName25": { "message": "Gráficos Javascript" }, "categoryName25": { "message": "Gráficos JavaScript" },
"categoryName26": { "message": "Framework Móvil" }, "categoryName26": { "message": "Framework Móvil" },
"categoryName27": { "message": "Lenguaje de programación" }, "categoryName27": { "message": "Lenguaje de programación" },
"categoryName28": { "message": "Sistema Operativo" }, "categoryName28": { "message": "Sistema Operativo" },
@ -59,5 +59,6 @@
"categoryName48": { "message": "Network Storage" }, "categoryName48": { "message": "Network Storage" },
"categoryName49": { "message": "Feed Readers" }, "categoryName49": { "message": "Feed Readers" },
"categoryName50": { "message": "Document Management Systems" }, "categoryName50": { "message": "Document Management Systems" },
"categoryName51": { "message": "Landing Page Builder" } "categoryName51": { "message": "Landing Page Builder" },
"categoryName52": { "message": "Live Chat" }
} }

@ -59,5 +59,6 @@
"categoryName48": { "message": "Stockage réseau" }, "categoryName48": { "message": "Stockage réseau" },
"categoryName49": { "message": "Lecteur RSS" }, "categoryName49": { "message": "Lecteur RSS" },
"categoryName50": { "message": "Système de gestion de documents" }, "categoryName50": { "message": "Système de gestion de documents" },
"categoryName51": { "message": "Landing Page Builder" } "categoryName51": { "message": "Landing Page Builder" },
"categoryName52": { "message": "Chat en direct" }
} }

@ -16,7 +16,7 @@
"categoryName5": { "message": "Widget" }, "categoryName5": { "message": "Widget" },
"categoryName10": { "message": "Analytics" }, "categoryName10": { "message": "Analytics" },
"categoryName11": { "message": "Blog" }, "categoryName11": { "message": "Blog" },
"categoryName12": { "message": "Framework της Javascript" }, "categoryName12": { "message": "Framework της JavaScript" },
"categoryName13": { "message": "Issue Tracker" }, "categoryName13": { "message": "Issue Tracker" },
"categoryName14": { "message": "Πρόγραμμα αναπαραγωγής Βίντεο" }, "categoryName14": { "message": "Πρόγραμμα αναπαραγωγής Βίντεο" },
"categoryName15": { "message": "Σύστημα Σχολίων" }, "categoryName15": { "message": "Σύστημα Σχολίων" },
@ -29,7 +29,7 @@
"categoryName22": { "message": "Διακομιστής Διαδικτύου" }, "categoryName22": { "message": "Διακομιστής Διαδικτύου" },
"categoryName23": { "message": "Εργαλείο Μνήμης Cache" }, "categoryName23": { "message": "Εργαλείο Μνήμης Cache" },
"categoryName24": { "message": "Επεξεργαστής Εμπλουτισμένου Κειμένου" }, "categoryName24": { "message": "Επεξεργαστής Εμπλουτισμένου Κειμένου" },
"categoryName25": { "message": "Γραφικά Javascript" }, "categoryName25": { "message": "Γραφικά JavaScript" },
"categoryName26": { "message": "Framework για Κινητά" }, "categoryName26": { "message": "Framework για Κινητά" },
"categoryName27": { "message": "Γλώσσα Προγραμματισμού" }, "categoryName27": { "message": "Γλώσσα Προγραμματισμού" },
"categoryName28": { "message": "Λειτουργικό Σύστημα" }, "categoryName28": { "message": "Λειτουργικό Σύστημα" },
@ -55,5 +55,6 @@
"categoryName48": { "message": "Δικτυακός Αποθηκευτικός Χώρος" }, "categoryName48": { "message": "Δικτυακός Αποθηκευτικός Χώρος" },
"categoryName49": { "message": "Feed Readers" }, "categoryName49": { "message": "Feed Readers" },
"categoryName50": { "message": "Συστήματα Διαχειρίσης Εγγράφων" }, "categoryName50": { "message": "Συστήματα Διαχειρίσης Εγγράφων" },
"categoryName51": { "message": "Σύστημα Κατασκευής Σελίδων Υποδοχής" } "categoryName51": { "message": "Σύστημα Κατασκευής Σελίδων Υποδοχής" },
"categoryName52": { "message": "Live Chat" }
} }

@ -20,7 +20,7 @@
"categoryName9": { "message": "Pannello Hosting" }, "categoryName9": { "message": "Pannello Hosting" },
"categoryName10": { "message": "Analytics" }, "categoryName10": { "message": "Analytics" },
"categoryName11": { "message": "Blog" }, "categoryName11": { "message": "Blog" },
"categoryName12": { "message": "Framework Javascript" }, "categoryName12": { "message": "Framework JavaScript" },
"categoryName13": { "message": "Issue Tracker" }, "categoryName13": { "message": "Issue Tracker" },
"categoryName14": { "message": "Player Video" }, "categoryName14": { "message": "Player Video" },
"categoryName15": { "message": "Sistema di commenti" }, "categoryName15": { "message": "Sistema di commenti" },
@ -33,7 +33,7 @@
"categoryName22": { "message": "Web Server" }, "categoryName22": { "message": "Web Server" },
"categoryName23": { "message": "Cache Tool" }, "categoryName23": { "message": "Cache Tool" },
"categoryName24": { "message": "Editor di Testo Ricco" }, "categoryName24": { "message": "Editor di Testo Ricco" },
"categoryName25": { "message": "Javascript Graphics" }, "categoryName25": { "message": "JavaScript Graphics" },
"categoryName26": { "message": "Framework Mobile" }, "categoryName26": { "message": "Framework Mobile" },
"categoryName27": { "message": "Linguaggio di programmazione" }, "categoryName27": { "message": "Linguaggio di programmazione" },
"categoryName28": { "message": "Sistema Operativo" }, "categoryName28": { "message": "Sistema Operativo" },
@ -59,6 +59,7 @@
"categoryName48": { "message": "Network Storage" }, "categoryName48": { "message": "Network Storage" },
"categoryName49": { "message": "Lettore di Feed" }, "categoryName49": { "message": "Lettore di Feed" },
"categoryName50": { "message": "Sistema di Gestione Documenti" }, "categoryName50": { "message": "Sistema di Gestione Documenti" },
"categoryName51": { "message": "Landing Page Builder" } "categoryName51": { "message": "Landing Page Builder" },
"categoryName52": { "message": "Live Chat" }
} }

@ -55,5 +55,6 @@
"categoryName48": { "message": "Network Storage" }, "categoryName48": { "message": "Network Storage" },
"categoryName49": { "message": "Feed Readers" }, "categoryName49": { "message": "Feed Readers" },
"categoryName50": { "message": "Document Management Systems" }, "categoryName50": { "message": "Document Management Systems" },
"categoryName51": { "message": "Landing Page Builder" } "categoryName51": { "message": "Landing Page Builder" },
"categoryName52": { "message": "Live Chat" }
} }

@ -46,6 +46,7 @@
"categoryName49" : { "message" : "Граббер контента" }, "categoryName49" : { "message" : "Граббер контента" },
"categoryName50" : { "message" : "Управление документами" }, "categoryName50" : { "message" : "Управление документами" },
"categoryName51" : { "message": "Генератор лендингов" }, "categoryName51" : { "message": "Генератор лендингов" },
"categoryName52" : { "message": "Live Chat" },
"github" : { "message" : "Форкнуть на GitHub!" }, "github" : { "message" : "Форкнуть на GitHub!" },
"noAppsDetected" : { "message" : "Нет данных о сайте" }, "noAppsDetected" : { "message" : "Нет данных о сайте" },
"nothingToDo" : { "message" : "Тут нечего искать" }, "nothingToDo" : { "message" : "Тут нечего искать" },

@ -8,6 +8,7 @@
<script src="js/wappalyzer.js"></script> <script src="js/wappalyzer.js"></script>
<script src="js/defaults.js"></script> <script src="js/defaults.js"></script>
<script src="js/driver.js"></script> <script src="js/driver.js"></script>
<script src="js/network.js"></script>
</head> </head>
<body> <body>
</body> </body>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 665 B

After

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 634 B

After

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 926 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 635 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 752 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 800 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 780 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 594 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 834 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 851 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 964 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 842 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

@ -15,6 +15,8 @@
headersCache = {}; headersCache = {};
w.driver = { w.driver = {
timeout: 1000,
/** /**
* Log messages to console * Log messages to console
*/ */
@ -215,8 +217,8 @@
* Anonymously track detected applications for research purposes * Anonymously track detected applications for research purposes
*/ */
ping: function() { ping: function() {
if ( Object.keys(w.ping.hostnames).length && localStorage['tracking'] ) { if ( Object.keys(w.ping.hostnames).length && parseInt(localStorage['tracking'], 10) ) {
w.driver.post(w.config.websiteURL + 'ping/v2/', w.ping); w.driver.post('http://ping.wappalyzer.com/v2/', w.ping);
w.log('w.driver.ping: ' + JSON.stringify(w.ping)); w.log('w.driver.ping: ' + JSON.stringify(w.ping));
@ -265,9 +267,9 @@
4, // Documentation Tool 4, // Documentation Tool
9, // Hosting Panel 9, // Hosting Panel
29, // Search Engine 29, // Search Engine
12, // Javascript Framework 12, // JavaScript Framework
26, // Mobile Framework 26, // Mobile Framework
25, // Javascript Graphics 25, // JavaScript Graphics
22, // Web Server 22, // Web Server
27, // Programming Language 27, // Programming Language
28, // Operating System 28, // Operating System

@ -1,7 +1,7 @@
{ "name": "Wappalyzer", { "name": "Wappalyzer",
"homepage_url": "https://wappalyzer.com?pk_campaign=chrome&pk_kwd=context", "homepage_url": "https://wappalyzer.com?pk_campaign=chrome&pk_kwd=context",
"description": "Identifies software on the web", "description": "Identifies software on the web",
"version": "2.48", "version": "2.51",
"default_locale": "en", "default_locale": "en",
"manifest_version": 2, "manifest_version": 2,
"icons": { "icons": {
@ -29,6 +29,6 @@
"js/inject.js" "js/inject.js"
], ],
"options_page": "options.html", "options_page": "options.html",
"permissions": [ "tabs", "webRequest", "http://*/*", "https://*/*" ], "permissions": [ "tabs", "webRequest", "webNavigation", "http://*/*", "https://*/*" ],
"content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'" "content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'"
} }

@ -2,4 +2,4 @@ data/apps.json
data/images/icons/*.png data/images/icons/*.png
data/images/icons/*.svg data/images/icons/*.svg
data/js/iframe.js data/js/iframe.js
lib/wappalyzer.js wappalyzer.js

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

@ -343,6 +343,8 @@
} }
w.driver = { w.driver = {
timeout: 1000,
/** /**
* Log messages to console * Log messages to console
*/ */
@ -448,13 +450,13 @@
}).post(); }).post();
}; };
post(w.config.websiteURL + 'ping/v2/', w.ping); post('http://ping.wappalyzer.com/v2/', w.ping);
w.log('w.driver.ping: ' + JSON.stringify(w.ping)); w.log('w.driver.ping: ' + JSON.stringify(w.ping));
w.ping = { hostnames: {} }; w.ping = { hostnames: {} };
post('http://ad.wappalyzer.com/log/wp/', w.adCache); post('https://ad.wappalyzer.com/log/wp/', w.adCache);
w.adCache = []; w.adCache = [];
} }
@ -486,9 +488,9 @@
4, // Documentation Tool 4, // Documentation Tool
9, // Hosting Panel 9, // Hosting Panel
29, // Search Engine 29, // Search Engine
12, // Javascript Framework 12, // JavaScript Framework
26, // Mobile Framework 26, // Mobile Framework
25, // Javascript Graphics 25, // JavaScript Graphics
22, // Web Server 22, // Web Server
27, // Programming Language 27, // Programming Language
28, // Operating System 28, // Operating System

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 613 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

@ -1,530 +0,0 @@
/**
* Wappalyzer v2
*
* Created by Elbert Alias <elbert@alias.io>
*
* License: GPLv3 http://www.gnu.org/licenses/gpl-3.0.txt
*/
var wappalyzer = (function() {
//'use strict';
/**
* Application class
*/
var Application = function(app, detected) {
this.app = app;
this.confidence = {};
this.confidenceTotal = 0;
this.detected = Boolean(detected);
this.excludes = [];
this.version = '';
this.versions = [];
};
Application.prototype = {
/**
* Calculate confidence total
*/
getConfidence: function() {
var total = 0, id;
for ( id in this.confidence ) {
total += this.confidence[id];
}
return this.confidenceTotal = Math.min(total, 100);
},
/**
* Resolve version number (find the longest version number that contains all shorter detected version numbers)
*/
getVersion: function() {
var i, resolved;
if ( !this.versions.length ) {
return;
}
this.versions.sort(function(a, b) {
return a.length - b.length;
});
resolved = this.versions[0];
for ( i = 1; i < this.versions.length; i++ ) {
if ( this.versions[i].indexOf(resolved) === -1 ) {
break;
}
resolved = this.versions[i];
}
return this.version = resolved;
},
setDetected: function(pattern, type, value, key) {
this.detected = true;
// Set confidence level
this.confidence[type + ' ' + ( key ? key + ' ' : '' ) + pattern.regex] = pattern.confidence ? pattern.confidence : 100;
// Detect version number
if ( pattern.version ) {
var
version = pattern.version,
matches = pattern.regex.exec(value);
if ( matches ) {
matches.forEach(function(match, i) {
// Parse ternary operator
var ternary = new RegExp('\\\\' + i + '\\?([^:]+):(.*)$').exec(version);
if ( ternary && ternary.length === 3 ) {
w.log({ match: match, i: i, ternary: ternary });
version = version.replace(ternary[0], match ? ternary[1] : ternary[2]);
w.log({ version: version });
}
// Replace back references
version = version.replace(new RegExp('\\\\' + i, 'g'), match ? match : '');
});
if ( version && this.versions.indexOf(version) < 0 ) {
this.versions.push(version);
}
this.getVersion();
}
}
}
};
var Profiler = function() {
this.regexCount = 0;
this.startTime = new Date().getTime();
this.lastTime = new Date().getTime();
this.slowest = { duration: null, app: '', type: '', pattern: '' };
this.timedOut = false;
};
Profiler.prototype = {
checkPoint: function(app, type, regex) {
var duration = new Date().getTime() - this.lastTime;
if ( !this.slowest.duration || duration > this.slowest.duration ) {
this.slowest.duration = duration;
this.slowest.app = app;
this.slowest.type = type;
this.slowest.regex = regex;
}
this.regexCount++;
this.lastTime = new Date().getTime();
this.timedOut = this.lastTime - this.startTime > 1000;
}
};
/**
* Call driver functions
*/
var driver = function(func, args) {
if ( typeof w.driver[func] !== 'function' ) {
w.log('not implemented: w.driver.' + func, 'warn');
return;
}
if ( func !== 'log' ) {
w.log('w.driver.' + func);
}
return w.driver[func](args);
};
/**
* Parse apps.json patterns
*/
var parse = function(patterns) {
var
attrs,
parsed = [];
// Convert single patterns to an array
if ( typeof patterns === 'string' ) {
patterns = [ patterns ];
}
patterns.forEach(function(pattern) {
attrs = {};
pattern.split('\\;').forEach(function(attr, i) {
if ( i ) {
// Key value pairs
attr = attr.split(':');
if ( attr.length > 1 ) {
attrs[attr.shift()] = attr.join(':');
}
} else {
attrs.string = attr;
try {
attrs.regex = new RegExp(attr.replace('/', '\/'), 'i'); // Escape slashes in regular expression
} catch (e) {
attrs.regex = new RegExp();
w.log(e + ': ' + attr, 'error');
}
}
});
parsed.push(attrs);
});
return parsed;
};
/**
* Main script
*/
var w = {
apps: {},
cats: null,
ping: { hostnames: {} },
adCache: [],
detected: {},
config: {
websiteURL: 'https://wappalyzer.com/',
twitterURL: 'https://twitter.com/Wappalyzer',
githubURL: 'https://github.com/AliasIO/Wappalyzer',
},
/**
* Log messages to console
*/
log: function(message, type) {
if ( type === undefined ) {
type = 'debug';
}
if ( typeof message === 'object' ) {
message = JSON.stringify(message);
}
driver('log', { message: message, type: type });
},
/**
* Initialize
*/
init: function() {
w.log('w.init');
// Checks
if ( w.driver === undefined ) {
w.log('no driver, exiting');
return;
}
// Initialize driver
driver('init');
},
/**
* Analyze the request
*/
analyze: function(hostname, url, data) {
var
i, j, app, confidence, type, regexMeta, regexScript, match, content, meta, header, version, id,
profiler = new Profiler(),
apps = {},
excludes = [],
checkImplies = true;
w.log('w.analyze');
// Remove hash from URL
data.url = url = url.split('#')[0];
if ( w.apps === undefined || w.categories === undefined ) {
w.log('apps.json not loaded, check for syntax errors');
return;
}
if ( w.detected[url] === undefined ) {
w.detected[url] = {};
}
for ( app in w.apps ) {
// Exit loop after one second to prevent CPU hogging
// Remaining patterns will not be evaluated
if ( profiler.timedOut ) {
w.log('Timeout, exiting loop');
break;
}
apps[app] = w.detected[url] && w.detected[url][app] ? w.detected[url][app] : new Application(app);
for ( type in w.apps[app] ) {
switch ( type ) {
case 'url':
parse(w.apps[app][type]).forEach(function(pattern) {
if ( pattern.regex.test(url) ) {
apps[app].setDetected(pattern, type, url);
}
profiler.checkPoint(app, type, pattern.regex);
});
break;
case 'html':
if ( typeof data[type] !== 'string' || !data.html ) {
break;
}
parse(w.apps[app][type]).forEach(function(pattern) {
if ( pattern.regex.test(data[type]) ) {
apps[app].setDetected(pattern, type, data[type]);
}
profiler.checkPoint(app, type, pattern.regex);
});
break;
case 'script':
if ( typeof data.html !== 'string' || !data.html ) {
break;
}
regexScript = new RegExp('<script[^>]+src=("|\')([^"\']+)', 'ig');
parse(w.apps[app][type]).forEach(function(pattern) {
while ( match = regexScript.exec(data.html) ) {
if ( pattern.regex.test(match[2]) ) {
apps[app].setDetected(pattern, type, match[2]);
}
}
profiler.checkPoint(app, type, pattern.regex);
});
break;
case 'meta':
if ( typeof data.html !== 'string' || !data.html ) {
break;
}
regexMeta = /<meta[^>]+>/ig;
while ( match = regexMeta.exec(data.html) ) {
for ( meta in w.apps[app][type] ) {
profiler.checkPoint(app, type, regexMeta);
if ( new RegExp('name=["\']' + meta + '["\']', 'i').test(match) ) {
content = match.toString().match(/content=("|')([^"']+)("|')/i);
parse(w.apps[app].meta[meta]).forEach(function(pattern) {
if ( content && content.length === 4 && pattern.regex.test(content[2]) ) {
apps[app].setDetected(pattern, type, content[2], meta);
}
profiler.checkPoint(app, type, pattern.regex);
});
}
}
}
break;
case 'headers':
if ( typeof data[type] !== 'object' || !data[type] ) {
break;
}
for ( header in w.apps[app].headers ) {
parse(w.apps[app][type][header]).forEach(function(pattern) {
if ( typeof data[type][header.toLowerCase()] === 'string' && pattern.regex.test(data[type][header.toLowerCase()]) ) {
apps[app].setDetected(pattern, type, data[type][header.toLowerCase()], header);
}
profiler.checkPoint(app, type, pattern.regex);
});
}
break;
case 'env':
if ( typeof data[type] !== 'object' || !data[type] ) {
break;
}
parse(w.apps[app][type]).forEach(function(pattern) {
for ( i in data[type] ) {
if ( pattern.regex.test(data[type][i]) ) {
apps[app].setDetected(pattern, type, data[type][i]);
}
}
profiler.checkPoint(app, type, pattern.regex);
});
break;
}
}
}
w.log('[ profiler ] Tested ' + profiler.regexCount + ' regular expressions in ' + ( (new Date().getTime() - profiler.startTime) / 1000 ) + 's');
w.log('[ profiler ] Slowest pattern took ' + ( profiler.slowest.duration / 1000 ) + 's: ' + profiler.slowest.app + ' | ' + profiler.slowest.type + ' | ' + profiler.slowest.regex);
for ( app in apps ) {
if ( !apps[app].detected ) {
delete apps[app];
}
}
// Exclude app in detected apps only
for ( app in apps ) {
if (w.apps[app].excludes ) {
if ( typeof w.apps[app].excludes === 'string' ) {
w.apps[app].excludes = [ w.apps[app].excludes ];
}
w.apps[app].excludes.forEach(function(excluded) {
excludes.push(excluded);
});
}
}
// Remove excluded applications
for ( app in apps ) {
if ( excludes.indexOf(app) !== -1 ) {
delete apps[app];
}
}
// Implied applications
// Run several passes as implied apps may imply other apps
while ( checkImplies ) {
checkImplies = false;
for ( app in apps ) {
confidence = apps[app].confidence;
if ( w.apps[app] && w.apps[app].implies ) {
// Cast strings to an array
if ( typeof w.apps[app].implies === 'string' ) {
w.apps[app].implies = [ w.apps[app].implies ];
}
w.apps[app].implies.forEach(function(implied) {
implied = parse(implied)[0];
if ( !w.apps[implied.string] ) {
w.log('Implied application ' + implied.string + ' does not exist', 'warn');
return;
}
if ( !apps.hasOwnProperty(implied.string) ) {
apps[implied.string] = w.detected[url] && w.detected[url][implied.string] ? w.detected[url][implied.string] : new Application(implied.string, true);
checkImplies = true;
}
// Apply app confidence to implied app
for ( id in confidence ) {
apps[implied.string].confidence[id + ' implied by ' + app] = confidence[id] * ( implied.confidence ? implied.confidence / 100 : 1 );
}
});
}
}
}
w.log(Object.keys(apps).length + ' apps detected: ' + Object.keys(apps).join(', ') + ' on ' + url);
// Keep history of detected apps
for ( app in apps ) {
confidence = apps[app].confidence;
version = apps[app].version;
// Per URL
w.detected[url][app] = apps[app];
for ( id in confidence ) {
w.detected[url][app].confidence[id] = confidence[id];
}
if ( w.detected[url][app].getConfidence() >= 100 ) {
// Per hostname
if ( /(www.)?((.+?)\.(([a-z]{2,3}\.)?[a-z]{2,6}))$/.test(hostname) && !/((local|dev(elopment)?|stag(e|ing)?|test(ing)?|demo(shop)?|admin|google|cache)\.|\/admin|\.local)/.test(url) ) {
if ( !w.ping.hostnames.hasOwnProperty(hostname) ) {
w.ping.hostnames[hostname] = { applications: {}, meta: {} };
}
if ( !w.ping.hostnames[hostname].applications.hasOwnProperty(app) ) {
w.ping.hostnames[hostname].applications[app] = { hits: 0 };
}
w.ping.hostnames[hostname].applications[app].hits ++;
if ( version ) {
w.ping.hostnames[hostname].applications[app].version = version;
}
} else {
w.log('Ignoring hostname "' + hostname + '"');
}
}
}
// Additional information
if ( w.ping.hostnames.hasOwnProperty(hostname) ) {
if ( typeof data.html === 'string' && data.html ) {
match = data.html.match(/<html[^>]*[: ]lang="([a-z]{2}((-|_)[A-Z]{2})?)"/i);
if ( match && match.length ) {
w.ping.hostnames[hostname].meta['language'] = match[1];
}
regexMeta = /<meta[^>]+>/ig;
while ( match = regexMeta.exec(data.html) ) {
if ( !match.length ) {
continue;
}
match = match[0].match(/name="(author|copyright|country|description|keywords)"[^>]*content="([^"]+)"/i);
if ( match && match.length === 3 ) {
w.ping.hostnames[hostname].meta[match[1]] = match[2];
}
}
}
}
if ( Object.keys(w.ping.hostnames).length >= 20 || w.adCache.length >= 40 ) {
driver('ping');
}
apps = null;
data = null;
driver('displayApps');
}
};
return w;
})();
// CommonJS package
// See http://wiki.commonjs.org/wiki/CommonJS
if ( typeof exports === 'object' ) {
exports.wappalyzer = wappalyzer;
}

@ -38,7 +38,7 @@ cat21 = LMS
cat22 = Web-Server cat22 = Web-Server
cat23 = Cache Tool cat23 = Cache Tool
cat24 = Rich Text Editor cat24 = Rich Text Editor
cat25 = Javascript Graphics cat25 = JavaScript Graphics
cat26 = Mobile Framework cat26 = Mobile Framework
cat27 = Programmiersprache cat27 = Programmiersprache
cat28 = Betriebssystem cat28 = Betriebssystem
@ -65,3 +65,4 @@ cat48 = Netzwerkspeicher
cat49 = Feed-Leser cat49 = Feed-Leser
cat50 = Document Management Systems cat50 = Document Management Systems
cat51 = Landing Page Builder cat51 = Landing Page Builder
cat52 = Live Chat

@ -38,7 +38,7 @@ cat21 = LMS
cat22 = Διακομιστής Διαδικτύου cat22 = Διακομιστής Διαδικτύου
cat23 = Εργαλείο Μνήμης Cache cat23 = Εργαλείο Μνήμης Cache
cat24 = Επεξεργαστής Εμπλουτισμένου Κειμένου cat24 = Επεξεργαστής Εμπλουτισμένου Κειμένου
cat25 = Γραφικά Javascript cat25 = Γραφικά JavaScript
cat26 = Framework για Κινητά cat26 = Framework για Κινητά
cat27 = Γλώσσα Προγραμματισμού cat27 = Γλώσσα Προγραμματισμού
cat28 = Λειτουργικό Σύστημα cat28 = Λειτουργικό Σύστημα
@ -65,3 +65,4 @@ cat48 = Δικτυακός Αποθηκευτικός Χώρος
cat49 = Feed Readers cat49 = Feed Readers
cat50 = Συστήματα Διαχειρίσης Εγγράφων cat50 = Συστήματα Διαχειρίσης Εγγράφων
cat51 = Σύστημα Κατασκευής Σελίδων Υποδοχής cat51 = Σύστημα Κατασκευής Σελίδων Υποδοχής
cat52 = Live Chat

@ -38,7 +38,7 @@ cat21 = LMS
cat22 = Web Server cat22 = Web Server
cat23 = Cache Tool cat23 = Cache Tool
cat24 = Rich Text Editor cat24 = Rich Text Editor
cat25 = Javascript Graphics cat25 = JavaScript Graphics
cat26 = Mobile Framework cat26 = Mobile Framework
cat27 = Programming Language cat27 = Programming Language
cat28 = Operating System cat28 = Operating System
@ -65,3 +65,4 @@ cat48 = Network Storage
cat49 = Feed Readers cat49 = Feed Readers
cat50 = Document Management Systems cat50 = Document Management Systems
cat51 = Landing Page Builder cat51 = Landing Page Builder
cat52 = Live Chat

@ -38,7 +38,7 @@ cat21 = LMS
cat22 = Web Server cat22 = Web Server
cat23 = Cache Tool cat23 = Cache Tool
cat24 = Rich Text Editor cat24 = Rich Text Editor
cat25 = Javascript Graphics cat25 = JavaScript Graphics
cat26 = Mobile Framework cat26 = Mobile Framework
cat27 = Programming Language cat27 = Programming Language
cat28 = Operating System cat28 = Operating System
@ -65,3 +65,4 @@ cat48 = Network Storage
cat49 = Feed Readers cat49 = Feed Readers
cat50 = Document Management Systems cat50 = Document Management Systems
cat51 = Landing Page Builder cat51 = Landing Page Builder
cat52 = Live Chat

@ -38,7 +38,7 @@ cat21 = LMS
cat22 = Servidor Web cat22 = Servidor Web
cat23 = Herramienta de Cache cat23 = Herramienta de Cache
cat24 = Editor de Texto Enriquecido cat24 = Editor de Texto Enriquecido
cat25 = Gráficos Javascript cat25 = Gráficos JavaScript
cat26 = Framework Móvil cat26 = Framework Móvil
cat27 = Lenguaje de programación cat27 = Lenguaje de programación
cat28 = Sistema Operativo cat28 = Sistema Operativo
@ -65,3 +65,4 @@ cat48 = Network Storage
cat49 = Feed Readers cat49 = Feed Readers
cat50 = Document Management Systems cat50 = Document Management Systems
cat51 = Landing Page Builder cat51 = Landing Page Builder
cat52 = Live Chat

@ -65,3 +65,4 @@ cat48 = Stockage réseau
cat49 = Lecteur RSS cat49 = Lecteur RSS
cat50 = Système de gestion de documents cat50 = Système de gestion de documents
cat51 = Landing Page Builder cat51 = Landing Page Builder
cat52 = Chat en direct

@ -38,7 +38,7 @@ cat21 = LMS
cat22 = Web Server cat22 = Web Server
cat23 = Cache Tool cat23 = Cache Tool
cat24 = Editor di Testo Ricco cat24 = Editor di Testo Ricco
cat25 = Javascript Graphics cat25 = JavaScript Graphics
cat26 = Framework Mobile cat26 = Framework Mobile
cat27 = Linguaggio di Programmazione cat27 = Linguaggio di Programmazione
cat28 = Sistema Operativo cat28 = Sistema Operativo
@ -65,3 +65,4 @@ cat48 = Network Storage
cat49 = Lettore di Feed cat49 = Lettore di Feed
cat50 = Sistema di Gestione Documenti cat50 = Sistema di Gestione Documenti
cat51 = Landing Page Builder cat51 = Landing Page Builder
cat52 = Live Chat

@ -65,3 +65,4 @@ cat48 = Network Storage
cat49 = Feed Readers cat49 = Feed Readers
cat50 = Document Management Systems cat50 = Document Management Systems
cat51 = Landing Page Builder cat51 = Landing Page Builder
cat52 = Live Chat

@ -62,3 +62,4 @@ cat48 = Network Storage
cat49 = Feed Readers cat49 = Feed Readers
cat50 = Document Management Systems cat50 = Document Management Systems
cat51 = Landing Page Builder cat51 = Landing Page Builder
cat52 = Live Chat

@ -65,3 +65,4 @@ cat48 = Сетевое хранилище
cat49 = Граббер контента cat49 = Граббер контента
cat50 = Управление документами cat50 = Управление документами
cat51 = Генератор лендингов cat51 = Генератор лендингов
cat52 = Live Chat

@ -2,13 +2,13 @@
"name": "wappalyzer", "name": "wappalyzer",
"title": "Wappalyzer", "title": "Wappalyzer",
"homepage": "https://wappalyzer.com", "homepage": "https://wappalyzer.com",
"icon": "images/icon48_hot.png", "icon": "images/icon48.png",
"icon64": "images/icon64_hot.png", "icon64": "images/icon64.png",
"id": "wappalyzer@crunchlabz.com", "id": "wappalyzer@crunchlabz.com",
"description": "Identifies software on the web", "description": "Identifies software on the web",
"author": "Elbert Alias", "author": "Elbert Alias",
"license": "GPLv3", "license": "GPLv3",
"version": "3.2.6", "version": "3.2.10",
"main": "driver.js", "main": "driver.js",
"preferences": [{ "preferences": [{
"name": "tracking", "name": "tracking",

@ -1,530 +0,0 @@
/**
* Wappalyzer v2
*
* Created by Elbert Alias <elbert@alias.io>
*
* License: GPLv3 http://www.gnu.org/licenses/gpl-3.0.txt
*/
var wappalyzer = (function() {
//'use strict';
/**
* Application class
*/
var Application = function(app, detected) {
this.app = app;
this.confidence = {};
this.confidenceTotal = 0;
this.detected = Boolean(detected);
this.excludes = [];
this.version = '';
this.versions = [];
};
Application.prototype = {
/**
* Calculate confidence total
*/
getConfidence: function() {
var total = 0, id;
for ( id in this.confidence ) {
total += this.confidence[id];
}
return this.confidenceTotal = Math.min(total, 100);
},
/**
* Resolve version number (find the longest version number that contains all shorter detected version numbers)
*/
getVersion: function() {
var i, resolved;
if ( !this.versions.length ) {
return;
}
this.versions.sort(function(a, b) {
return a.length - b.length;
});
resolved = this.versions[0];
for ( i = 1; i < this.versions.length; i++ ) {
if ( this.versions[i].indexOf(resolved) === -1 ) {
break;
}
resolved = this.versions[i];
}
return this.version = resolved;
},
setDetected: function(pattern, type, value, key) {
this.detected = true;
// Set confidence level
this.confidence[type + ' ' + ( key ? key + ' ' : '' ) + pattern.regex] = pattern.confidence ? pattern.confidence : 100;
// Detect version number
if ( pattern.version ) {
var
version = pattern.version,
matches = pattern.regex.exec(value);
if ( matches ) {
matches.forEach(function(match, i) {
// Parse ternary operator
var ternary = new RegExp('\\\\' + i + '\\?([^:]+):(.*)$').exec(version);
if ( ternary && ternary.length === 3 ) {
w.log({ match: match, i: i, ternary: ternary });
version = version.replace(ternary[0], match ? ternary[1] : ternary[2]);
w.log({ version: version });
}
// Replace back references
version = version.replace(new RegExp('\\\\' + i, 'g'), match ? match : '');
});
if ( version && this.versions.indexOf(version) < 0 ) {
this.versions.push(version);
}
this.getVersion();
}
}
}
};
var Profiler = function() {
this.regexCount = 0;
this.startTime = new Date().getTime();
this.lastTime = new Date().getTime();
this.slowest = { duration: null, app: '', type: '', pattern: '' };
this.timedOut = false;
};
Profiler.prototype = {
checkPoint: function(app, type, regex) {
var duration = new Date().getTime() - this.lastTime;
if ( !this.slowest.duration || duration > this.slowest.duration ) {
this.slowest.duration = duration;
this.slowest.app = app;
this.slowest.type = type;
this.slowest.regex = regex;
}
this.regexCount++;
this.lastTime = new Date().getTime();
this.timedOut = this.lastTime - this.startTime > 1000;
}
};
/**
* Call driver functions
*/
var driver = function(func, args) {
if ( typeof w.driver[func] !== 'function' ) {
w.log('not implemented: w.driver.' + func, 'warn');
return;
}
if ( func !== 'log' ) {
w.log('w.driver.' + func);
}
return w.driver[func](args);
};
/**
* Parse apps.json patterns
*/
var parse = function(patterns) {
var
attrs,
parsed = [];
// Convert single patterns to an array
if ( typeof patterns === 'string' ) {
patterns = [ patterns ];
}
patterns.forEach(function(pattern) {
attrs = {};
pattern.split('\\;').forEach(function(attr, i) {
if ( i ) {
// Key value pairs
attr = attr.split(':');
if ( attr.length > 1 ) {
attrs[attr.shift()] = attr.join(':');
}
} else {
attrs.string = attr;
try {
attrs.regex = new RegExp(attr.replace('/', '\/'), 'i'); // Escape slashes in regular expression
} catch (e) {
attrs.regex = new RegExp();
w.log(e + ': ' + attr, 'error');
}
}
});
parsed.push(attrs);
});
return parsed;
};
/**
* Main script
*/
var w = {
apps: {},
cats: null,
ping: { hostnames: {} },
detected: {},
adCache: [],
config: {
websiteURL: 'https://wappalyzer.com/',
twitterURL: 'https://twitter.com/Wappalyzer',
githubURL: 'https://github.com/AliasIO/Wappalyzer',
},
/**
* Log messages to console
*/
log: function(message, type) {
if ( type === undefined ) {
type = 'debug';
}
if ( typeof message === 'object' ) {
message = JSON.stringify(message);
}
driver('log', { message: '[wappalyzer ' + type + '] ' + message, type: type });
},
/**
* Initialize
*/
init: function() {
w.log('w.init');
// Checks
if ( w.driver === undefined ) {
w.log('no driver, exiting');
return;
}
// Initialize driver
driver('init');
},
/**
* Analyze the request
*/
analyze: function(hostname, url, data) {
var
i, j, app, confidence, type, regexMeta, regexScript, match, content, meta, header, version, id,
profiler = new Profiler(),
apps = {},
excludes = [],
checkImplies = true;
w.log('w.analyze');
// Remove hash from URL
data.url = url = url.split('#')[0];
if ( w.apps === undefined || w.categories === undefined ) {
w.log('apps.json not loaded, check for syntax errors');
return;
}
if ( w.detected[url] === undefined ) {
w.detected[url] = {};
}
for ( app in w.apps ) {
// Exit loop after one second to prevent CPU hogging
// Remaining patterns will not be evaluated
if ( profiler.timedOut ) {
w.log('Timeout, exiting loop');
break;
}
apps[app] = w.detected[url] && w.detected[url][app] ? w.detected[url][app] : new Application(app);
for ( type in w.apps[app] ) {
switch ( type ) {
case 'url':
parse(w.apps[app][type]).forEach(function(pattern) {
if ( pattern.regex.test(url) ) {
apps[app].setDetected(pattern, type, url);
}
profiler.checkPoint(app, type, pattern.regex);
});
break;
case 'html':
if ( typeof data[type] !== 'string' || !data.html ) {
break;
}
parse(w.apps[app][type]).forEach(function(pattern) {
if ( pattern.regex.test(data[type]) ) {
apps[app].setDetected(pattern, type, data[type]);
}
profiler.checkPoint(app, type, pattern.regex);
});
break;
case 'script':
if ( typeof data.html !== 'string' || !data.html ) {
break;
}
regexScript = new RegExp('<script[^>]+src=("|\')([^"\']+)', 'ig');
parse(w.apps[app][type]).forEach(function(pattern) {
while ( match = regexScript.exec(data.html) ) {
if ( pattern.regex.test(match[2]) ) {
apps[app].setDetected(pattern, type, match[2]);
}
}
profiler.checkPoint(app, type, pattern.regex);
});
break;
case 'meta':
if ( typeof data.html !== 'string' || !data.html ) {
break;
}
regexMeta = /<meta[^>]+>/ig;
while ( match = regexMeta.exec(data.html) ) {
for ( meta in w.apps[app][type] ) {
profiler.checkPoint(app, type, regexMeta);
if ( new RegExp('name=["\']' + meta + '["\']', 'i').test(match) ) {
content = match.toString().match(/content=("|')([^"']+)("|')/i);
parse(w.apps[app].meta[meta]).forEach(function(pattern) {
if ( content && content.length === 4 && pattern.regex.test(content[2]) ) {
apps[app].setDetected(pattern, type, content[2], meta);
}
profiler.checkPoint(app, type, pattern.regex);
});
}
}
}
break;
case 'headers':
if ( typeof data[type] !== 'object' || !data[type] ) {
break;
}
for ( header in w.apps[app].headers ) {
parse(w.apps[app][type][header]).forEach(function(pattern) {
if ( typeof data[type][header.toLowerCase()] === 'string' && pattern.regex.test(data[type][header.toLowerCase()]) ) {
apps[app].setDetected(pattern, type, data[type][header.toLowerCase()], header);
}
profiler.checkPoint(app, type, pattern.regex);
});
}
break;
case 'env':
if ( typeof data[type] !== 'object' || !data[type] ) {
break;
}
parse(w.apps[app][type]).forEach(function(pattern) {
for ( i in data[type] ) {
if ( pattern.regex.test(data[type][i]) ) {
apps[app].setDetected(pattern, type, data[type][i]);
}
}
profiler.checkPoint(app, type, pattern.regex);
});
break;
}
}
}
w.log('[ profiler ] Tested ' + profiler.regexCount + ' regular expressions in ' + ( (new Date().getTime() - profiler.startTime) / 1000 ) + 's');
w.log('[ profiler ] Slowest pattern took ' + ( profiler.slowest.duration / 1000 ) + 's: ' + profiler.slowest.app + ' | ' + profiler.slowest.type + ' | ' + profiler.slowest.regex);
for ( app in apps ) {
if ( !apps[app].detected ) {
delete apps[app];
}
}
// Exclude app in detected apps only
for ( app in apps ) {
if (w.apps[app].excludes ) {
if ( typeof w.apps[app].excludes === 'string' ) {
w.apps[app].excludes = [ w.apps[app].excludes ];
}
w.apps[app].excludes.forEach(function(excluded) {
excludes.push(excluded);
});
}
}
// Remove excluded applications
for ( app in apps ) {
if ( excludes.indexOf(app) !== -1 ) {
delete apps[app];
}
}
// Implied applications
// Run several passes as implied apps may imply other apps
while ( checkImplies ) {
checkImplies = false;
for ( app in apps ) {
confidence = apps[app].confidence;
if ( w.apps[app] && w.apps[app].implies ) {
// Cast strings to an array
if ( typeof w.apps[app].implies === 'string' ) {
w.apps[app].implies = [ w.apps[app].implies ];
}
w.apps[app].implies.forEach(function(implied) {
implied = parse(implied)[0];
if ( !w.apps[implied.string] ) {
w.log('Implied application ' + implied.string + ' does not exist', 'warn');
return;
}
if ( !apps.hasOwnProperty(implied.string) ) {
apps[implied.string] = w.detected[url] && w.detected[url][implied.string] ? w.detected[url][implied.string] : new Application(implied.string, true);
checkImplies = true;
}
// Apply app confidence to implied app
for ( id in confidence ) {
apps[implied.string].confidence[id + ' implied by ' + app] = confidence[id] * ( implied.confidence ? implied.confidence / 100 : 1 );
}
});
}
}
}
w.log(Object.keys(apps).length + ' apps detected: ' + Object.keys(apps).join(', ') + ' on ' + url);
// Keep history of detected apps
for ( app in apps ) {
confidence = apps[app].confidence;
version = apps[app].version;
// Per URL
w.detected[url][app] = apps[app];
for ( id in confidence ) {
w.detected[url][app].confidence[id] = confidence[id];
}
if ( w.detected[url][app].getConfidence() >= 500 ) {
// Per hostname
if ( /(www.)?((.+?)\.(([a-z]{2,3}\.)?[a-z]{2,6}))$/.test(hostname) && !/((local|dev(elopment)?|stag(e|ing)?|test(ing)?|demo(shop)?|admin|google|cache)\.|\/admin|\.local)/.test(url) ) {
if ( !w.ping.hostnames.hasOwnProperty(hostname) ) {
w.ping.hostnames[hostname] = { applications: {}, meta: {} };
}
if ( !w.ping.hostnames[hostname].applications.hasOwnProperty(app) ) {
w.ping.hostnames[hostname].applications[app] = { hits: 0 };
}
w.ping.hostnames[hostname].applications[app].hits ++;
if ( version ) {
w.ping.hostnames[hostname].applications[app].version = version;
}
} else {
w.log('Ignoring hostname "' + hostname + '"');
}
}
}
// Additional information
if ( w.ping.hostnames.hasOwnProperty(hostname) ) {
if ( typeof data.html === 'string' && data.html ) {
match = data.html.match(/<html[^>]*[: ]lang="([a-z]{2}((-|_)[A-Z]{2})?)"/i);
if ( match && match.length ) {
w.ping.hostnames[hostname].meta['language'] = match[1];
}
regexMeta = /<meta[^>]+>/ig;
while ( match = regexMeta.exec(data.html) ) {
if ( !match.length ) {
continue;
}
match = match[0].match(/name="(author|copyright|country|description|keywords)"[^>]*content="([^"]+)"/i);
if ( match && match.length === 3 ) {
w.ping.hostnames[hostname].meta[match[1]] = match[2];
}
}
}
}
if ( Object.keys(w.ping.hostnames).length >= 20 || w.adCache.length >= 40) {
driver('ping');
}
apps = null;
data = null;
driver('displayApps');
}
};
return w;
})();
// CommonJS package
// See http://wiki.commonjs.org/wiki/CommonJS
if ( typeof exports === 'object' ) {
exports.wappalyzer = wappalyzer;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

@ -1,30 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Wappalyzer</title>
<link rel="icon" type="image/png" href="images/icon.png"/>
<script type="text/javascript" src="js/wappalyzer.js"></script>
<script type="text/javascript" src="js/driver.js"></script>
<style type="text/css">
body {
font-family: Verdana, Arial, sans-serif;
font-size: 12px;
}
#apps {
line-height: 20px;
}
#apps img {
vertical-align: middle;
}
</style>
</head>
<body>
<div id="apps"></div>
</body>
</html>

@ -1,67 +0,0 @@
(function() {
if ( wappalyzer == null ) { return };
var w = wappalyzer;
w.driver = {
/**
* Log messages to console
*/
log: function(args) {
if ( console != null ) { console[args.type](args.message) };
},
/**
* Initialize
*/
init: function() {
// Load apps.json
var xhr = new XMLHttpRequest();
xhr.open('GET', 'apps.json', true);
xhr.overrideMimeType('application/json');
xhr.onload = function() {
var json = JSON.parse(xhr.responseText);
w.categories = json.categories;
w.apps = json.apps;
window.document.addEventListener('DOMContentLoaded', function() {
w.analyze('google.com', 'http://google.com', {
html: '<script src="jquery.js"><meta name="generator" content="WordPress"/>',
headers: { 'Server': 'Apache' },
env: [ 'Mootools' ]
});
});
};
xhr.send(null);
},
/**
* Display apps
*/
displayApps: function() {
var
app,
url = Object.keys(w.detected)[0];
document.getElementById('apps').innerHTML = '';
for ( app in w.detected[url] ) {
document.getElementById('apps').innerHTML += '<img src="images/icons/' + w.apps[app].icon + '" width="16" height="16"/> ' + app + '<br/>';
};
},
/**
* Go to URL
*/
goToURL: function(args) {
window.open(args.url);
}
};
w.init();
})();

@ -1,14 +0,0 @@
root = true
[*]
indent_style = tab
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{js,py}]
charset = utf-8
[*.py]
indent_style = space
indent_size = 4

@ -1,3 +0,0 @@
wappalyzer.js
apps.json
node_modules/

@ -1,5 +0,0 @@
{
"node" : true,
"browser" : "false",
"predef": []
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save