Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

phishai

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phishai

Use Node to check for phising domains in PhisAI

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Node PhisAI

Use Node to check for phising domains in PhishAI

Install

npm install phishai

How to use

const phishai = require('phishai');

phishai.setApiKey("<YOUR API KEY>");

var id = "";

// Use checkDomain(<domain>) to check that domain against PhisAI
// A promise will be returned
var domain = "https://example.com"
phishai.checkDomain(domain).then(function(result){
    id = result.scan_id;
    console.log(result);
}, function(err) {
    console.log(err);
});

/*
Output example
{ scan_id: 'U2sG4AkxdHMlrIcT5O8L' }
*/

// Use checkId(<id>) to get the report of the Id
// A promise will be returned
phishai.checkId(id).then(function(result){ 
    console.log(result);
}, function(err) {
    console.log(err);
});

/*
Output example
{ url: 'https://example.com',
  status: 'in progress',
  time: '2018-04-21T09:40:53.199Z' }

{"url":"https://example.com",
"status":"completed",
"target":"unknown",
"iso_code":"US",
"title":"example_domain",
"user_agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/67.0.3372.0 Safari/537.36",
"user_email":"api",
"ip_address":"93.184.216.34",
"verdict":"clean",
"domain":"example.com",
"time":"2018-04-12T11:07:36.789Z",
"tld":"com"}
*/

Keywords

FAQs

Package last updated on 21 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc