Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
4,461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.73 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Diagnostics;
  5. using System.Text
  6. using System.Threading.Tasks;
  7. using Twilio
  8.  
  9. namespace CallBomber
  10. {
  11.     class Program
  12.     {
  13.         public static string accountsid = "***********";
  14.         public static string authtoken = "*********";
  15.         public static List(string) numbers = new List(string){new string() {"+15555555555", "+16665555555"}};
  16.         public static List(string) NumbersInUse = new List(string)();
  17.         public static string NumToCall = "";
  18.         static void Main(string[] args)
  19.         {
  20.             Console.WriteLine(" -- Telecommunication Scammer Flooder -- v1.0");
  21.            
  22.             Console.WriteLine("Enter the number to flood(+1 MUST BE IN FRONT!)");
  23.             NumToCall = Console.ReadLine();
  24.             Console.WrtieLine("Press Enter to start the flooder, Otherwise exit the application right now...")
  25.             Console.ReadLine();
  26.             Console.Clear();
  27.             TwilioClient.Init(accountsid, authtoken);
  28.            
  29.             var count = 1;
  30.             do
  31.             {
  32.                 Console.WriteLine("Starting Call Batch " + count.ToString() + " (" + numbers.Count | " Nums.)"
  33.                 /*not sure what this first word is*/(string num in numbers)
  34.                 {
  35.                     Call(num);
  36.                     System.Threading.Thread.Sleep(1000);
  37.                 }
  38.                 count++;
  39.                 System.Threading.Thread.Sleep(5000);
  40.             }while(true);
  41.         }
  42.        
  43.         static void Call(string FromNumber)
  44.         {
  45.             try
  46.             {
  47.                 var call = CallResource.Create(
  48.                     to: new PhoneNumber(NumToCall),
  49.                     /*not sure what this first word is*/ new PhoneNumber(FromNumber),
  50.                     record: true,
  51.                     url:""
  52.                 );
  53.                 Console.WriteLine(string.Format($"Started call to: {callto}, from: {FromNumber}"));
  54.             }
  55.             catch(Exception Ex)
  56.             {
  57.                 Console.WriteLine(string.Format($"Error on numner {FromNumber}: {e.Message}"));
  58.             }
  59.         }
  60.     }
  61.    
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement