Skip to content

Commit 3f5a447

Browse files
authored
Merge pull request #14 from piyushkumar002/main
add suggested code by @John-Kiruba
2 parents 079e0ac + 26f7442 commit 3f5a447

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@
2626
- Copy App Password.
2727
- Use App Password in Email-Bomber script.
2828

29+
### Setup App Password in Email-Bomber script
30+
![Folder Structure](./resources/images/folder-structure.jpg)
31+
- Create User_Credentials folder in Email-Bomber folder
32+
- Replicate the folder structure
33+
- Paste App Password in app_password.txt
34+
- Paste sender's email in sender.txt
35+
- You're good to go!!
36+
2937
## 📑 Installation Guide
3038
### Termux
3139
```
@@ -101,4 +109,4 @@ SOFTWARE.
101109
- [@coderatul](https://github.com/coderatul)
102110

103111
## ❔ Questions/Feedback
104-
If you have any questions or feedback, please reach out in [issues](https://github.com/coderatul/emailbomber/issues).
112+
If you have any questions or feedback, please reach out in [issues](https://github.com/coderatul/emailbomber/issues).

emailbomber.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#Built-in library's.
22
import smtplib
33
from os import access, path, mkdir
4+
from email.message import EmailMessage
45

56
print(f"{open('Welcome/welcome.txt', encoding='UTF-8').read()}\n\n") #Welcomes user.
67

@@ -14,7 +15,10 @@
1415

1516
print("If you would like to spam more than one email, separate the emails by commas (example@gmail.com, example2@hotmail.com, example3@myspace.com)") #Tells user how to email-bomb more than one email.
1617
receiver = input("Specify the email(s) you would like to email-bomb -> ") #Enter the email(s) that you would like to email-bomb.
17-
message = input("Enter your email-bomber message -> ") #The message that the email user(s) will receive.
18+
msg = input("Enter your email-bomber message -> ") #The message that the email user(s) will receive.
19+
message = EmailMessage()
20+
message.set_content(msg, subtype="plain", charset='us-ascii')
21+
message = str(message)
1822

1923
# Loop until valid count value is given
2024
while(True):
@@ -67,4 +71,4 @@
6771

6872

6973
input("\nEmail-bomber was successful...\nPress enter to exit...") #Email-bomber finished.
70-
server.close() #Closes server.
74+
server.close() #Closes server.
45.8 KB
Loading

0 commit comments

Comments
 (0)