QQ message group bombing machine implemented by VB. NET (full source code)

Source: Internet
Author: User

Author: Dream Source: www.csdn.net

All the code is run and passed in Windows Server 2003 + Visual Studio.net 2003. At the beginning, the author wrote the question "QQ message Bomber", but after compilation, it was found that it was not a bombing, but it can be "group bombing". Later I read the code and found that it is indeed a "group bombing" machine. The comments at the beginning should be the author's intention or written mistake, these real code can help programmers learn more and better.

***************************************
Source code of QQ message bomber (VB. NET)
Wgscd 2005-1-1

***************************************
Public Class Form1
Inherits System. Windows. Forms. Form
Private Declare Function find1_wex Lib "user32.dll" Alias "find1_wexa" (ByVal hWnd1 As Int32, ByVal hWnd2 As Int32, ByVal lpsz1 As String, ByVal lpsz2 As String) As Int32
Private Declare Function GetWindowText Lib "user32.dll" Alias "GetWindowTextA" (ByVal hwnd As Int32, ByVal lpString As String, ByVal cch As Int32) As Int32
Private Declare Function FindWindow Lib "user32.dll" Alias "find0000wa" (ByVal lpClassName As String, ByVal lpWindowName As String) As Int32
Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hwnd As Int32, ByVal wMsg As Int32, ByVal wParam As Int32, ByVal lParam As Int32) As Int32
Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hwnd As Int32, ByVal wMsg As Int32, ByVal wParam As Int32, ByVal lParam As String) As Int32
Private Const WM_PASTE As Int32 = & H302
Private Const WM_SETTEXT As Int32 = & HC
Private Const WM_KEYDOWN As Int32 = & H100
Private Const WM_KEYUP As Int32 = & H101
Private Const WM_LBUTTONDOWN As Int32 = & H201
Private Const WM_LBUTTONUP As Int32 = & H202

Private Const WM_SHOWWINDOW As Int32 = & H18
Private Const SW_NORMAL As Int32 = 1
Private Declare Function ShowWindow Lib "user32.dll" (ByVal hwnd As Int32, ByVal nCmdShow As Int32) As Int32
Private Declare Function GetLastError Lib "kernel32.dll" () As Int32
Private Const SW_SHOWNOACTIVATE As Int32 = 4
Private Declare Function SetWindowText Lib "user32.dll" Alias "SetWindowTextA" (ByVal hwnd As Int32, ByVal lpString As String) As Int32
Private Const SW_HIDE As Int32 = 0
Private Const SW_SHOW As Int32 = 5

Dim sMess As String
Dim hwnd, hwnd2, hwnd3, I, iDelay As Int32
Dim hWndTalk (20), hWndEdit (20), hWndSend (20) As Int32
Dim MyThread As Threading. Thread
# Region "code generated by Windows Form Designer"

Public Sub New ()
MyBase. New ()

This call is required by the Windows Form Designer.
InitializeComponent ()

Add any initialization after InitializeComponent () is called

End Sub

Form override dispose to clear the component list.
Protected Overloads Overrides Sub Dispose (ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
Components. Dispose ()
End If
End If
MyBase. Dispose (disposing)
End Sub

Required by the Windows Form Designer
Private components As System. ComponentModel. IContainer

Note: The following procedure is required by the Windows Forms designer
You can use the Windows Form Designer to modify this process.
Do not use the code editor to modify it.

Friend WithEvents TextBox1 As System. Windows. Forms. TextBox
Friend WithEvents Label1 As System. Windows. Forms. Label
Friend WithEvents GroupBox1 As System. Windows. Forms. GroupBox
Friend WithEvents Label3 As System. Windows. Forms. Label
Friend WithEvents ButtonRefresh As System. Windows. Forms. Button
Friend WithEvents ButtonStart As System. Windows. Forms. Button
Friend WithEvents ButtonStop As System. Windows. Forms. Button
Friend WithEvents RadioButton1 As System. Windows. Forms. RadioButton
Friend WithEvents RadioButton2 As System. Windows. Forms. RadioButton
Friend WithEvents ListView1 As System. Windows. Forms. ListView
<System. Diagnostics. DebuggerStepThrough ()> Private Sub InitializeComponent ()
Me. ButtonRefresh = New System. Windows. Forms. Button
Me. ButtonStart = New System. Windows. Forms. Button
Me. TextBox1 = New System. Windows. Forms. TextBox
Me. Label1 = New System. Windows. Forms. Label
Me. GroupBox1 = New System. Windows. Forms. GroupBox
Me. ListView1 = New System. Windows. Forms. ListView
Me. RadioButton2 = New System. Windows. Forms. RadioButton
Me. RadioButton1 = New System. Windows. Forms. RadioButton
Me. ButtonStop = New System. Windows. Forms. Button
Me. Label3 = New System. Windows. Forms. Label
Me. GroupBox1.SuspendLayout ()
Me. SuspendLayout ()

ButtonRefresh

Me. ButtonRefresh. Location = New System. Drawing. Point (16, 80)
Me. ButtonRefresh. Name = "ButtonRefresh"
Me. ButtonRefresh. Size = New System. Drawing. Size (56, 24)
Me. ButtonRefresh. TabIndex = 0
Me. ButtonRefresh. Text = "refresh"

ButtonStart

Me. ButtonStart. Location = New System. Drawing. Point (16,116)
Me. ButtonStart. Name = "ButtonStart"
Me. ButtonStart. Size = New System. Drawing. Size (56, 24)
Me. ButtonStart. TabIndex = 1
Me. ButtonStart. Text = "start"

TextBox1

Me. TextBox1.AutoSize = False
Me. TextBox1.Location = New System. Drawing. Point (16, 21

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.