-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (33 loc) · 1.76 KB
/
Copy pathmain.py
File metadata and controls
33 lines (33 loc) · 1.76 KB
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
from proxy import *
import asyncio
import random
logo = """
███████╗██████╗ ███████╗███████╗███████╗███╗ ███╗███████╗
██╔════╝██╔══██╗██╔════╝██╔════╝██╔════╝████╗ ████║██╔════╝
█████╗ ██████╔╝█████╗ █████╗ ███████╗██╔████╔██║███████╗
██╔══╝ ██╔══██╗██╔══╝ ██╔══╝ ╚════██║██║╚██╔╝██║╚════██║
██║ ██║ ██║███████╗███████╗███████║██║ ╚═╝ ██║███████║
╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝╚══════╝
by csoftware
"""
print(logo)
print("Getting a list of proxies")
proxy_list = asyncio.run(get_proxy_list())
number = input("Number ~> ")
message = input("Message ~> ")
proxy_random = random.randint(0, len(proxy_list))
proxy_list = {"http": f'http://{proxy_list[proxy_random][0]}:{proxy_list[proxy_random][1]}', "https": f'http://{proxy_list[proxy_random][0]}:{proxy_list[proxy_random][1]}'}
try:
print("Sending...")
resp = requests.post('http://textbelt.com/text', {
'phone': number,
'message': message,
'key': 'textbelt',
}, proxies=proxy_list)
status = resp.json()
if status["success"] == False:
print(f"Error: {status['error']}")
else:
print("Success")
except:
print("Error")