Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@
- Copy App Password.
- Use App Password in Email-Bomber script.

### Setup App Password in Email-Bomber script
![Folder Structure](./resources/images/folder-structure.jpg)
- Create User_Credentials folder in Email-Bomber folder
- Replicate the folder structure
- Paste App Password in app_password.txt
- Paste sender's email in sender.txt
- You're good to go!!

## 📑 Installation Guide
### Termux
```
Expand Down Expand Up @@ -113,8 +105,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

## 🤵 Authors
## ➕ Contributors
<a href="https://github.com/coderatul/emailbomber/graphs/contributors">
<img src="https://contrib.rocks/image?repo=coderatul/emailbomber" />
</a>

## 🤵 Author
- [@coderatul](https://github.com/coderatul)

## ❔ Questions/Feedback
If you have any questions or feedback, please reach out in [issues](https://github.com/coderatul/emailbomber/issues).
If you have any questions or feedback, please reach out in [issues](https://github.com/coderatul/emailbomber/issues).
14 changes: 7 additions & 7 deletions emailbomber.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

#User inputs
if not path.exists("User_Credentials"): #If User_Credentials does not exist, asks for user credentials.
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.
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.
sender = input("Enter the G-Mail address you would like to send emails from (example@gmail.com) -> ") #The G-Mail address that emails will be sent from e.g. example@gmail.com.
app_password = input("Enter the app's password (xxxx xxxx xxxx xxxx)-> ") #The app's password that was created from the G-Mail address e.g. alig maou tajh jagq.
else: #Otherwise, reads saved user credentials.
sender = open("User_Credentials/sender.txt", "rt").read() #Reads saved user gmail.
sender = open("User_Credentials/sender.txt", "rt").read() #Reads saved user G-Mail.
app_password = open("User_Credentials/app_password.txt", "rt").read() #Reads saved user app password.

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.
Expand Down Expand Up @@ -39,10 +39,10 @@
server = smtplib.SMTP("smtp.gmail.com",587) #Initializes SMTP server.
server.starttls() #Start SMTP server.

try: #Attempts to log in to user's gmail account.
try: #Attempts to log in to user's G-Mail account.
server.login(user= sender, password= app_password) #Logins to user's account.
except smtplib.SMTPAuthenticationError as error: #Incorrect credentials inputted by user.
print("\nError: Make sure the Gmail address that you inputted is the same as the Gmail account you have created an app password for.\nAlso, double-check your Gmail and app password.")
print("\nError: Make sure the G-Mail address that you inputted is the same as the G-Mail account you have created an app password for.\nAlso, double-check your G-Mail and app password.")
print(f"{error}")
input("Enter to exit...")
quit() #Quits program.
Expand All @@ -51,8 +51,8 @@
if not path.exists("User_Credentials"): #If user credentials does not exist, creates and saves credential files.
#If there are no errors in credentials, save user information after SMTP verification.
mkdir("User_Credentials") #Creats User_Credentials folder.
open("User_Credentials/sender.txt", "xt").write(sender) #Creates and saves user's Gmail address to User_Credentials folder.
open("User_Credentials/app_password.txt", "xt").write(app_password) #Creates and saves user's Gmail app password to User_Credentials folder.
open("User_Credentials/sender.txt", "xt").write(sender) #Creates and saves user's G-Mail address to User_Credentials folder.
open("User_Credentials/app_password.txt", "xt").write(app_password) #Creates and saves user's G-Mail app password to User_Credentials folder.
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...")
except OSError: #Operating system error.
print("\nError: There was an error saving your credentials.")
Expand Down