Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
url: function (val) {
console.log('Wappanalyzer -> LOAD:', val)
this.showLoading = true
wappalyzer.analyze(this.$store.state.Website.url)
.then(json => {
this.arrayWappalyzer = json
this.showLoading = false
})
.catch(error => {
console.error('Wappanalyzer -> ERROR:', error)
this.showLoading = false
})
}
},
app.post('/extract', function(req, res) {
var url = req.body.url;
console.log(`Extracting technologies for ${url}`);
if (validUrl.isUri(url)) {
wappalyzer.run([url, '--quiet'], function(stdout, stderr) {
if(stderr) {
res.status(400).send(stderr);
}
else if(stdout) {
res.send(stdout);
}
});
} else {
res.status(422).end();
}
});
(function() {
'use strict';
var
{ Cc, Ci } = require('chrome'),
tabs = require('tabs'),
self = require('self'),
main = require('wappalyzer'),
w = main.wappalyzer
;
w.driver = {
/**
* Log messages to console
*/
log: function(args) {
console.log(args.message);
},
/**
* Initialize
*/
init: function(callback) {
}
}
wappalyzer(callback){
var wappalyzer = require("wappalyzer");
var options={
url : this.url,
debug:false
}
wappalyzer.detectFromUrl(options,function (err,apps,appInfo) {
callback(appInfo);
})
}