Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. import smtplib
  2. import sys
  3. import time
  4. from random import randint
  5. import threading
  6.  
  7. '''
  8. Email´s :
  9.  
  10. 10 Hours of E-mail spam ~ >31000 E-mails
  11.  
  12. < KIM >
  13. kim.philipp@icloud.com
  14.  
  15. < DAVID >
  16. david.aksoy83@googlemail.com
  17. david-aksoy83@gmx.com
  18.  
  19. < MEINE >
  20. s.hawranke0601@gmail.com
  21. s.hawranke0701@gmail.com
  22. s.hawranke0801@gmail.com
  23. email.spam1337@gmail.com
  24. email.spam1336@gmail.com
  25. email.spam1335@gmail.com
  26. email.spam1334@gmail.com
  27.  
  28. '''
  29.  
  30.  
  31. def email_send(my_email, counter, pw, email_target):
  32. which_email = 0
  33. amount_emails = 1
  34. message_different = 1
  35.  
  36. ''' tracks the time '''
  37. while counter <= amount_emails:
  38. if which_email == 4:
  39. which_email = 0
  40. else:
  41. pass
  42. message = randint(0, 100)
  43. email_message = str(message)
  44. mail = smtplib.SMTP("smtp.gmail.com", 587)
  45. mail.ehlo()
  46. mail.starttls()
  47. mail.login(my_email[which_email], pw[0])
  48. subject = ("%d .e-mail" % (counter))
  49. email_message_and_subject = "Subject: {} \n\n{}".format(subject, email_message)
  50. mail.sendmail("email.spam1334@gmail.com", email_target, str(email_message_and_subject))
  51. counter += 1
  52. which_email += 1
  53. message_different += 1
  54.  
  55.  
  56. def read_password_out_of_file(pw):
  57. ''' opens the .txt file as myfile '''
  58. with open("EmailPW.dll", "r") as my_file:
  59. ''' adds the password to the list '''
  60. for passwords in my_file:
  61. pw.append(passwords)
  62. return pw
  63.  
  64.  
  65. ''' Beginning '''
  66. if __name__ == "__main__":
  67. ''' creates an empty list '''
  68. pw = []
  69. time_difference = None
  70.  
  71. email_target = "email.spam1337@gmail.com"
  72.  
  73. counter = 1
  74. email_counter = []
  75.  
  76. ''' Emails comes From : '''
  77. my_email = ["email.spam1334@gmail.com", "email.spam1335@gmail.com", "email.spam1336@gmail.com",
  78. "email.spam1337@gmail.com"]
  79. ''' Gets the password out of the .txt file and saves it in a list '''
  80. read_password_out_of_file(pw)
  81. ''' Program start '''
  82. start_time = time.time()
  83. program_stop = False
  84. t1 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
  85. time.sleep(0.2)
  86. t2 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
  87. time.sleep(0.2)
  88. t3 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
  89. time.sleep(0.2)
  90. t4 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
  91. time.sleep(0.2)
  92. t5 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
  93. time.sleep(0.2)
  94. t6 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
  95. time.sleep(0.2)
  96. t7 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
  97. time.sleep(0.2)
  98. t8 = threading.Thread(target=email_send, args=(my_email, counter, pw, email_target,))
  99.  
  100. t1.start()
  101. t2.start()
  102. t3.start()
  103. t4.start()
  104. t5.start()
  105. t6.start()
  106. t7.start()
  107. t8.start()
  108.  
  109. t1.join()
  110. t2.join()
  111. t3.join()
  112. t4.join()
  113. t5.join()
  114. t6.join()
  115. t7.join()
  116. t8.join()
  117. now = time.time()
  118. time_difference = now - start_time
  119. print(time_difference)
  120.  
  121.  
  122. print()
  123. print("- - - - - - - - - - - - - - - - - - - - ")
  124. print("FINISH")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement