Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fc5570/phisherman.gg
A wrapper for https://phisherman.gg/
https://github.com/fc5570/phisherman.gg
Last synced: 11 days ago
JSON representation
A wrapper for https://phisherman.gg/
- Host: GitHub
- URL: https://github.com/fc5570/phisherman.gg
- Owner: FC5570
- License: mit
- Created: 2022-01-09T08:58:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T22:47:20.000Z (9 months ago)
- Last Synced: 2024-11-11T18:14:44.576Z (2 months ago)
- Language: TypeScript
- Homepage: https://npmjs.com/phisherman.gg
- Size: 1.06 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phisherman.gg
A NodeJS wrapper for [phisherman](https://phisherman.gg/) API.
## Installation
```
npm install phisherman.gg
yarn add phisherman.gg
```## Example
```typescript
import { PhishermanClient } from 'phisherman.gg';const client = new PhishermanClient({
apiKey: ''
});// 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](https://phisherman.gg/discord) and ask for help, or contact FC#5104._