Created
September 9, 2016 08:33
-
-
Save blues-man/48b6bdb94ebdef793a0e4ece80d96238 to your computer and use it in GitHub Desktop.
Android Bulk SMS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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