|
|
@ -45,6 +45,9 @@ node index.js [url] [options]
|
|
|
|
|
|
|
|
|
|
|
|
## Run from a script
|
|
|
|
## Run from a script
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Wappalyzer = require('./driver');
|
|
|
|
|
|
|
|
const Browser = require('./browsers/zombie');
|
|
|
|
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
```javascript
|
|
|
|
const options = {
|
|
|
|
const options = {
|
|
|
|
debug: false,
|
|
|
|
debug: false,
|
|
|
@ -58,16 +61,19 @@ const options = {
|
|
|
|
htmlMaxRows: 2000,
|
|
|
|
htmlMaxRows: 2000,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const wappalyzer = new Wappalyzer('https://www.wappalyzer.com', options);
|
|
|
|
const wappalyzer = new Wappalyzer(Browser, 'https://www.wappalyzer.com', options);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Optionally override the default logger
|
|
|
|
|
|
|
|
// wappalyzer.log = (message, source, type) => console.log(message);
|
|
|
|
|
|
|
|
|
|
|
|
wappalyzer.analyze()
|
|
|
|
wappalyzer.analyze()
|
|
|
|
.then(json => {
|
|
|
|
.then(json => {
|
|
|
|
process.stdout.write(JSON.stringify(json, null, 2) + '\n')
|
|
|
|
process.stdout.write(`${JSON.stringify(json, null, 2)}\n`);
|
|
|
|
|
|
|
|
|
|
|
|
process.exit(0);
|
|
|
|
process.exit(0);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(error => {
|
|
|
|
.catch(error => {
|
|
|
|
process.stderr.write(error + '\n')
|
|
|
|
process.stderr.write(`${error}\n`);
|
|
|
|
|
|
|
|
|
|
|
|
process.exit(1);
|
|
|
|
process.exit(1);
|
|
|
|
});
|
|
|
|
});
|
|
|
|