Advertisement
thefinn93

Tropo CID spoofing

Aug 15th, 2012
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.90 KB | None | 0 0
  1. import urllib2
  2.  
  3. def spoofCID():
  4.     if currentCall.channel == "TEXT":
  5.         n = ask("How shall we contact you?",{"choices":"[10 DIGITS]","timeout":"360"})
  6.     f = ask("What caller ID would you like to send? (10 digits, no punctuation)", {"choices":"[10 DIGITS]","timeout":"360"})
  7.     t = ask("What number would you like to call?", {"choices":"[10 DIGITS]","timeout":"360"})
  8.     if currentCall.channel == "TEXT":
  9.         say("Calling you, hang tight!")
  10.         hangup()
  11.         call(n.value, {"callerID":"150371511149"})
  12.     transfer("tel:+1" + t.value , {
  13.        "callerID": "1" + f.value,
  14.        "playvalue":"http://hosting.tropo.com/92514/www/audio/wikileakit.mp3",
  15.        "timeout":7200
  16.        })
  17.     stopCallRecording()
  18.  
  19. def voicemenuresponse(event):
  20.     if event.value == "0":
  21.         say("To spoof your caller ID, press one. To do something else, go write your own damn code. To hear these options again, press zero")
  22.         voicemenu()
  23.     elif event.value == "1":
  24.         spoofCID()
  25.     else:
  26.         say("Congratulations, you pressed " + event.value)
  27.         voicemenu()
  28.  
  29. def voicemenu():
  30.     ask("Please select an option. For a list of options, press zero", {
  31.         "choices":"[1 DIGIT]",
  32.         "mode":"dtmf",
  33.         "onChoice": voicemenuresponse,
  34.         "timeout":"360"
  35.         })
  36.  
  37. def textmenu():
  38.     ask("Please select an option. For a list of options, press zero", {
  39.         "choices":"[1 DIGIT]",
  40.         "onChoice": textmenuresponse,
  41.         "timeout":"360"
  42.         })
  43.  
  44. def textmenuresponse(event):
  45.     if event.value == "0":
  46.         say("To spoof your caller ID, press one. To do something else, go write your own damn code.")
  47.         textmenu()
  48.     elif event.value == "1":
  49.         spoofCID()
  50.     else:
  51.         say("Congratulations, you entered " + event.value)
  52.         textmenu()
  53.  
  54. answer()
  55.  
  56. if(currentCall.channel == "VOICE"):
  57.     spoofCID()
  58. else:
  59.     textmenu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement