mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +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();
|
|
||||||
})();
|
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
"fast-cidr-tools": "^0.3.2",
|
"fast-cidr-tools": "^0.3.2",
|
||||||
"fast-fifo": "^1.3.2",
|
"fast-fifo": "^1.3.2",
|
||||||
"fdir": "^6.4.3",
|
"fdir": "^6.4.3",
|
||||||
"foxts": "^2.0.1",
|
"foxts": "^3.0.0",
|
||||||
"hash-wasm": "^4.12.0",
|
"hash-wasm": "^4.12.0",
|
||||||
"json-stringify-pretty-compact": "3.0.0",
|
"json-stringify-pretty-compact": "3.0.0",
|
||||||
"picocolors": "^1.1.1",
|
"picocolors": "^1.1.1",
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
"mocha": "^11.1.0",
|
"mocha": "^11.1.0",
|
||||||
"typescript": "^5.8.2"
|
"typescript": "^5.8.2"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.6.4",
|
"packageManager": "pnpm@10.6.5",
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"patchedDependencies": {
|
"patchedDependencies": {
|
||||||
"whoiser": "patches/whoiser.patch"
|
"whoiser": "patches/whoiser.patch"
|
||||||
|
|||||||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@@ -50,8 +50,8 @@ importers:
|
|||||||
specifier: ^6.4.3
|
specifier: ^6.4.3
|
||||||
version: 6.4.3(picomatch@4.0.2)
|
version: 6.4.3(picomatch@4.0.2)
|
||||||
foxts:
|
foxts:
|
||||||
specifier: ^2.0.1
|
specifier: ^3.0.0
|
||||||
version: 2.0.1
|
version: 3.0.0
|
||||||
hash-wasm:
|
hash-wasm:
|
||||||
specifier: ^4.12.0
|
specifier: ^4.12.0
|
||||||
version: 4.12.0
|
version: 4.12.0
|
||||||
@@ -1072,8 +1072,8 @@ packages:
|
|||||||
foxts@1.7.0:
|
foxts@1.7.0:
|
||||||
resolution: {integrity: sha512-mWyH/Fmh7TrUSuLgQpm2y3EieseR/v1g1Hp2cG5g5XBpQjuXLzhxMMiIND6egrDu0xkh28tYd4fp3dxam2/VAA==}
|
resolution: {integrity: sha512-mWyH/Fmh7TrUSuLgQpm2y3EieseR/v1g1Hp2cG5g5XBpQjuXLzhxMMiIND6egrDu0xkh28tYd4fp3dxam2/VAA==}
|
||||||
|
|
||||||
foxts@2.0.1:
|
foxts@3.0.0:
|
||||||
resolution: {integrity: sha512-p032Uy9DFQEyWa0CjtK+KBlwujoRVzUUO9Z0OUAWLsK01pGQ2oqGX8XipzaVyR2i5yV4wAsQrjLoe7BWEhxH6A==}
|
resolution: {integrity: sha512-h87E4IwITlcqmANBZdsywfINSKrx3pYo3KjXGI1dylZ1o7/UV4gh2PTNIo5xIB3Tn5M3iIGLiKsq+Q+zdktP7g==}
|
||||||
|
|
||||||
fs-constants@1.0.0:
|
fs-constants@1.0.0:
|
||||||
resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==}
|
resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==}
|
||||||
@@ -2696,7 +2696,7 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
uncrypto: 0.1.3
|
uncrypto: 0.1.3
|
||||||
|
|
||||||
foxts@2.0.1: {}
|
foxts@3.0.0: {}
|
||||||
|
|
||||||
fs-constants@1.0.0: {}
|
fs-constants@1.0.0: {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user