first commit
This commit is contained in:
13
testing/autocheck.ts
Normal file
13
testing/autocheck.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { stdin } from "bun";
|
||||
import filters from "../src/modules/filters.ts";
|
||||
let inp:any = await stdin.text()
|
||||
inp = inp.split("\n")
|
||||
const re = new RegExp("(?:https?://)?([^/]+)");
|
||||
|
||||
for (let i = 0; i < (inp.length - 1); i++) {
|
||||
// @ts-ignore
|
||||
let url = re.exec(inp[i])[1];
|
||||
let results = [await filters.fortiguard(url),await filters.lightspeed(url),await filters.palo(url)]
|
||||
results[2] = [results[2][0].replaceAll(" ","").replaceAll("\n",""),results[2][1]]
|
||||
console.log(`\n${url}:\n lightspeed: ${results[1]}\n forti: ${results[0]}\n palo: ${results[2]}`)
|
||||
}
|
||||
2
testing/rdapchecker.ts
Normal file
2
testing/rdapchecker.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
import { getRDAP } from "../src/modules/whois";
|
||||
console.log(await getRDAP("172.233.190.246"))
|
||||
Reference in New Issue
Block a user