Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add headless based wappalyzer implementation #12

Open
Ice3man543 opened this issue Mar 24, 2022 · 1 comment
Open

Add headless based wappalyzer implementation #12

Ice3man543 opened this issue Mar 24, 2022 · 1 comment

Comments

@Ice3man543
Copy link
Member

No description provided.

@Ice3man543 Ice3man543 changed the title Added headless based wappalyzer implementation Add headless based wappalyzer implementation Mar 24, 2022
@hazcod
Copy link

hazcod commented May 5, 2022

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();
})()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants