Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- import sys
- import time
- from random import randint
- import threading
- '''
- 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 = 1
- message_different = 1
- ''' tracks the time '''
- while counter <= amount_emails:
- if which_email == 4:
- which_email = 0
- else:
- pass
- message = randint(0, 100)
- email_message = str(message)
- 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("email.spam1334@gmail.com", email_target, str(email_message_and_subject))
- counter += 1
- which_email += 1
- message_different += 1
- def read_password_out_of_file(pw):
- ''' opens the .txt file as myfile '''
- with open("EmailPW.dll", "r") as my_file:
- ''' adds the password to the list '''
- for passwords in my_file:
- pw.append(passwords)
- return pw
- ''' Beginning '''
- if __name__ == "__main__":
- ''' creates an empty list '''
- pw = []
- time_difference = None
- email_target = "email.spam1337@gmail.com"
- 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 '''
- start_time = time.time()
- program_stop = False
- t1 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
- time.sleep(0.2)
- t2 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
- time.sleep(0.2)
- t3 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
- time.sleep(0.2)
- t4 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
- time.sleep(0.2)
- t5 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
- time.sleep(0.2)
- t6 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
- time.sleep(0.2)
- t7 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
- time.sleep(0.2)
- t8 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
- t1.start()
- t2.start()
- t3.start()
- t4.start()
- t5.start()
- t6.start()
- t7.start()
- t8.start()
- t1.join()
- t2.join()
- t3.join()
- t4.join()
- t5.join()
- t6.join()
- t7.join()
- t8.join()
- now = time.time()
- time_difference = now - start_time
- print(time_difference)
- print()
- print("- - - - - - - - - - - - - - - - - - - - ")
- print("FINISH")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement