cymru-mhr
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

cymru-mhr Travis CI Build Status

Check if file hashes are dangerous using the CYMRU Malware Hash Registry.

NPM Badge

Install

npm install cymru-mhr

Usage

const mhr = require("cymru-mhr")
 
const { lastSeen, detectionRate } = await mhr("7697561ccbbdd1661c25c86762117613")
 
console.log(`Last seen on ${new Date(lastSeen * 1000).toString()}`)
console.log(`Detected by ${detectionRate} antivirus engines`)

API

mhr(hash)

Check if a file hash is dangerous using the CYMRU Malware Hash Registry. Returns a promise that resolves with { lastSeen: number, detectionRate: number }.

mhr.multiple(hashes)

Check if file hashes are dangerous using the CYMRU Malware Hash Registry. Returns a promise that resolves with an array of { lastSeen: number, detectionRate: number }.

hash

Type: string

The MD5 or SHA1 hash to check.

hashes

Type: string[]

An array of MD5 or SHA1 hashes to check.

Package Sidebar

Install

npm i cymru-mhr

Weekly Downloads

13

Version

1.0.0

License

MIT

Unpacked Size

5.18 kB

Total Files

6

Last publish

Collaborators

  • richienb