Skip to content

Commit

Permalink
Merge branch 'pr-68'
Browse files Browse the repository at this point in the history
  • Loading branch information
NewEraCracker committed Oct 1, 2017
2 parents 006576f + 6ccddf9 commit dc1b36e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions src/cHLDos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,6 @@ private void bw_DoWork(object sender, DoWorkEventArgs e)
public class ICMP : cHLDos
{
private string _ip;
private int _port;

private Random _random;
private int _PingsPerThread;
private byte[] _BytesToSend;
private Ping _pingSender;
Expand All @@ -544,12 +541,11 @@ public class ICMP : cHLDos
/// <summary>
/// Create the ICMP object, because we need that, for reasons
/// </summary>
public ICMP(string ip, int port, int delay, bool RandomMessage, int PingsPerThread)
public ICMP(string ip, int delay, bool RandomMessage, int PingsPerThread)
{
this.Delay = delay;

this._ip = ip;
this._port = port;
this._PingsPerThread = PingsPerThread;
this._pingSender = new Ping();
this._RandomMessage = RandomMessage;
Expand Down
6 changes: 3 additions & 3 deletions src/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ private void Attack(bool toggle, bool on, bool silent = false)
}
if (protocol == Protocol.ICMP)
{
ts = new ICMP(sTargetIP, iPort, iDelay, chkMsgRandom.Checked, Convert.ToInt32((txtSLSpT.Text)));
ts = new ICMP(sTargetIP, iDelay, chkMsgRandom.Checked, iSockspThread);
}

if(ts != null)
Expand Down Expand Up @@ -935,7 +935,7 @@ private void tShowStats_Tick(object sender, EventArgs e)
}
if (protocol == Protocol.ICMP)
{
ts = new ICMP(sTargetIP, iPort, iDelay, chkMsgRandom.Checked, Convert.ToInt32((txtSLSpT.Text)));
ts = new ICMP(sTargetIP, iDelay, chkMsgRandom.Checked, iSockspThread);
}

if(ts != null)
Expand Down Expand Up @@ -979,7 +979,7 @@ private void tShowStats_Tick(object sender, EventArgs e)
}
if (protocol == Protocol.ICMP)
{
ts = new ICMP(sTargetIP, iPort, iDelay, chkMsgRandom.Checked, Convert.ToInt32((txtSLSpT.Text)));
ts = new ICMP(sTargetIP, iDelay, chkMsgRandom.Checked, iSockspThread);
}

if(ts != null)
Expand Down

0 comments on commit dc1b36e

Please sign in to comment.