nodejs-projecthoneypot

1.0.4 • Public • Published

Node Projecthoneypot

Use Node to check for malicious IPs in projecthoneypot

Install

npm install nodejs-projecthoneypot

How to use

const projecthoneypot = require('nodejs-projecthoneypot');
 
projecthoneypot.setApiKey("<YOUR API KEY>")
 
// Use checkIP(<IP>) to check that IP against projecthoneypot.org
// A promise will be returned
ip = "127.1.1.1";
projecthoneypot.checkIP(ip).then(function(result){ 
        console.log(result);
    }, function(err) {
        console.log(err);
});
 
 
/*
Output example
{ malicious: true,
  days_since_last: '1',
  threat_score: '1',
  types: [ 'Search Engine' ] }
*/

/nodejs-projecthoneypot/

    Package Sidebar

    Install

    npm i nodejs-projecthoneypot

    Weekly Downloads

    4

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    3.34 kB

    Total Files

    3

    Last publish

    Collaborators

    • carlospolop