[译]通过键盘挂钩监视计算机使用情况
By robot-v1.0
本文链接 https://www.kyfws.com/applications/spying-on-computer-usage-via-keyboard-hooks-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 3 分钟阅读 - 1308 个词 阅读量 0[译]通过键盘挂钩监视计算机使用情况
原文地址:https://www.codeproject.com/Articles/1389/Spying-on-computer-usage-via-keyboard-hooks
原文作者:H. Joseph
译文由本站 robot-v1.0 翻译
前言
This program can be used to find out how your computer is being used while you are away.
该程序可用于查找您不在时如何使用计算机.
介绍(Introduction)
该程序可用于查找您不在时如何使用计算机.安装后,该程序将存储所有击键,并每天将包含这些击键的文本文件上载到FTP站点.(This program can be used to find out how your computer is being used while you are away. After installing, this program stores all the keystrokes and uploads a text file containing these strokes to an FTP site daily.)
如下所述,该程序有4个部分.一种是键盘钩.其次是文本文件FTP上传器.第三部分讨论寻找与互联网的连接.最后一个是安装程序.下面讨论这四个部分.(There are 4 sections to this program as described below. One is the keyboard hook. Second is the text file FTP uploader. The third section deals with looking for a connection to the internet. The last one is the installation program. The four sections are discussed below.)
I.键盘挂钩DLL.(I. The keyboard hook DLL.)
该程序的第一部分是键盘挂钩DLL.此DLL中没有新内容. DLL将所有击键存储在文本文件中(The first section of the program is a keyboard hook DLL. There is nothing new in this DLL. The DLL stores all the keystrokes in a text file in the)*系统(System)*夹.此DLL在CodeProject中的Keyboard hook DLL文章中有详细描述.(Folder. This DLL is described in detail in the Keyboard hook DLL article in CodeProject.)
二.将文本文件上传到FTP站点(II. Uploading a text file to a FTP site)
该程序只需将文本文件上传到(This program simply uploads the text file in the)*系统(system)*文件夹到FTP站点.(folder to a FTP site.)
三,寻找到互联网的连接(III. Looking for connection to the Internet)
该程序将查找与’net的连接.如果找到连接,它将调用该程序以上传在第二节中创建的文本文件.这是每次系统启动时执行的主程序.该程序将安装键盘挂钩,并检查注册表以查找文本文件是否今天已上传.如果没有,它将设置一个检查网络连接的计时器.(This program looks for a connection to the ‘net. If the connection is found, it calls the program to upload the text file created in section II. This is the main program that executes every time the system starts up. This program installs the keyboard hook and checks the registry to find if a text file has been uploaded today. If not, it sets a timer that checks for a network connection.)
IV.在系统中安装程序(IV. Installing the programs in your system)
该程序将3个部分安装到您的计算机上. I至III节的可执行文件存储为二进制资源.首次执行该程序后,将3个资源文件存储在(This program installs the 3 sections to your computer. The executables of sections I to III are stored as binary resources. After the first execution of this program, the 3 resource files are stored in the)系统(System)文件夹为(folder as)Servv22.dll(Servv22.dll),(,)Serv22.exe(Serv22.exe)和(and)Servpost.exe(Servpost.exe).(.)
我知道说明不尽如人意,因此请检查源文件.这些确实有助于显示该程序的工作原理.我知道此程序结构中有很多错误,请原谅我,因为我仍在学习VC ++.(I know the description is not as good as it could be, so please check the source files. These really help to show how this program works. I know that there are many faults in this program structure, so please excuse me, as I am still learning VC++.)
欢迎您对本文提出宝贵意见.(I welcome your valuable comments about this article.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
C++ VC6 Windows Win2K Visual-Studio Dev 新闻 翻译