Click here to Skip to main content
6,295,667 members and growing! (13,303 online)
Email Password   helpLost your password?
Web Development » Applications & Tools » Tools with source code     Intermediate

Spying on computer usage via keyboard hooks

By H. Joseph

This program can be used to find out how your computer is being used while you are away.
VC6Win2K, Dev
Posted:22 Sep 2001
Views:76,011
Bookmarked:40 times
Announcements
Loading...
 
Search    
Advanced Search
printPrint   Broken Article?Report       add Share
  Discuss Discuss   Recommend Article Email
17 votes for this article.
Popularity: 3.90 Rating: 3.17 out of 5
1 vote, 12.5%
1

2
1 vote, 12.5%
3
1 vote, 12.5%
4
5 votes, 62.5%
5

Introduction

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.

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. The keyboard hook 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 Folder. This DLL is described in detail in the Keyboard hook DLL article in CodeProject.

II. Uploading a text file to a FTP site

This program simply uploads the text file in the system folder to a FTP site.

III. Looking for connection to the Internet

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. Installing the programs in your system

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, Serv22.exe and Servpost.exe.

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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

H. Joseph


Member

Location: United States United States

Other popular Applications & Tools articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 12 of 12 (Total in Forum: 12) (Refresh)FirstPrevNext
GeneralCharacters come in different order sometimes Pinmembernavinkaus5:31 19 Jan '06  
GeneralWM_KEYDOWN & WM_KEYUP PinmemberGaiza10:47 29 Jan '04  
GeneralKeyboard Hook Pinmemberpercyvimal22:13 4 Sep '03  
Generalto hirosh! PinmemberSage_Archer3:49 16 Feb '03  
GeneralHow to get the Window Title PinsussAnonymous11:12 5 Sep '02  
GeneralRe: How to get the Window Title PinmemberCarlos Antollini11:30 5 Sep '02  
GeneralRe: How to get the Window Title PinsussAnonymous4:07 6 Sep '02  
GeneralRe: How to get the Window Title Pinmemberblongtq0:02 8 Aug '03  
GeneralI am unable to see the process in task bar ? PinmemberAnonymous7:42 5 Jun '02  
GeneralUnHooked when keypressed and window not in focus ? PinmemberAnonymous1:27 19 Feb '02  
GeneralRe: UnHooked when keypressed and window not in focus ? PinmemberFordy10:42 11 Mar '02  
GeneralRe: UnHooked when keypressed and window not in focus ? PinsussAnonymous7:45 22 Jul '02  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 22 Sep 2001
Editor: Smitha Vijayan
Copyright 2001 by H. Joseph
Everything else Copyright © CodeProject, 1999-2009
Web10 | Advertise on the Code Project