This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmake_call.py
105 lines (74 loc) · 3.81 KB
/
make_call.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# PLEASE READ THIS FIRST
# This code is really old and is only here for nostalgia/historical purposes
# It's also Python 2.... so yeah, don't use it!
### teleflooder
### Utilize Twilio API to flood a phone number with calls
### Version 0.2.0
### GNU GPLv3 Licensed
import os
import thread
import time
from twilio.rest import Client
## Makes a call with Twilio to the target number using the source number
def make_call(target, source):
call = client.calls.create(
record=True,
to=target,
from_=source,
url="https://handler.twilio.com/twiml/EH83ede6e13d3f59c05a260b6b72dc407f"
)
print "Call placed"
## Twilio SID and Auth token. Store these as environment vars for security. Or, if you are modifying the script for personal use, simply enter these here as strings.
account_sid = os.environ["TWILIO_ACCOUNT_SID"]
auth_token = os.environ["TWILIO_AUTH_TOKEN"]
## Create a new Client object for authentication to Twilio
client = Client(account_sid, auth_token)
phonelogo = '''
#################################################################
## ##
## ##
## #### ##
## ######### * * * teleflooder * * * ##
## ##### ###### ##
## ##### ##### ##
## ##### ###### ##
## #### ###### ##
## #### ##### ##
## #### #### ##
## #### #### ##
## #### ##### ##
## #### ##### ##
## #### ##### ##
## #### ##### Licensed under GNU GPLv3 ##
## ##### ##### ##
## #### ##### ##
## #### ##### ##
## ##### ###### #### ##
## ##### ###### ######### ##
## ##### ###### ##### ###### ##
## ###### ###### ##### ##### ##
## ###### ######## ##### ##
## ###### ### ##### ##
## ###### #### ##
## ####### ### ##
## ####### #### ##
## ####### ##### ##
## ######### ##### ##
## ##################### ##
## ############## ##
## ##
## ##
#################################################################
'''
print phonelogo
## Input your Twilio number (coming soon: multiple numbers)
mynumber = raw_input("What is your Twilio number?")
## Input the number of your target
badnumber = raw_input("What is the number you want to flood?")
## Accept user input to run the flooder
raw_input("Press ENTER to run the flooder...")
## Run the script forever until the user quits
while True:
## Make a new thread for the call to run in, allowing the user to run multiple calls
thread.start_new_thread(make_call, (badnumber, mynumber))
time.sleep(10)