npm package to categorize domains for EtherScamDB
Created by blurpesec of MyCrypto
npm install esdb-categorize
npm test
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))
})
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": []
}