You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
var w = wappalyzer;
|
|
|
|
|
|
|
|
w.driver = {
|
|
|
|
debug: false,
|
|
|
|
data: {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Log messages to console
|
|
|
|
*/
|
|
|
|
log: function(args) {
|
|
|
|
if ( w.driver.debug ) { print(args.type + ': ' + args.message + "\n"); }
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Initialize
|
|
|
|
*/
|
|
|
|
init: function() {
|
|
|
|
var app, apps = {};
|
|
|
|
|
|
|
|
w.analyze(w.driver.data.host, w.driver.data.url, {
|
|
|
|
html: w.driver.data.html,
|
|
|
|
headers: w.driver.data.headers
|
|
|
|
});
|
|
|
|
|
|
|
|
for ( app in w.detected[w.driver.data.url] ) {
|
|
|
|
apps[app] = {
|
|
|
|
categories: [],
|
|
|
|
confidence: w.detected[w.driver.data.url][app].confidenceTotal
|
|
|
|
};
|
|
|
|
|
|
|
|
w.apps[app].cats.map(function(cat) {
|
|
|
|
apps[app].categories.push(w.categories[cat]);
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
return JSON.stringify(apps);
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Dummy
|
|
|
|
*/
|
|
|
|
displayApps: function() {
|
|
|
|
}
|
|
|
|
};
|