Attribute VB_Name = "modSysKey"
' /----------------------------------------------------------' | 屏蔽 NT 系统的下所有按键消息 v2.0 |
' | ================================ |
' | Author : Hackor(阿国哥) |
' | Email : hackor@yeah.net |
' | Website: ://www.aguoge.com |
' | ~~~~~~~~~~ 请保留作者原版信息 ~~~~~~~~~~~ |
' | |
' | Usage: |
' | Call LockKeyboard(T | F ) |
' | 返回: True 成功;False 失败 |
' | |
' | Call GetKeyboardState |
' | 返回: True 已锁定 |
' | |
' | |
' | 实现原理: |
' | 锁定 Ctrl+Alt+Del 使用远程线程、代码注入及子类化技术 |
' | 其它键盘消息使用普通钩子技术 |
' | |
' | 本模块向 VB 程序员展示远程线程、代码注入等似乎被列入 |
' | 只有Delphi、VC程序员才可能使用的技术,同时目前诸多木马 |
' | 也同样大量使用这些技术。注入的方式比 Dll 钩入更加隐蔽。 |
' | 注入后无进程、无文件。 |
' \----------------------------------------------------------/
Option Explicit
'注意,以下所有双版本的API均声明成了 UNICODE 版。 并且许多地方与VB的API浏览器生成的代码有所不同。
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Long, lpBuffer As Any, ByVal nSize As Long, _ lpNumberOfBytesWritten As Long) As Long
Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Long, lpBuffer As Any, ByVal nSize As Long, _ lpNumberOfBytesWritten As Long) As Long
Private Declare Function GlobalAddAtom Lib "kernel32" Alias "GlobalAddAtomW" (ByVal lpString As Long) As Integer
Private Declare Function GlobalDeleteAtom Lib "kernel32" (ByVal nAtom As Integer) As Integer
Private Declare Function GlobalFindAtom Lib "kernel32" Alias "GlobalFindAtomW" (ByVal lpString As Long) As Integer
Private Const TH32CS_SNAPPROCESS = 2
来源:www.upschool.com.cn
作者:阿国哥
关键字:锁定 Ctrl+Alt+Del,VB使用远程线程,代码注入,子类化技术
发表日期:2007-2-8 10:47:50
网页显示有限 阅读全文请下载本文完整版WORD文档
上一篇:用VB做进程管理器 下一篇:VB 让文本框只能输入数字
1.
完美屏蔽Ctrl+Alt+Del 键(VB注入,子类,远程演示)(1)
2.
完美屏蔽Ctrl+Alt+Del 键(VB注入,子类,远程演示)(2)
3.
完美屏蔽Ctrl+Alt+Del 键(VB注入,子类,远程演示)(3)
4.
完美屏蔽Ctrl+Alt+Del 键(VB注入,子类,远程演示)(4)
5.
完美屏蔽Ctrl+Alt+Del 键(VB注入,子类,远程演示)(5)
共5页
9 7 [
1] [
2] [
3] [
4] [
5]
8 :>