-
Notifications
You must be signed in to change notification settings - Fork 27
/
sms.py
41 lines (39 loc) · 1.24 KB
/
sms.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
import requests, os, sys, time
print("\033[96mCoded by github.com/venkateshdudyala \033[0m ")
print("\033[93m Version 2.0 \033[0m")
print("\033[91m Checking dependencies... \033[0m")
time.sleep(2)
os.system("bash rq.sh")
def menu() :
print("\033[91m1.\033[0m \033[92mSend anonymous sms\033[0m")
print("\033[91m2.\033[0m \033[92mCheck status of sms\033[0m")
def control() :
ctrl = input("What you want to do : ")
if ctrl == "1" :
sms()
elif ctrl == "2" :
status()
else :
print("\033[91mInvalid number\033[0m")
def sms() :
phone_no = input("enter phone number : ")
msg = input("message to send : ")
resp = requests.post('https://textbelt.com/text',{
'phone' : phone_no,
'message' : msg ,
'key' : 'textbelt'
})
print(resp.text)
if '"success" : true' in resp.text :
print('Msg delivered! ')
if '"success" : false' in resp.text :
print("failed to send msg!\n Sorry!! Try again!! ")
def status() :
textID = input("Enter textID of sms : ")
os.system(f"curl https://textbelt.com/status/{textID}")
os.system("clear")
os.system("toilet -f smblock --filter border:metal 'ANONYMOUS_SMS' ")
print("\033[96mCoded by - MR. ROGUE")
print("Instagram - @cyber_king_of_internet")
menu()
control()