Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
HACK3RY2J
GitHub Repository: HACK3RY2J/Anon-SMS
Path: blob/master/send.py
431 views
1
#!/usr/bin/env python
2
import threading
3
import string
4
import base64
5
import urllib.request
6
import urllib.parse
7
import os
8
import time
9
import sys
10
import random
11
12
try:
13
import requests
14
except ImportError:
15
print('Error !! : Some dependencies are not installed')
16
print('Error Occured!!!\nUse Non-Supported Version')
17
input('Press Any Key To Use Non-supported Version')
18
os.system('bash send.sh --sendsms')
19
20
# colors
21
yellow='\033[93m'
22
gren='\033[92m'
23
cyan='\033[96m'
24
pink='\033[95m'
25
red='\033[91m'
26
b='\033[1m'
27
W = '\033[0m'
28
colors = ['\033[1;31m', '\033[1;32m', '\033[1;33m', '\033[1;34m', '\033[1;35m', '\033[1;36m']
29
30
# The Credit For This Code Goes To Panda Hackers https://github.com/HACK3RY2J/
31
# And The Contributors Mentioned At https://github.com/HACK3RY2J/ANon-SMS/
32
# If You Wanna Take Credits, Please Look Yourself Again!!
33
34
def clr():
35
if os.name == 'nt':
36
os.system('cls')
37
else:
38
os.system('clear')
39
40
def banner():
41
clr()
42
logo = """
43
\033[0m████████████████████████████████████████████████████████████████████
44
\033[0m████\033[92m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒\033[0m████
45
\033[0m██\033[92m▒▒\033[0m██ \033[93m___ _ ______ _ __ \033[94m ______ _______ \033[0m██\033[92m▒▒\033[0m██
46
\033[0m██ \033[92m▒▒\033[0m██ \033[93m/ _ | / |/ / __ \/ |/ /_\033[94m__/ __/ |/ / __/ \033[0m██\033[92m▒▒ \033[0m██
47
\033[0m██ \033[92m▒▒\033[0m██ \033[93m/ __ |/ / /_/ / /__\033[94m_/\ \/ /|_/ /\ \ \033[0m██\033[92m▒▒ \033[0m██
48
\033[0m██ \033[92m▒▒\033[0m██\033[93m/_/ |_/_/|_/\____/_/|_/ \033[94m/___/_/ /_/___/ \033[0m██\033[92m▒▒ \033[0m██
49
\033[0m██ \033[92m▒▒\033[0m██ \033[91mV1.4 \033[0m██\033[92m▒▒ \033[0m██
50
\033[0m██ \033[92m▒▒\033[0m████████████████████████████████████████\033[92m▒▒ \033[0m██
51
\033[0m██ \033[92m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ \033[0m██
52
\033[0m██ \033[94mCoded by: https://github.com/HACK3RY2J \033[0m██
53
\033[0m██ \033[94mYoutube : https://www.youtube.com/c/PandaHackers \033[0m██
54
\033[0m██ \033[94mInstagram : https://instagram.com/Panda_Hackers_Official \033[0m██
55
\033[0m██ ██
56
\033[0m████████████████████████████████████████████████████████████████████
57
\033[92m▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
58
"""
59
print(logo)
60
print("\n")
61
62
63
def Track() :
64
TXTID = input("Enter Text ID of Anon-SMS \n\t -->>")
65
os.system(f"curl https://textbelt.com/status/{TXTID}")
66
input("\nPress Enter To Exit..")
67
print("\nThanks For Using Anon-Sms..")
68
print("\tWe Hope To See You Again\n Type bash Run.sh\n\tTo Run Again..")
69
input('\n\n\nThank You For Using Anon-SMS\nAfter v1.45 There are Ads Enabled in this Tool.\nPress Enter To Continue to View An Ad.\n')
70
os.system('figlet -f slant Just Kidding')
71
print("There's No Ads.\nThank you for Your Time...")
72
exit()
73
74
def update():
75
stuff_to_update = ['send.py', 'Run.sh', '.version']
76
for fl in stuff_to_update:
77
dat = urllib.request.urlopen("https://raw.githubusercontent.com/HACK3RY2J/Anon-SMS/master/" + fl).read()
78
file = open(fl, 'wb')
79
file.write(dat)
80
file.close()
81
print('\n\t\tUpdated Successfull !!!!')
82
print('\tRun The Script Again...')
83
exit()
84
85
clr()
86
banner()
87
try:
88
urllib.request.urlopen('https://www.google.com')
89
except Exception:
90
print("Error While Connecting To Internet!!!")
91
print("\tPlease Connect To Internet To Continue...\n")
92
input('Exiting....\n Press Enter To Exit....')
93
exit()
94
print('\tChecking For Updates...')
95
ver = urllib.request.urlopen("https://raw.githubusercontent.com/HACK3RY2J/Anon-SMS/master/.version").read().decode('utf-8')
96
verl = ''
97
try:
98
verl = open(".version", 'r').read()
99
except Exception:
100
pass
101
if ver != verl:
102
print('\n\t\tAn Update is Available....')
103
print('\tUpdating Anon-SMS...')
104
update()
105
print("Congratulation")
106
print("Your Version is Up-To-Date")
107
print('\n\tStarting Anon-SMS...\n')
108
try:
109
noti = urllib.request.urlopen("https://raw.githubusercontent.com/HACK3RY2J/Anon-SMS/master/.notify").read().decode('utf-8')
110
if len(noti) > 10:
111
print('\nNotification : ' + noti + '\n')
112
except Exception:
113
pass
114
115
116
117
while True:
118
print("\033[0mThis Tool Is Used To Send Anonymous Messages")
119
break
120
type = 0
121
try:
122
if sys.argv[1] == "track":
123
type = 1
124
except Exception:
125
type = 0
126
if type == 1:
127
print("Track The Anonymous Message You Sent Using This Tool.")
128
print()
129
Track()
130
elif type == 0:
131
while True:
132
print("Enter The Details Of The Person You Want To Send Anonymous Message")
133
cc = input("\tEnter Country Code (Without +) : ")
134
if '+' in cc:
135
tc = list(cc)
136
tc.remove('+')
137
cc = ''.join(tc)
138
cc = cc.strip()
139
if len(cc) >= 4 or len(cc) < 1:
140
print('\n\nInvalid Country Code..\n\t\tCountry Codes Are Generally 1-3 digits...\n')
141
continue
142
pn = input("Enter Phone Number : +" + cc + " ")
143
if len(pn) <= 6:
144
print('\n\nInvalid Phone Number..\n')
145
continue
146
numbe = cc + pn
147
if not numbe.isdigit():
148
print('\n\nPhone Number Must Consist Of Numbers Only\n')
149
continue
150
receiver = '+' + numbe
151
text = input("Enter Message to send : ")
152
153
resp = requests.post('https://textbelt.com/text',{
154
'phone' : receiver,
155
'message' : text ,
156
'key' : 'textbelt'
157
})
158
159
print(resp.json())
160
input('\n\n\nThank You For Using Anon-SMS\nAfter v1.45 There are Ads Enabled in this Tool.\nPress Enter To Continue to View An Ad.\n')
161
os.system('figlet -f slant Just Kidding')
162
print("There's No Ads.\nThank you for Your Time...")
163
break
164
if '"success" : true ' in resp.text:
165
print("\033[92m Message Sent Succesfully \033[0m")
166
input('\n\t\tPress Enter To Exit...')
167
banner()
168
exit()
169
if '"success" : false ' in resp.text:
170
print("\033[91m Error Occured")
171
print("\033[91m Failed to send SMS! ")
172
input('\n\t\tPress Enter To Exit...')
173
banner()
174
exit()
175
exit()
176
177