forked from apiwat59/SMS-Send-Nexmo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTermux.sh
More file actions
29 lines (23 loc) · 811 Bytes
/
Termux.sh
File metadata and controls
29 lines (23 loc) · 811 Bytes
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
#!/bin/bash
clear
{ IFS=$'\n'; for line1 in $(cat api_key.txt); do echo "$line1" ; done
IFS=$'\n'; for line2 in $(cat api_secret.txt); do echo "$line2" ; done }&> /dev/null
echo " Api_key=$line1 Api_secret=$line2 "
echo " Note:( Cancel please ctrl+c)"
echo " C0d3d by !GaSZa!"
read -p 'NUMBER Exp.66023456789 66=AreaCode :' userval
read -p 'From:' userval4
read -p 'Massage:' userval2
read -p 'How many Send Message:' userval3
for ((n=0;n<$userval3;n++))
do
{
curl -X POST https://rest.nexmo.com/sms/json \
-d api_key=$line1 \
-d api_secret=$line2 \
-d to=$userval \
-d from="$userval4" \
-d text="$userval2"
}&> /dev/null
done
echo "SUCCESS..."