npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

domain-scanner

v0.1.3

Published

A node utility to scan a domain with various techniques.

Downloads

73

Readme

banner

Installation

$ npm install domain-scanner

Usage

The usage is simple, just pass to the scanner the domain you want to scan and some options, than wait for the response:

const domainScanner = require('domain-scanner');

const options = {
  deep: false,
  sections: [],
  exclude: [],
  keys: {
    hunterio: '<api-key>',
    google: '<api-key>',
    virustotal: '<api-key>'
  }
};

domainScanner('codekraft.it', options, (err, results) => {
  console.log(results);
});

Options

sections

An array with the names of the sections you want to scan, leave empty to scan all sections. Available sections are:

  • details: Will perform some system based evaluations against the domain.
  • emails: Will scan the domain looking for known emails with node-emailhunter
  • breaches: Will check the HaveIBeenPwned database against the domain
  • certificate: SSL Certificate test and verification using node-ssllabs talking with SSL Labs API
  • robots: Will scan the domain robots.txt file with robots-parse
  • subdomains: Will enumerate all hostname subdomains using subquest
  • threats: Will scan the domain using Google Safe Browsing API looking for known threats
  • virustotal: Will scan the domain using Virus Total APIv2 on domain/report endpoint
  • tld: Will scan all the other root TLDs possibilities for a given domain
  • typosquotting: Perform various typosquotting techniques and collect results
  • archived: Lookup the site using Wayback Machine API looking for archived pages
  • ctl: Find subdomains by abusing Certificate Transparency logs
  • tags: Will scan the domain's tracking code footprint with tag-recon to discover connections with other affiliated websites
const options = {
  sections: [
    'details',
    'emails',
    'breaches',
    'certificate',
    'robots',
    'subdomains',
    'threats',
    'virustotal',
    'tld',
    'typosquotting',
    'archived',
    'ctl',
    'tags'
  ]
};

exclude

An array of sections to exclude from the tasks of the scanner:

const options = {
  exclude: ['emails']
};

keys

An object with the API keys for the services involved in the scan. For example to use Hunter.io API:

const options = {
  keys: {
    hunterio: '<api-key>',
    google: '<api-key>',
    virustotal: '<api-key>',
    spyonweb: '<api-key>'
  }
};

Possible keys for now: hunterio, google, virustotal, spyonweb

deep

Perform additional tasks for the gathered results. For example test resulting emails with node-pwned for breaches, or testing nested domain details informations.

const options = {
  deep: true
};

Looking for the cli tool?

If you want to use it from the command line as a cli tool you have to download domain-scanner-cli module.

$ npm install -g domain-scanner-cli

Contributing

  1. Create an issue and describe your idea
  2. Fork the project (https://github.com/b4dnewz/domain-scanner/fork)
  3. Create your feature branch (git checkout -b my-new-task)
  4. Commit your changes (git commit -am 'Add some task')
  5. Write some test (npm run test)
  6. Publish the branch (git push origin my-new-task)
  7. Create a new Pull Request

License

MIT © b4dnewz