C# Class GAS.Core.Attacks.AsyncFlooder

Advanced packet flooder. How does it work: ========================================== ========================================== ---Start starts Attack(i) in this.ThreadCount parallel threads i is internal attacker thread identifier =========================================== ---Attack inits variables for thread and and starts LoopExec synchronously or async =========================================== ---LoopExec checks attack state in loop and if attack is enabled: 1) connects if needed. if connect() was sync skips else exits to be called again from onconnected handler 2) runs passed delegates. If delegate was async(returned true) - exits to be reinvoked from handler else starts loop again after last delegate =========================================== ---ConnectWorker if not attacking or nothing to send - return to LoopExec send data while sync return async state =========================================== ---ReceivedWorker if !stream return to LoopExec read while attacking && !readLimit && connected && sync if read was async return async state => LoopExec will be restarted from handler =========================================== ---SentWorker if stream while attacking && !sendLimit && Connected randomize send data if send was async return asyncState => LoopExec => handler restart else while attacking send data if send was async return asyncState => LoopExec => handler restart =========================================== ===========================================
显示文件 Open project: old-kasthack-s-projects/GAS Class Usage Examples

Public Methods

Method Description
AsyncFlooder ( AttackInfo info, int threadCount = 1 ) : System
Start ( ) : void
Stop ( ) : void

Private Methods

Method Description
Attack ( int i ) : void
ConnectedWorker ( Socket s, SocketAsyncEventArgs b ) : bool
CreateSocket ( ) : Socket
DeafultSocketArgrs ( ) : SocketAsyncEventArgs
LoopExec ( Socket s, SocketAsyncEventArgs b ) : void
ReceivedWorker ( Socket s, SocketAsyncEventArgs b ) : bool
RefreshSendData ( int i ) : void
SentWorker ( Socket s, SocketAsyncEventArgs b ) : bool
SocketConnect ( int index ) : bool
UpdateArgs ( int i, AttackInfo info ) : void

Method Details

AsyncFlooder() public method

public AsyncFlooder ( AttackInfo info, int threadCount = 1 ) : System
info GAS.Core.AttackInformation.AttackInfo
threadCount int
return System

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void