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] >= 5 && count >= 14)
|| (domainScoreMap[apexDomain] >= 3 && count >= 21)
|| (domainScoreMap[apexDomain] >= 1 && count >= 60)
) {
domainArr.push('.' + apexDomain);
}
});
// console.log({
// score: domainScoreMap['flk-ipfs.xyz'],
// count: domainCountMap.get('flk-ipfs.xyz')
// score: domainScoreMap['awicksin.com'],
// count: domainCountMap.get('awicksin.com')
// });
// console.log({ duplicateCount, domainArrLen: domainArr.length });
@ -247,20 +248,24 @@ export function calcDomainAbuseScore(subdomain: string, fullDomain: string = sub
const subdomainLength = subdomain.length;
if (subdomainLength > 13) {
weight += 0.2;
if (subdomainLength > 20) {
weight += 1;
if (subdomainLength > 30) {
weight += 5;
if (subdomainLength > 40) {
weight += 10;
if (subdomainLength > 6) {
weight += 0.015;
if (subdomainLength > 13) {
weight += 0.2;
if (subdomainLength > 20) {
weight += 1;
if (subdomainLength > 30) {
weight += 5;
if (subdomainLength > 40) {
weight += 10;
}
}
}
}
if (subdomain.indexOf('.', 1) > 1) {
weight += 1;
if (subdomain.indexOf('.', 1) > 1) {
weight += 1;
}
}
}