mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Housekeeping & Minor changes
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
import { describe, it } from 'mocha';
|
||||
|
||||
import { calcDomainAbuseScore } from './get-phishing-domains';
|
||||
|
||||
describe('sortDomains', () => {
|
||||
it('nmdj.pl', () => {
|
||||
console.log(calcDomainAbuseScore('.booking-com'));
|
||||
console.log(calcDomainAbuseScore('plikgier'));
|
||||
console.log(calcDomainAbuseScore('www.addgumtree'));
|
||||
console.log(calcDomainAbuseScore('zrz'));
|
||||
console.log(calcDomainAbuseScore('z1'));
|
||||
console.log(calcDomainAbuseScore('accountsettingaddrecoverymanagesiteupdatebillingreview.village'));
|
||||
console.log(calcDomainAbuseScore('allegrolokalnie'));
|
||||
});
|
||||
|
||||
it('zendesk.com', () => {
|
||||
console.log(calcDomainAbuseScore('binomo2'));
|
||||
console.log(calcDomainAbuseScore('www.binomo2'));
|
||||
console.log(calcDomainAbuseScore('store.binomo2'));
|
||||
console.log(calcDomainAbuseScore('gimp'));
|
||||
console.log(calcDomainAbuseScore('store.gimp'));
|
||||
console.log(calcDomainAbuseScore('www.gimp'));
|
||||
});
|
||||
|
||||
it('digital-marketing-insights.icu', () => {
|
||||
console.log(calcDomainAbuseScore('ovusc7pijit9'));
|
||||
});
|
||||
});
|
||||
@@ -1,14 +0,0 @@
|
||||
import { fetchRemoteTextByLine } from './fetch-text-by-line';
|
||||
import { sortDomains } from './stable-sort-domain';
|
||||
|
||||
import { bench, group, run } from 'mitata';
|
||||
|
||||
(async () => {
|
||||
const data = await Array.fromAsync(await fetchRemoteTextByLine('https://osint.digitalside.it/Threat-Intel/lists/latestdomains.txt', true));
|
||||
|
||||
group(() => {
|
||||
bench('sortDomains', () => sortDomains(data));
|
||||
});
|
||||
|
||||
run();
|
||||
})();
|
||||
Reference in New Issue
Block a user