Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- from tkinter import *
- import tkinter as Tkinter
- import tkinter.ttk as ttk
- import time
- 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 spam_main_email():
- email_Target = "s.hawranke0601@gmail.com"
- email_Amount = 10
- email_Message = " "
- email_send(my_email, counter, pw, email_Target, email_Amount, email_Message)
- close_main_window(window)
- def spam_second_acc():
- email_Target = "email.spam1338@gmail.com"
- email_Amount = 10
- email_Message = " "
- email_send(my_email, counter, pw, email_Target, email_Amount, email_Message)
- close_main_window(window)
- def spam_test():
- email_Target = "s.hawranke0601@gmail.com"
- email_Amount = 1
- email_Message = "test spam"
- email_send(my_email, counter, pw, email_Target, email_Amount, email_Message)
- close_main_window(window)
- def close_main_window(window):
- return window.quit()
- 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 toolbar(window):
- ''' TOOLBAR '''
- toolbar = Menu(window)
- window.config(menu=toolbar)
- subMenu = Menu(toolbar)
- toolbar.add_cascade(label="PROFILES", menu=subMenu)
- subMenu.add_command(label="spam_main_email", command=spam_main_email)
- subMenu.add_separator()
- subMenu.add_command(label="spam_test", command=spam_test)
- subMenu.add_separator()
- subMenu.add_command(label="spam_second_acc", command=spam_second_acc)
- return window
- def proceed_process():
- email_Target = EMAIL_TARGET_FROMGUI.get()
- email_Amount = int(EMAIL_AMOUNT_FROMGUI.get())
- email_Message = EMAIL_MESSAGE_FROMGUI.get()
- ''' SENDING EMAIL '''
- email_send(my_email, counter, pw, email_Target, email_Amount, email_Message)
- def email_send(my_email, counter, pw, email_Target, email_Amount, email_Message):
- which_email = 0
- anfangT = time.time()
- if email_Target == "meine email":
- email_Target = "s.hawranke0601@gmail.com"
- else:
- pass
- while counter <= email_Amount:
- if which_email == 3:
- which_email = 0
- else:
- pass
- mail = smtplib.SMTP("smtp.gmail.com", 587)
- # NICHT NOTWENDIG ! --> 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, "FINISHED")
- counter += 1
- which_email += 1
- endeT = time.time()
- print(endeT - anfangT)
- close_main_window(window)
- '''' PROGRAM START '''
- pw = []
- counter = 1
- my_email = ["email.spam1336@gmail.com", "email.spam1337@gmail.com", "email.spam1338@gmail.com"]
- read_password_out_of_file(pw)
- ''' WINDOW SETTINGS '''
- window = Tk()
- window.title("Email spammer")
- window.geometry("700x190")
- ''' CREATING OF ALL LABELS AND BUTTONS '''
- ''' First Label on GUI '''
- email_Target_Label = Label(window, text="Enter your targets email [meine email]", bg="limegreen",fg="blue", font=("Courier", 12))
- email_Target_Label.pack(side=TOP, fill=X)
- ''' First type window '''
- EMAIL_TARGET_FROMGUI = StringVar()
- type_Target = Entry(window, textvariable=EMAIL_TARGET_FROMGUI, bg="limegreen", fg="blue", font=("Courier", 12))
- type_Target.pack(fill=X)
- ''' Second Label on GUI '''
- amount_Emails_Label = Label(window, text="Amount of emails ", bg="limegreen", fg="blue",font=("Courier", 12))
- amount_Emails_Label.pack(fill=X)
- ''' Second type window '''
- EMAIL_AMOUNT_FROMGUI = StringVar()
- type_Email_Amount = Entry(window, textvariable=EMAIL_AMOUNT_FROMGUI, bg="limegreen", fg="blue", font=("Courier", 12))
- type_Email_Amount.pack(fill=X)
- ''' Third Label on GUI '''
- email_Message_Label = Label(window, text="Enter your email text message ", bg="limegreen", fg="blue",font=("Courier", 12))
- email_Message_Label.pack(fill=X)
- ''' Third type window '''
- EMAIL_MESSAGE_FROMGUI = StringVar()
- type_Email_Message = Entry(window, textvariable=EMAIL_MESSAGE_FROMGUI, bg="limegreen", fg="blue", font=("Courier", 12))
- type_Email_Message.pack(fill=X)
- ''' Exit Button '''
- exit_Button = Button(window, text="Exit", bg="red", fg="white", command=close_main_window(window)).pack(side=BOTTOM,fill=X)
- ''' PROCEED Button '''
- proceed_Button = Button(window, text="Proceed", bg="green", fg="white", command=proceed_process).pack(side=BOTTOM,fill=X)
- ''' SKIN '''
- toolbar(window)
- window.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement