项目作者: blurpesec

项目描述 :
A package to categorize an input domain for usage in EtherScamDB
高级语言: JavaScript
项目地址: git://github.com/blurpesec/esdb-categorize.git
创建时间: 2018-07-25T03:00:09Z
项目社区:https://github.com/blurpesec/esdb-categorize

开源协议:MIT License

下载


esdb-categorize

npm package to categorize domains for EtherScamDB

Created by blurpesec of MyCrypto

To add:
  1. npm install esdb-categorize
To run test:
  1. npm test
Example test.js implementation:
  1. const test = require('esdb-categorize');
  2. const json = require('json');
  3. const input = {"domain": "https://www.mycryptor.com/"}
  4. categorize = new test(input)
  5. categorize.test().then(function(output) {
  6. console.log(JSON.stringify(output, null, 2))
  7. })
Output:

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

For verified domains:

  1. {
  2. "input": "https://www.mycrypto.com/",
  3. "categorized": true,
  4. "name": "mycrypto.com",
  5. "idnhomograph": false,
  6. "detectedbytest": [
  7. "falsepositivetest"
  8. ],
  9. "category": "Verified Domain",
  10. "subcategory": "MyCrypto"
  11. }

For categorized domains:

  1. {
  2. "input": "https://www.verify.getbigeth.com/",
  3. "categorized": true,
  4. "name": "verify.getbigeth.com",
  5. "idnhomograph": false,
  6. "detectedbytest": [
  7. "stringtokentest",
  8. "containsfiletest"
  9. ],
  10. "category": "Scamming",
  11. "subcategory": "Trust-Trading"
  12. }

For uncategorized domains:

  1. {
  2. "input": "https://www.mqsdadasroperas.com/",
  3. "name": "mqsdadasroperas.com",
  4. "categorized": false,
  5. "idnhomograph": false,
  6. "detectedbytest": []
  7. }