Advertisement
Guest User

Untitled

a guest
Dec 20th, 2018
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. import smtplib
  2. from tkinter import *
  3. import tkinter as Tkinter
  4. import tkinter.ttk as ttk
  5. import time
  6. import threading
  7.  
  8. '''
  9. Email´s :
  10.  
  11. 10 Hours of E-mail spam ~ >31000 E-mails
  12.  
  13. < KIM >
  14. kim.philipp@icloud.com
  15.  
  16. < DAVID >
  17. david.aksoy83@googlemail.com
  18. david-aksoy83@gmx.com
  19.  
  20. < MEINE >
  21. s.hawranke0601@gmail.com
  22. s.hawranke0701@gmail.com
  23. s.hawranke0801@gmail.com
  24. email.spam1337@gmail.com
  25. email.spam1336@gmail.com
  26. email.spam1335@gmail.com
  27. email.spam1334@gmail.com
  28.  
  29. '''
  30.  
  31.  
  32.  
  33.  
  34.  
  35. def spam_main_email():
  36. email_Target = "s.hawranke0601@gmail.com"
  37. email_Amount = 10
  38. email_Message = " "
  39. email_send(my_email, counter, pw, email_Target, email_Amount, email_Message)
  40. close_main_window(window)
  41.  
  42.  
  43. def spam_second_acc():
  44. email_Target = "email.spam1338@gmail.com"
  45. email_Amount = 10
  46. email_Message = " "
  47. email_send(my_email, counter, pw, email_Target, email_Amount, email_Message)
  48. close_main_window(window)
  49.  
  50.  
  51. def spam_test():
  52. email_Target = "s.hawranke0601@gmail.com"
  53. email_Amount = 1
  54. email_Message = "test spam"
  55. email_send(my_email, counter, pw, email_Target, email_Amount, email_Message)
  56. close_main_window(window)
  57.  
  58.  
  59. def close_main_window(window):
  60. return window.quit()
  61.  
  62.  
  63. def read_password_out_of_file(pw):
  64. ''' opens the .txt file as myfile '''
  65. with open("EmailPW.txt", "r") as my_file:
  66. ''' adds the password to the list '''
  67. for passwords in my_file:
  68. pw.append(passwords)
  69. return pw
  70.  
  71.  
  72. def toolbar(window):
  73. ''' TOOLBAR '''
  74. toolbar = Menu(window)
  75. window.config(menu=toolbar)
  76. subMenu = Menu(toolbar)
  77. toolbar.add_cascade(label="PROFILES", menu=subMenu)
  78. subMenu.add_command(label="spam_main_email", command=spam_main_email)
  79. subMenu.add_separator()
  80. subMenu.add_command(label="spam_test", command=spam_test)
  81. subMenu.add_separator()
  82. subMenu.add_command(label="spam_second_acc", command=spam_second_acc)
  83. return window
  84.  
  85.  
  86. def proceed_process():
  87. email_Target = EMAIL_TARGET_FROMGUI.get()
  88. email_Amount = int(EMAIL_AMOUNT_FROMGUI.get())
  89. email_Message = EMAIL_MESSAGE_FROMGUI.get()
  90. ''' SENDING EMAIL '''
  91. email_send(my_email, counter, pw, email_Target, email_Amount, email_Message)
  92.  
  93.  
  94. def email_send(my_email, counter, pw, email_Target, email_Amount, email_Message):
  95. which_email = 0
  96. anfangT = time.time()
  97.  
  98.  
  99. if email_Target == "meine email":
  100. email_Target = "s.hawranke0601@gmail.com"
  101. else:
  102. pass
  103.  
  104. while counter <= email_Amount:
  105. if which_email == 3:
  106. which_email = 0
  107. else:
  108. pass
  109. mail = smtplib.SMTP("smtp.gmail.com", 587)
  110. # NICHT NOTWENDIG ! --> mail.ehlo()
  111. mail.starttls()
  112. mail.login(my_email[which_email], pw[0])
  113. subject = ("%d .e-mail" % (counter))
  114. email_Message_and_subject = "Subject: {} \n\n{}".format(subject, email_Message)
  115. mail.sendmail(my_email[which_email], email_Target, str(email_Message_and_subject))
  116. print(counter, "FINISHED")
  117. counter += 1
  118. which_email += 1
  119. endeT = time.time()
  120. print(endeT - anfangT)
  121. close_main_window(window)
  122.  
  123.  
  124.  
  125.  
  126. '''' PROGRAM START '''
  127. pw = []
  128. counter = 1
  129. my_email = ["email.spam1336@gmail.com", "email.spam1337@gmail.com", "email.spam1338@gmail.com"]
  130. read_password_out_of_file(pw)
  131.  
  132. ''' WINDOW SETTINGS '''
  133. window = Tk()
  134. window.title("Email spammer")
  135. window.geometry("700x190")
  136.  
  137.  
  138. ''' CREATING OF ALL LABELS AND BUTTONS '''
  139.  
  140. ''' First Label on GUI '''
  141. email_Target_Label = Label(window, text="Enter your targets email [meine email]", bg="limegreen",fg="blue", font=("Courier", 12))
  142. email_Target_Label.pack(side=TOP, fill=X)
  143. ''' First type window '''
  144. EMAIL_TARGET_FROMGUI = StringVar()
  145. type_Target = Entry(window, textvariable=EMAIL_TARGET_FROMGUI, bg="limegreen", fg="blue", font=("Courier", 12))
  146. type_Target.pack(fill=X)
  147.  
  148. ''' Second Label on GUI '''
  149. amount_Emails_Label = Label(window, text="Amount of emails ", bg="limegreen", fg="blue",font=("Courier", 12))
  150. amount_Emails_Label.pack(fill=X)
  151. ''' Second type window '''
  152. EMAIL_AMOUNT_FROMGUI = StringVar()
  153. type_Email_Amount = Entry(window, textvariable=EMAIL_AMOUNT_FROMGUI, bg="limegreen", fg="blue", font=("Courier", 12))
  154. type_Email_Amount.pack(fill=X)
  155.  
  156. ''' Third Label on GUI '''
  157. email_Message_Label = Label(window, text="Enter your email text message ", bg="limegreen", fg="blue",font=("Courier", 12))
  158. email_Message_Label.pack(fill=X)
  159. ''' Third type window '''
  160. EMAIL_MESSAGE_FROMGUI = StringVar()
  161. type_Email_Message = Entry(window, textvariable=EMAIL_MESSAGE_FROMGUI, bg="limegreen", fg="blue", font=("Courier", 12))
  162. type_Email_Message.pack(fill=X)
  163.  
  164. ''' Exit Button '''
  165. exit_Button = Button(window, text="Exit", bg="red", fg="white", command=close_main_window(window)).pack(side=BOTTOM,fill=X)
  166. ''' PROCEED Button '''
  167. proceed_Button = Button(window, text="Proceed", bg="green", fg="white", command=proceed_process).pack(side=BOTTOM,fill=X)
  168.  
  169. ''' SKIN '''
  170. toolbar(window)
  171. window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement