Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- from fltk import *
- import base64
- import time
- import smtplib
- def authenticate(x):
- server = smtplib.SMTP('smtp.gmail.com:587')
- server.starttls()
- try:
- server.login(user.value(), passw.value())
- correct = fl_message("That is a correct user/pass combination")
- except:
- incorrect = fl_message("Wrong user/pass")
- def spam(x):
- count = 0
- server = smtplib.SMTP('smtp.gmail.com:587')
- server.starttls()
- server.login(user.value(), passw.value())
- count = int(howmany.value())
- while count > 0:
- server.sendmail(user.value(),recip.value(),context.value())
- count = count - 1
- print "You have", count , "message(s) remaining"
- if count == 0:
- finishing = fl_message("You have sucessfully sent all your messages")
- server.quit()
- def logmein(x):
- f = open('save.txt','r')
- for line in f:
- reopen = line.split(',')
- names[reopen[0]]=reopen[1]
- decoding = base64.encodestring(password.value())
- try:
- if decoding in names[username.value()]:
- fl_message("Welcome to the E-Mail bomber!")
- emailwin.show()
- Fl.run()
- else:
- fl_message("Wrong user/pass")
- except KeyError:
- fl_message("Wrong user/pass")
- win = Fl_Window(200,200,300,300,"By Hussain")
- emailwin = Fl_Window(0,0,400,300, "Email Spammer by PaYTHemONey")
- names = {}
- win.begin()
- username = Fl_Input(125,75,100,30,"Username :")
- password = Fl_Secret_Input(125,120,100,30,"Password :")
- login = Fl_Button(100,175,100,50,"Login")
- win.end()
- emailwin.begin()
- emailwin.hide()
- user = Fl_Input(80,15,100,30, "Email :")
- passw = Fl_Secret_Input(80,60,100,30, "Password :")
- validate = Fl_Button(200,35,90,40, "Validate")
- howmany = Fl_Input(90,110,60,30, "How many :")
- recip = Fl_Input(190,110,100,30, "To :")
- context = Fl_Multiline_Input(80,160,215,75, "Message :")
- send = Fl_Button(100,250,90,40, "Send")
- emailwin.end()
- validate.callback(authenticate)
- send.callback(spam)
- login.callback(logmein)
- Fl.scheme('plastic')
- win.show()
- Fl.run()
Add Comment
Please, Sign In to add comment