|
|
@ -31,8 +31,7 @@ wappalyzer <url> [options]
|
|
|
|
### Options
|
|
|
|
### Options
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
-b, --browser=... Specify which headless browser to use (zombie or puppeteer)
|
|
|
|
-b, --batch-size=... Process links in batches
|
|
|
|
-c, --chunk-size=... Process links in chunks
|
|
|
|
|
|
|
|
-d, --debug Output debug messages
|
|
|
|
-d, --debug Output debug messages
|
|
|
|
-t, --delay=ms Wait for ms milliseconds between requests
|
|
|
|
-t, --delay=ms Wait for ms milliseconds between requests
|
|
|
|
-h, --help This text
|
|
|
|
-h, --help This text
|
|
|
@ -41,12 +40,9 @@ wappalyzer <url> [options]
|
|
|
|
-D, --max-depth=... Don't analyse pages more than num levels deep
|
|
|
|
-D, --max-depth=... Don't analyse pages more than num levels deep
|
|
|
|
-m, --max-urls=... Exit when num URLs have been analysed
|
|
|
|
-m, --max-urls=... Exit when num URLs have been analysed
|
|
|
|
-w, --max-wait=... Wait no more than ms milliseconds for page resources to load
|
|
|
|
-w, --max-wait=... Wait no more than ms milliseconds for page resources to load
|
|
|
|
-p, --password=... Password to be used for basic HTTP authentication (zombie only)
|
|
|
|
|
|
|
|
-P, --pretty Pretty-print JSON output
|
|
|
|
-P, --pretty Pretty-print JSON output
|
|
|
|
--proxy=... Proxy URL, e.g. 'http://user:pass@proxy:8080' (zombie only)
|
|
|
|
|
|
|
|
-r, --recursive Follow links on pages (crawler)
|
|
|
|
-r, --recursive Follow links on pages (crawler)
|
|
|
|
-a, --user-agent=... Set the user agent string
|
|
|
|
-a, --user-agent=... Set the user agent string
|
|
|
|
-u, --username=... Username to be used for basic HTTP authentication (zombie only)
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -58,7 +54,6 @@ const Wappalyzer = require('wappalyzer');
|
|
|
|
const url = 'https://www.wappalyzer.com';
|
|
|
|
const url = 'https://www.wappalyzer.com';
|
|
|
|
|
|
|
|
|
|
|
|
const options = {
|
|
|
|
const options = {
|
|
|
|
// browser: 'puppeteer',
|
|
|
|
|
|
|
|
debug: false,
|
|
|
|
debug: false,
|
|
|
|
delay: 500,
|
|
|
|
delay: 500,
|
|
|
|
maxDepth: 3,
|
|
|
|
maxDepth: 3,
|
|
|
@ -70,27 +65,30 @@ const options = {
|
|
|
|
htmlMaxRows: 2000,
|
|
|
|
htmlMaxRows: 2000,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const wappalyzer = new Wappalyzer(url, options);
|
|
|
|
;(async function() {
|
|
|
|
|
|
|
|
const wappalyzer = await new Wappalyzer(options)
|
|
|
|
|
|
|
|
|
|
|
|
// Optional: capture log output
|
|
|
|
try {
|
|
|
|
// wappalyzer.on('log', params => {
|
|
|
|
await wappalyzer.init()
|
|
|
|
// const { message, source, type } = params;
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Optional: do something on page visit
|
|
|
|
const site = await wappalyzer.open(url)
|
|
|
|
// wappalyzer.on('visit', params => {
|
|
|
|
|
|
|
|
// const { browser, pageUrl } = params;
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wappalyzer.analyze()
|
|
|
|
site.on('error', (error) => {
|
|
|
|
.then((json) => {
|
|
|
|
process.stderr.write(`error: ${error}\n`)
|
|
|
|
process.stdout.write(`${JSON.stringify(json, null, 2)}\n`);
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
process.exit(0);
|
|
|
|
const results = await site.analyze()
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch((error) => {
|
|
|
|
|
|
|
|
process.stderr.write(`${error}\n`);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
process.exit(1);
|
|
|
|
process.stdout.write(`${JSON.stringify(results, null, 2)}\n`)
|
|
|
|
});
|
|
|
|
|
|
|
|
```
|
|
|
|
await wappalyzer.destroy()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
process.exit(0)
|
|
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
|
|
process.stderr.write(error.toString())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await wappalyzer.destroy()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
process.exit(1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})()
|
|
|
|