-
Notifications
You must be signed in to change notification settings - Fork 0
/
send.sh
181 lines (139 loc) · 5.45 KB
/
send.sh
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
#!/bin/bash
# Description: Send anonymous text messages
# Colors
# Reset
NC='\033[0m' # Text Reset
BLINK=$(tput blink)
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
Blue='\033[0;34m' # Blue
Purple='\033[0;35m' # Purple
BRed='\033[1;31m' # Red
BGreen='\033[1;32m' # Green
function banner() {
clear
echo -e " ████████████████████████████████████████████████████████████████████
████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒████
██▒▒██ ___ _ ______ _ __ ______ _______ ██▒▒██
██ ▒▒██ / _ | / |/ / __ \/ |/ /___/ __/ |/ / __/ ██▒▒ ██
██ ▒▒██ / __ |/ / /_/ / /___/\ \/ /|_/ /\ \ ██▒▒ ██
██ ▒▒██/_/ |_/_/|_/\____/_/|_/ /___/_/ /_/___/ ██▒▒ ██
██ ▒▒██ V1.4██▒▒ ██
██ ▒▒████████████████████████████████████████▒▒ ██
██ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ██
██ ██
██ ██
██ ██
██ ██
████████████████████████████████████████████████████████████████████
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ "
echo " "
echo -e "$BGreen Hello User... $NC"
echo -e "$Green Welcome to Anon-SMS $NC"
echo -e "$Green With Anon-SMS You can send, Anonymous Text Message $NC"
sleep 1
echo -e "$Green Let's begin... $NC"
echo " "
sleep 2
read -n 1 -s -r -p " Press any key to continue"
}
function byemsg() {
echo -e "$Green Done... $NC"
sleep 1
echo -e "$Green Closing Anon-SMS... $NC"
sleep 1
echo " "
echo -e "$BGreen Bye User Lets Meet Next Time... $NC"
echo " "
exit
}
function VERSION() {
echo " "
echo -e "$BGreen Anon-SMS version: v1.4(Non-Supported)"
echo " "
}
function SENDSMS() {
echo ""
echo -e "$Red Enter Phone Number Like Country Code>Number"
echo -e "$Yellow For Example country code = $Blue 91 $Green And Phone Number = $Blue 5566778899"
echo -e "$Yellow Enter Number as > $Blue 915566778899"
echo -e "$Green Enter Phone Number With Country Code: $NC"
read PHONE
echo " "
echo -e "$Green Enter Message: $NC"
read SMS
SMSRESULT=$(curl -# -X POST https://textbelt.com/text --data-urlencode phone="$PHONE" --data-urlencode message="$SMS" -d key=textbelt)
if grep -q true <<<"$SMSRESULT"
then
echo " "
echo -e "$BGreen SUCCESS $NC"
echo " "
echo -e "$BGreen ---------------------------------------------- $NC"
echo "$SMSRESULT"
echo -e "$BGreen ---------------------------------------------- $NC"
echo " "
byemsg
else
echo " "
echo -e "$BRed FAIL $NC"
echo " "
echo -e "$BGreen ---------------------------------------------- $NC"
echo "$SMSRESULT"
echo -e "$BGreen ---------------------------------------------- $NC"
echo " "
byemsg
fi
}
function SMSCHECK() {
echo " "
echo -e "$Green Enter Text ID (example 12589): $NC"
read TEXTID
STATUSRESULT=$(curl -# https://textbelt.com/status/"$TEXTID")
echo " "
echo -e "$BGreen Final Response (JSON): $NC"
echo " "
echo -e "$BGreen ---------------------------------------------- $NC"
echo "$STATUSRESULT"
echo -e "$BGreen ---------------------------------------------- $NC"
echo " "
}
function helpfunction() {
echo " "
echo -e "$BGreen Available opions: $NC"
echo -e " "
echo -e "$BGreen Show this page: --help $NC"
echo -e "$BGreen Check text message status: --statuscheck $NC"
echo -e "$BGreen Send text message: --sendsms $NC"
echo -e "$BGreen Print version: --version $NC"
echo " "
echo " "
}
if [ "$1" == "--statuscheck" ]
then
banner
SMSCHECK
byemsg
elif [ "$1" == "--sendsms" ]
then
banner
SENDSMS
byemsg
elif [ "$1" == "--help" ]
then
helpfunction
elif [ "$1" == "--version" ]
then
VERSION
elif [ $# -le 0 ]
then
echo " "
echo -e "$Red No arguments specified! $NC"
echo -e "$Red Use$NC $BRed--help$NC $Red to display options.$NC"
echo " "
else
echo " "
echo -e "$Red No such argument available!$NC"
echo -e "$Red Use$NC $BRed--help$NC $Red to display options.$NC"
echo " "
fi