mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-06-19 13:21:05 +00:00
Allow DNS failures in checks
This commit is contained in:
@@ -34,14 +34,18 @@ async function checkGetWallet (ours: Record<string, string[]>, site: string): Pr
|
||||
const found: string[] = [];
|
||||
|
||||
for (let i = 0; i < 25; i++) {
|
||||
const result = await (await fetch(`https://${site}/get_wallet.php`)).json() as Record<string, string>;
|
||||
try {
|
||||
const result = await (await fetch(`https://${site}/get_wallet.php`)).json() as Record<string, string>;
|
||||
|
||||
if (result && result.wallet) {
|
||||
const wallet = result.wallet.replace('\r', '');
|
||||
if (result && result.wallet) {
|
||||
const wallet = result.wallet.replace('\r', '');
|
||||
|
||||
if (!found.includes(wallet)) {
|
||||
found.push(wallet);
|
||||
if (!found.includes(wallet)) {
|
||||
found.push(wallet);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
await delayLoop();
|
||||
|
||||
Reference in New Issue
Block a user