#!/bin/bash
# https://github.com/sc0rp1us/Good-scripts.sh
#
# Script syntaxis "./smsend ENTER YOU MESSANGE"
#
_LOGIN=YouLOGIN # Write here you login
_PASS=YouPASS # Write here you password
_MD5_PASS=$(echo -n ${_PASS} | md5sum | awk '{ print $1 }') #
_CEL=( 79000000001 79000000002 ) # Write here you cell number, or numbers for send
_MSG=${@}
for i in ${_CEL[@]}
do
_SMS=$(wget -qO- "https://smsc.ru/sys/send.php?login=${_LOGIN}&psw=${_MD5_PASS}&phones=${i}&mes=${_MSG}")
echo -e '\n#############################' >> /var/log/sms.log
date >> /var/log/sms.log
echo ${_SMS} >> /var/log/sms.log
done