Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Calling from victim

  • Loading branch information...
commit 7f4d23b5442a1ded67a3e509b3ffc908dfa58548 1 parent 0785cc0
@rrooding rrooding authored
View
7 Gemfile.lock
@@ -113,6 +113,8 @@ GEM
railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
json (1.6.5)
+ jwt (0.1.4)
+ json (>= 1.2.4)
launchy (2.0.5)
addressable (~> 2.2.6)
libv8 (3.3.10.4)
@@ -223,6 +225,10 @@ GEM
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
+ twilio-ruby (3.5.1)
+ builder (>= 2.1.2)
+ jwt (>= 0.1.2)
+ multi_json (>= 1.0.3)
tzinfo (0.3.31)
uglifier (1.2.3)
execjs (>= 0.3.0)
@@ -267,5 +273,6 @@ DEPENDENCIES
shoulda (~> 2.11.3)
therubyracer
timecop
+ twilio-ruby
uglifier (>= 1.0.3)
uuid
View
4 app/models/victim.rb
@@ -11,6 +11,10 @@ def sanitize_mobile_numer
self.telephone_number = self.telephone_number.gsub(/[^\d]+/, "")
end
+ def call
+ Callr.new.call(self.telephone_number, self.name)
+ end
+
private
def generate_mp3
return unless self.filename.blank?
View
6 lib/ringr.rb → lib/callr.rb
@@ -1,6 +1,6 @@
require 'twilio-ruby'
-class Ringr
+class Callr
def initialize
account_sid = 'AC94571850a65e4706bb71b21cd9c6831a'
auth_token = '0cb6a2e4127d2cdca4c51fcad1dfd925'
@@ -15,5 +15,5 @@ def call(number,name)
end
end
-x = Ringr.new
-x.call("+31648121608")
+#x = Ringr.new
+#x.call("+31648121608")
Please sign in to comment.
Something went wrong with that request. Please try again.