Skip to content

carlospolop-node-apis/node-projecthoneypot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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' ] }
*/

About

Use Node to check for malicious IPs in projecthoneypot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published