|
|
|
@ -28,18 +28,20 @@ wappalyzer [url] [options]
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
--password Password to be used for basic HTTP authentication
|
|
|
|
|
--proxy Proxy URL, e.g. 'http://user:pass@proxy:8080'
|
|
|
|
|
--username Username to be used for basic HTTP authentication
|
|
|
|
|
--browser=str Specify which headless browser to use (zombie or puppeteer)
|
|
|
|
|
--password=str Password to be used for basic HTTP authentication
|
|
|
|
|
--proxy=str Proxy URL, e.g. 'http://user:pass@proxy:8080'
|
|
|
|
|
--username=str Username to be used for basic HTTP authentication
|
|
|
|
|
--chunk-size=num Process links in chunks.
|
|
|
|
|
--debug=0|1 Output debug messages.
|
|
|
|
|
--debug Output debug messages.
|
|
|
|
|
--delay=ms Wait for ms milliseconds between requests.
|
|
|
|
|
--html-max-cols=num Limit the number of HTML characters per line processed.
|
|
|
|
|
--html-max-rows=num Limit the number of HTML lines processed.
|
|
|
|
|
--max-depth=num Don't analyse pages more than num levels deep.
|
|
|
|
|
--max-urls=num Exit when num URLs have been analysed.
|
|
|
|
|
--max-wait=ms Wait no more than ms milliseconds for page resources to load.
|
|
|
|
|
--recursive=0|1 Follow links on pages (crawler).
|
|
|
|
|
--pretty Pretty-print JSON output
|
|
|
|
|
--recursive Follow links on pages (crawler).
|
|
|
|
|
--user-agent=str Set the user agent string.
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
@ -52,6 +54,7 @@ const Wappalyzer = require('wappalyzer');
|
|
|
|
|
const url = 'https://www.wappalyzer.com';
|
|
|
|
|
|
|
|
|
|
const options = {
|
|
|
|
|
// browser: 'puppeteer',
|
|
|
|
|
debug: false,
|
|
|
|
|
delay: 500,
|
|
|
|
|
maxDepth: 3,
|
|
|
|
@ -65,9 +68,6 @@ const options = {
|
|
|
|
|
|
|
|
|
|
const wappalyzer = new Wappalyzer(url, options);
|
|
|
|
|
|
|
|
|
|
// Optional: set the browser to use
|
|
|
|
|
// wappalyzer.Browser = Wappalyzer.browsers.zombie;
|
|
|
|
|
|
|
|
|
|
// Optional: capture log output
|
|
|
|
|
// wappalyzer.on('log', params => {
|
|
|
|
|
// const { message, source, type } = params;
|
|
|
|
@ -79,14 +79,14 @@ const wappalyzer = new Wappalyzer(url, options);
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
wappalyzer.analyze()
|
|
|
|
|
.then(json => {
|
|
|
|
|
.then((json) => {
|
|
|
|
|
process.stdout.write(`${JSON.stringify(json, null, 2)}\n`);
|
|
|
|
|
|
|
|
|
|
process.exit(0);
|
|
|
|
|
})
|
|
|
|
|
.catch(error => {
|
|
|
|
|
.catch((error) => {
|
|
|
|
|
process.stderr.write(`${error}\n`);
|
|
|
|
|
|
|
|
|
|
process.exit(1);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
```
|
|
|
|
|