Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
HACK3RY2J
GitHub Repository: HACK3RY2J/Anon-SMS
Path: blob/master/send.sh
431 views
1
#!/bin/bash
2
# Author: HACK3RY2J
3
# Description: Send anonymous text messages
4
5
# Colors
6
7
# Reset
8
NC='\033[0m' # Text Reset
9
10
BLINK=$(tput blink)
11
12
Red='\033[0;31m' # Red
13
Green='\033[0;32m' # Green
14
Yellow='\033[0;33m' # Yellow
15
Blue='\033[0;34m' # Blue
16
Purple='\033[0;35m' # Purple
17
BRed='\033[1;31m' # Red
18
BGreen='\033[1;32m' # Green
19
20
21
function banner() {
22
23
clear
24
echo -e " ████████████████████████████████████████████████████████████████████
25
████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████
26
██▒▒██ ___ _ ______ _ __ ______ _______ ██▒▒██
27
██ ▒▒██ / _ | / |/ / __ \/ |/ /___/ __/ |/ / __/ ██▒▒ ██
28
██ ▒▒██ / __ |/ / /_/ / /___/\ \/ /|_/ /\ \ ██▒▒ ██
29
██ ▒▒██/_/ |_/_/|_/\____/_/|_/ /___/_/ /_/___/ ██▒▒ ██
30
██ ▒▒██ V1.4██▒▒ ██
31
██ ▒▒████████████████████████████████████████▒▒ ██
32
██ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ██
33
██ Coded by: https://github.com/HACK3RY2J ██
34
██ Youtube : https://www.youtube.com/c/PandaHackers ██
35
██ Instagram : https://instagram.com/Panda_Hackers_Official ██
36
██ ██
37
████████████████████████████████████████████████████████████████████
38
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ "
39
40
echo " "
41
echo -e "$BGreen Hello User... $NC"
42
echo -e "$Green Welcome to Anon-SMS $NC"
43
echo -e "$Green With Anon-SMS You can send, Anonymous Text Message $NC"
44
sleep 1
45
echo -e "$Green Let's begin... $NC"
46
echo " "
47
sleep 2
48
read -n 1 -s -r -p " Press any key to continue"
49
}
50
51
function byemsg() {
52
53
54
echo -e "$Green Done... $NC"
55
sleep 1
56
echo -e "$Green Closing Anon-SMS... $NC"
57
sleep 1
58
echo " "
59
echo -e "$BGreen Bye User Lets Meet Next Time... $NC"
60
echo " "
61
exit
62
}
63
64
function VERSION() {
65
echo " "
66
echo -e "$BGreen Anon-SMS version: v1.4(Non-Supported)"
67
echo " "
68
}
69
70
function SENDSMS() {
71
echo ""
72
echo -e "$Red Enter Phone Number Like Country Code>Number"
73
echo -e "$Yellow For Example country code = $Blue 91 $Green And Phone Number = $Blue 5566778899"
74
echo -e "$Yellow Enter Number as > $Blue 915566778899"
75
echo -e "$Green Enter Phone Number With Country Code: $NC"
76
77
read PHONE
78
79
echo " "
80
echo -e "$Green Enter Message: $NC"
81
82
read SMS
83
84
85
SMSRESULT=$(curl -# -X POST https://textbelt.com/text --data-urlencode phone="$PHONE" --data-urlencode message="$SMS" -d key=textbelt)
86
87
if grep -q true <<<"$SMSRESULT"
88
89
then
90
91
echo " "
92
echo -e "$BGreen SUCCESS $NC"
93
echo " "
94
echo -e "$BGreen ---------------------------------------------- $NC"
95
echo "$SMSRESULT"
96
echo -e "$BGreen ---------------------------------------------- $NC"
97
echo " "
98
byemsg
99
else
100
101
echo " "
102
echo -e "$BRed FAIL $NC"
103
echo " "
104
echo -e "$BGreen ---------------------------------------------- $NC"
105
echo "$SMSRESULT"
106
echo -e "$BGreen ---------------------------------------------- $NC"
107
echo " "
108
byemsg
109
fi
110
}
111
112
function SMSCHECK() {
113
114
echo " "
115
echo -e "$Green Enter Text ID (example 12589): $NC"
116
117
read TEXTID
118
119
STATUSRESULT=$(curl -# https://textbelt.com/status/"$TEXTID")
120
121
echo " "
122
echo -e "$BGreen Final Response (JSON): $NC"
123
echo " "
124
echo -e "$BGreen ---------------------------------------------- $NC"
125
echo "$STATUSRESULT"
126
echo -e "$BGreen ---------------------------------------------- $NC"
127
echo " "
128
}
129
130
function helpfunction() {
131
132
echo " "
133
echo -e "$BGreen Available opions: $NC"
134
echo -e " "
135
echo -e "$BGreen Show this page: --help $NC"
136
echo -e "$BGreen Check text message status: --statuscheck $NC"
137
echo -e "$BGreen Send text message: --sendsms $NC"
138
echo -e "$BGreen Print version: --version $NC"
139
echo " "
140
echo " "
141
}
142
143
if [ "$1" == "--statuscheck" ]
144
145
then
146
banner
147
SMSCHECK
148
byemsg
149
150
elif [ "$1" == "--sendsms" ]
151
152
then
153
banner
154
SENDSMS
155
byemsg
156
157
elif [ "$1" == "--help" ]
158
159
then
160
helpfunction
161
162
elif [ "$1" == "--version" ]
163
164
then
165
VERSION
166
167
168
elif [ $# -le 0 ]
169
170
then
171
echo " "
172
echo -e "$Red No arguments specified! $NC"
173
echo -e "$Red Use$NC $BRed--help$NC $Red to display options.$NC"
174
echo " "
175
176
else
177
echo " "
178
echo -e "$Red No such argument available!$NC"
179
echo -e "$Red Use$NC $BRed--help$NC $Red to display options.$NC"
180
echo " "
181
182
fi
183
184