Hello and Welcome to ELITEZONE Forums ,

We appreciate if you register so you can enjoy
the full benefits of browsing viewing and using our board .

• Create Threads
• Reply to Threads
• View Links & Images
• Leave positive or negative feedbacks to a
• Chat and have conversations to other members and moderators.

It's free plus quick and easy !

So register now, and be one of us. HAPPY HACKING and SHARING.

Where all elites combine
PortalHomeFAQMemberlistSearchUsergroupsRegisterLog in
Welcome EZ Forumers, Please help us to spread this site and hacks. Don't be greedy. Admins will hire moderators soon if we reach 100 members. Thank you and God Bless EZ. More Power

Hello Elitezone Members:

We will rebuild our site from trash. Let's spread and continue to share the links.

Log in
Log in automatically: 
:: I forgot my password
Latest topics

Share | 

 Basic Keylogger Source Code

Go down 

Warnings :
0 / 50 / 5

Warning Level : 0/5
Posts : 6
Points : 18
Reputation : 0
Join date : 2011-12-22

PostSubject: Basic Keylogger Source Code   Thu Dec 22, 2011 3:43 pm

This tutorial will teach you to create a keylogger in c++ using vs 2008.
It can also be done in dev-c++, codegear c++ builder.
This keylogger wil save a log of the keys that are pressed on your HD.

Note: This tutorial is for educational purpose only.
Only put the keylogger on a computer where you got permission for.

Lets get started.

First we need to create a new project.
Click on 'File' > 'New' > 'Project'.
Now choose 'Win32 Console Application' and choose for name "Keylogger".

If you get the 'Win32 Application Wizzard' click on 'Next' and then select 'Empty project' under 'Additional options' and click on 'Finish'.

You should have a empty project now.
Now we will add a .cpp file.

Right click on 'Source Files' and take 'Add' > 'New Item'.

Now take 'C++ File(.cpp)' and name it Keylogger.

then click 'Add'.

Now open Keylogger.cpp and Write this in it:

Now write this:

Now we need to make a main function.(The main function will be the first that will be executed.)

Now under the latest code add this to make it look better:

Under that we will write our keylogger so it will also recognize special keys like the 'spacebar' and stuff. If you want to add some yourself here is a site where you can look up the ascii table. [You must be registered and logged in to see this link.]
int Save (int key_stroke, char *file) // Here we define our save function that we declared before.

Now we going to add Stealth to it. Under the latest code add again:

Now write:

Now, if you've done everything right, your full source code should look like below:
int Save (int key_stroke, char *file);
Back to top Go down
View user profile
Basic Keylogger Source Code
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Elitezone :: Sofwares & Hardwares :: Coding and Programming-
Jump to: