Skip to content

Instantly share code, notes, and snippets.

@Ceasar
Created April 4, 2013 19:35
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 Ceasar/5313452 to your computer and use it in GitHub Desktop.
Save Ceasar/5313452 to your computer and use it in GitHub Desktop.
Send a text to a number from multiple numbers.
##
# 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