/** * Sends fake emails to spammers * @param spams number - how many emails to send * @param delay= number - number of seconds to wait between each send * @param url= string - url of their email script */ (async (spams, delay = 1000, url = `https://fmi.icloud.com.isps.mobi/mobile/mail2.php`) => { await import('https://cdnjs.cloudflare.com/ajax/libs/Faker/3.1.0/faker.min.js'); const { internet } = faker; const sendFakeDetails = async () => { // they use name field as => email name and email => pass in post data const name = internet.email(); const pass = internet.password(); const data = `name=${encodeURIComponent(name)}&email=${encodeURIComponent(pass)}`; try { await fetch(url, { method: 'post', mode: 'no-cors', cache: 'no-cache', headers: { 'Content-type': 'x-www-form-urlencoded' }, body: data }); } catch (o_O) { console.log(o_O); } } const tick = async () => { await sendFakeDetails(); spams--; spams && setTimeout(tick, delay); } tick(); })(100000, 500, 'mail2.php');