diff --git a/src/cHLDos.cs b/src/cHLDos.cs index 56047d9..442909e 100644 --- a/src/cHLDos.cs +++ b/src/cHLDos.cs @@ -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; @@ -544,12 +541,11 @@ public class ICMP : cHLDos /// /// Create the ICMP object, because we need that, for reasons /// - 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; diff --git a/src/frmMain.cs b/src/frmMain.cs index 2ae1507..52649ca 100644 --- a/src/frmMain.cs +++ b/src/frmMain.cs @@ -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) @@ -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) @@ -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)