projectdiscovery / wappalyzergo

A high performance go implementation of Wappalyzer Technology Detection Library
MIT License
698 stars 107 forks source link

Add headless based wappalyzer implementation #12

Open Ice3man543 opened 2 years ago

hazcod commented 2 years ago

I had this implemented using a headless node instance called from Go:

const Wappalyzer = require('wappalyzer');

const urls = process.argv.slice(2);

;(async function() {
    const wappalyzer = await new Wappalyzer();

    try {
        await wappalyzer.init();

        const results = await Promise.all(
            urls.map(async (url) => ({
                url,
                results: await wappalyzer.open(url, headers = {
                    'x-crawler': 'foo',
                }).analyze()
            }))
        )

        console.log(JSON.stringify(results, null, 0));
    } catch (error) {
        console.error(error);
    }

    await wappalyzer.destroy();
})()