Skip to content

A package to categorize an input domain for usage in EtherScamDB

License

Notifications You must be signed in to change notification settings

blurpesec/esdb-categorize

Repository files navigation

esdb-categorize

npm package to categorize domains for EtherScamDB

Created by blurpesec of MyCrypto

To add:
npm install esdb-categorize
To run test:
npm test
Example test.js implementation:
const test = require('esdb-categorize');
const json = require('json');

const input = {"domain": "https://www.mycryptor.com/"}

categorize = new test(input)
categorize.test().then(function(output) {
    console.log(JSON.stringify(output, null, 2))
})
Output:

Outputs come in the form of a JSON object which contains some data

For verified domains:

{
  "input": "https://www.mycrypto.com/",
  "categorized": true,
  "name": "mycrypto.com",
  "idnhomograph": false,
  "detectedbytest": [
    "falsepositivetest"
  ],
  "category": "Verified Domain",
  "subcategory": "MyCrypto"
}

For categorized domains:

{
  "input": "https://www.verify.getbigeth.com/",
  "categorized": true,
  "name": "verify.getbigeth.com",
  "idnhomograph": false,
  "detectedbytest": [
    "stringtokentest",
    "containsfiletest"
  ],
  "category": "Scamming",
  "subcategory": "Trust-Trading"
}

For uncategorized domains:

{
  "input": "https://www.mqsdadasroperas.com/",
  "name": "mqsdadasroperas.com",
  "categorized": false,
  "idnhomograph": false,
  "detectedbytest": []
}

Releases

No releases published

Packages

No packages published