Chore: Update Phishing Hosts Score

This commit is contained in:
SukkaW 2025-01-06 00:39:37 +08:00
parent 8a36379c53
commit 38bcd58466

View File

@ -185,14 +185,15 @@ const processPhihsingDomains = cache(function processPhihsingDomains(domainArr:
|| (domainScoreMap[apexDomain] >= 13 && count >= 11) || (domainScoreMap[apexDomain] >= 13 && count >= 11)
|| (domainScoreMap[apexDomain] >= 5 && count >= 14) || (domainScoreMap[apexDomain] >= 5 && count >= 14)
|| (domainScoreMap[apexDomain] >= 3 && count >= 21) || (domainScoreMap[apexDomain] >= 3 && count >= 21)
|| (domainScoreMap[apexDomain] >= 1 && count >= 60)
) { ) {
domainArr.push('.' + apexDomain); domainArr.push('.' + apexDomain);
} }
}); });
// console.log({ // console.log({
// score: domainScoreMap['flk-ipfs.xyz'], // score: domainScoreMap['awicksin.com'],
// count: domainCountMap.get('flk-ipfs.xyz') // count: domainCountMap.get('awicksin.com')
// }); // });
// console.log({ duplicateCount, domainArrLen: domainArr.length }); // console.log({ duplicateCount, domainArrLen: domainArr.length });
@ -247,6 +248,9 @@ export function calcDomainAbuseScore(subdomain: string, fullDomain: string = sub
const subdomainLength = subdomain.length; const subdomainLength = subdomain.length;
if (subdomainLength > 6) {
weight += 0.015;
if (subdomainLength > 13) { if (subdomainLength > 13) {
weight += 0.2; weight += 0.2;
if (subdomainLength > 20) { if (subdomainLength > 20) {
@ -263,6 +267,7 @@ export function calcDomainAbuseScore(subdomain: string, fullDomain: string = sub
weight += 1; weight += 1;
} }
} }
}
return weight; return weight;
} }