1.0.0 • Published 3 years ago
cymru-mhr v1.0.0
cymru-mhr
Check if file hashes are dangerous using the CYMRU Malware Hash Registry.
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.
1.0.0
3 years ago