-
Notifications
You must be signed in to change notification settings - Fork 2
/
send.py
164 lines (150 loc) · 5.32 KB
/
send.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
#!/usr/bin/env python
import threading
import string
import base64
import urllib.request
import urllib.parse
import os
import time
import sys
import random
try:
import requests
except ImportError:
print('Error !! : Some dependencies are not installed')
print('Error Occured!!!\nUse Non-Supported Version')
input('Press Any Key To Use Non-supported Version')
os.system('bash send.sh --sendsms')
# colors
yellow='\033[93m'
gren='\033[92m'
cyan='\033[96m'
pink='\033[95m'
red='\033[91m'
b='\033[1m'
W = '\033[0m'
colors = ['\033[1;31m', '\033[1;32m', '\033[1;33m', '\033[1;34m', '\033[1;35m', '\033[1;36m']
# The Credit For This Code Goes To https://github.com/hackelite01/
# And The Contributors Mentioned At Mayank https://github.com/hackelite01/Anony-Msg
# If You Wanna Take Credits, Please Look Yourself Again!!
def clr():
if os.name == 'nt':
os.system('cls')
else:
os.system('clear')
def banner():
clr()
logo = """
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█░▄▄▀█░▄▄▀█▀▄▄▀█░▄▄▀█░██░█████░▄▀▄░█░▄▄█░▄▄▄
█░▀▀░█░██░█░██░█░██░█░▀▀░█▄▄██░█░█░█▄▄▀█░█▄▀
█░██░█▄██▄██▄▄██▄██▄█▀▀▀▄█████░███░█▄▄▄█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ """
print(logo)
print("\n")
def Track() :
TXTID = input("Enter Text ID of Anon-SMS \n\t -->>")
os.system(f"curl https://textbelt.com/status/{TXTID}")
input("\nPress Enter To Exit..")
print("\nThanks For Using Anony-Msg..")
print("\tWe Hope To See You Again\n Type bash Run.sh\n\tTo Run Again..")
input('\n\n\nThank You For Using Anony-Msg\nAfter v1.45 There are Ads Enabled in this Tool.\nPress Enter To Continue to View Our Channel.\n\Join The Channel And Share Plz')
os.system('xdg-open https://t.me/hackelite01')
print("Thank you for Your Time...")
exit()
def update():
stuff_to_update = ['send.py', 'Run.sh', '.version']
for fl in stuff_to_update:
dat = urllib.request.urlopen("https://raw.githubusercontent.com/hackelite01/Anony-Msg/master/" + fl).read()
file = open(fl, 'wb')
file.write(dat)
file.close()
print('\n\t\tUpdated Successfull !!!!')
print('\tRun The Script Again...')
exit()
clr()
banner()
try:
urllib.request.urlopen('https://www.google.com')
except Exception:
print("Error While Connecting To Internet!!!")
print("\tPlease Connect To Internet To Continue...\n")
input('Exiting....\n Press Enter To Exit....')
exit()
print('\tChecking For Updates...')
ver = urllib.request.urlopen("https://raw.githubusercontent.com/hackelite01/Anony-Msg/master/.version").read().decode('utf-8')
verl = ''
try:
verl = open(".version", 'r').read()
except Exception:
pass
if ver != verl:
print('\n\t\tAn Update is Available....')
print('\tUpdating Anony-Msg...')
update()
print("Congratulation")
print("Your Version is Up-To-Date")
print('\n\tStarting Anony-Msg...\n')
try:
noti = urllib.request.urlopen("https://raw.githubusercontent.com/hackelite01/Anony-Msg/master/.notify").read().decode('utf-8')
if len(noti) > 10:
print('\nNotification : ' + noti + '\n')
except Exception:
pass
while True:
print("\033[0mThis Tool Is Used To Send Anonymous Messages")
break
type = 0
try:
if sys.argv[1] == "track":
type = 1
except Exception:
type = 0
if type == 1:
print("Track The Anonymous Message You Sent Using This Tool.")
print()
Track()
elif type == 0:
while True:
print("Enter The Details Of The Person You Want To Send Anonymous Message")
cc = input("\tEnter Country Code (Without +) : ")
if '+' in cc:
tc = list(cc)
tc.remove('+')
cc = ''.join(tc)
cc = cc.strip()
if len(cc) >= 4 or len(cc) < 1:
print('\n\nInvalid Country Code..\n\t\tCountry Codes Are Generally 1-3 digits...\n')
continue
pn = input("Enter Phone Number : +" + cc + " ")
if len(pn) <= 6:
print('\n\nInvalid Phone Number..\n')
continue
numbe = cc + pn
if not numbe.isdigit():
print('\n\nPhone Number Must Consist Of Numbers Only\n')
continue
receiver = '+' + numbe
text = input("Enter Message to send : ")
resp = requests.post('https://textbelt.com/text',{
'phone' : receiver,
'message' : text ,
'key' : 'textbelt'
})
print(resp.json())
input('\n\n\nThank You For Using Anony-Msg\nAfter v1.45 There are Ads Enabled in this Tool.\nPress Enter To Continue to VieW Our Channel.\n\Join The Channel And Share Plz.')
os.system('xdg-open https://t.me/hackelite01')
print("Thank you for Your Time...")
break
if '"success" : true ' in resp.text:
print("\033[92m Message Sent Succesfully \033[0m")
input('\n\t\tPress Enter To Exit...')
banner()
exit()
if '"success" : false ' in resp.text:
print("\033[91m Error Occured")
print("\033[91m Failed to send SMS! ")
input('\n\t\tPress Enter To Exit...')
banner()
exit()
exit()