phisherman.gg
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

phisherman.gg

A NodeJS wrapper for phisherman API.

Installation

npm install phisherman.gg
yarn add phisherman.gg

Example

import { PhishermanClient } from 'phisherman.gg';

const client = new PhishermanClient({
	apiKey: '<your-api-key>'
});

// Check if domain is a phish or scam
client.check('verified.test.phisherman.gg').then(console.log); // { classification: 'malicious', verifiedPhish: true }

// Report a phish
client.report('https://dicsords-gifted.ru/nitro').then(console.log); // { success: false, message: 'Domain already exists' }

API

PhishermanClient.constructor(options)

options is an object with the following properties:

  1. apiKey (string): The api key to authorize requests.

PhishermanClient.check(domain)

Checks the supplied domain against the phisherman database. Returns the classification and status (verified) of the domain, if valid.

PhishermanClient.info(domain)

Returns information the phisherman database has stored about a phishing domain.

PhishermanClient.reportCaughtPhish(domain, guildId)

When integrating the Phisherman checks with your Discord bot, you can optionally report back when it catches a phish in your server(s). Reporting back caught phish is entirely optional and not required for normal usage, it is to help the phisherman API with analytics.

PhishermanClient.reportNewPhish(domain)

Report a new phishing domain to the phisherman API.

If you encounter any issues, please join the Discord Server and ask for help, or contact FC#5104.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i phisherman.gg

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

12 kB

Total Files

8

Last publish

Collaborators

  • fc5570