摘要
基于Python的黑客攻击类型有多种,其中应用程序黑客攻击是最常见的一类,它是基于用户运行的程序实施的攻击,而消息钩取是应用程序黑客攻击最常见、也是最难预防的一种手段。为完成消息钩取的实施,首先对Windows应用程序的基本概念的分析,并对基于应用程序的攻击方法进行分类探析,选择使用Python提供的ctypes模块对基于Windows应用程序进行键盘消息钩取展开大量模拟实验,通过对ctypes模块加载DLL,调用Win32 API的函数,指针传达等过程进行多次模拟后,完成消息钩取的实施过程,为系统管理员预防黑客攻击提供参考。
There are many types of Python-based hacking attacks. Application hacking is the most common type. It is an attack based on programs run by users. Message hooking is the most common and difficult means to prevent application hacking. In order to complete the implementation of message hooking, analyze first the basic concepts of Windows applications, and classify and analyze application-based attack methods. Choose to use the ctypes module provided by Python to perform keyboard message hooking on Windows-based applications. In the simulation experiment, after multiple simulations of the process of loading DLL on the ctypes module, calling Win32 API functions, and pointer transmission, the implementation process of message hooking is completed, which provides a reference for system administrators to prevent hacker attacks.
作者
邱晓鹏
QIU Xiaopeng(Longnan Teachers College,Longnan 742500)
出处
《办公自动化》
2021年第19期55-57,62,共4页
Office Informatization
关键词
应用程序接口
消息钩取
DLL注入
程序接口
键盘钩取
application program interface
message hooking
DLL injection
program interface
keyboard hooking