-
Notifications
You must be signed in to change notification settings - Fork 0
/
blaster.py
54 lines (43 loc) · 1.11 KB
/
blaster.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
import smtplib
import time
def blast(sender,receivers,body,count,server):
smtpObj = smtplib.SMTP(server)
x = 1
while x < count:
smtpObj.sendmail(sender, receivers, body)
x += 1
time.sleep(.5)
carrierlist = [
"AT&T",
"T-Mobile",
"Verizon",
"Sprint",
"Xfinity",
"Virgin",
"Tracfone",
"Google Fi"
]
x = 1
for i in carrierlist:
print(str(x) + ". ", i)
x += 1
carriervar = (input("\nSelect phone carrier: "))
sender = (input("\nPlease enter from address: "))
receivervar = (input("\nEnter target phone number: "))
body = (input("\nWhat's the message: "))
server = (input("\nSMTP server address - Blank for localhost: "))
count = int((input("\nNumber of messages to send: ")))
carrierdict = {
"1": "txt.att.net",
"2": "tmomail.net",
"3": "vtext.com",
"4": "pm.sprint.com",
"5": "vtext.com",
"6": "vmobl.com",
"7": "mmst5.tracfone.com",
"8": "msg.fi.google.com"
}
receivers = receivervar + "@" + carrierdict[carriervar]
if server == '':
server = 'localhost'
blast(sender, receivers, body, count, server)