Skip to content

Instantly share code, notes, and snippets.

@blues-man
Created September 9, 2016 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blues-man/48b6bdb94ebdef793a0e4ece80d96238 to your computer and use it in GitHub Desktop.
Save blues-man/48b6bdb94ebdef793a0e4ece80d96238 to your computer and use it in GitHub Desktop.
Android Bulk SMS
#!/bin/bash
# Do you get SMS spam from Telco spammers?
# Send them back (if you have free SMS) spam!
# ./sms_bomb.sh +4412345678910 OK 100
NUMBER=$1
BODY=$2
TIMES=$3
if [ -z "$NUMBER" -a -z "$BODY" ]; then
echo "Missing NUMBER and BODY"
echo "Example:\t ./sms_bomb.sh +4412345678910 OK 100"
exit
fi
if [ -z "$TIMES" ]; then
TIMES=1
fi
for i in $(eval echo {1..$TIMES}); do
adb shell am start -a android.intent.action.SENDTO -d sms:$NUMBER --es sms_body $BODY --ez exit_on_sent true
adb shell input keyevent 22
adb shell input keyevent 66
sleep 3
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment