4.0.0 • Published 1 year ago

phish-scanner v4.0.0

Weekly downloads
-
License
EPL-2.0
Repository
github
Last release
1 year ago

Phish-Scanner

This package supports ESM and CommonJS.

For security information on this package, please refer to the Security.md file.

To use this package with ESM, please refer to the snippet below:

import { scan } from "phish-scanner";

const keys {}

const phishScanner = PhishScanner(link, keys);

// this returns a promise, so you can use async/await or .then()

if (phishscanner) {
  // this is a phish link, do something
}

To use this package with CommonJS, please refer to the snippet below:

const { scan } = require("phish-scanner");

const keys {}

const phishScanner = PhishScanner(link, keys);

// this returns a promise, so you can use async/await or .then()

if (phishscanner) {
  // this is a phish link, do something
}

This is the bare minimum with this package, and will call several APIs that have open endpoints. However, for the most accurate results, you should use your own API keys for some services we use. You can get these keys from the following services:

To provide your own keys, add them to the keys object like so:

const keys = {
  googleSafeBrowsing: "Your Google Safe Browsing key here",
  phisherman: "Your Phisherman key here",
  urlScan: "Your urlscan.io key here",
  virusTotal: "Your VirusTotal key here",
  checkPhish: "Your CheckPhish key here",
  ipQualityScore: "Your IpQualityScore key here",
};

this will then automaticaly enable these services during the scan.

4.0.0

1 year ago

3.0.0

1 year ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

0.0.2

1 year ago

0.0.0

1 year ago