Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 17-06-2008, 09:04 PM   #1 (permalink)
Broken In
 
Join Date: Sep 2004
Location: Queen of the hills:Shimla
Posts: 160
Question Keylogger program.


Hey guys I am trying to make my own keylogger program in C and think that it has 3 steps:>
1. Execute an endless loop which constantly recieves keytaps and saves them into a file.
2. Schedule it to start everytime system starts.
3. Make it run in the background and recieve kaytaps on any window or program.

The first step was easy and second can be done by putting it in autoexec.bat.
But How to Do the third step. ?

Can anyone Help??
anshul is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 18-06-2008, 01:34 AM   #2 (permalink)
Broken In
 
Join Date: Sep 2006
Posts: 147
Default Re: Keylogger program.

Quote:
Originally Posted by anshul View Post
Hey guys I am trying to make my own keylogger program in C and think that it has 3 steps:>
1. Execute an endless loop which constantly recieves keytaps and saves them into a file.
2. Schedule it to start everytime system starts.
3. Make it run in the background and recieve kaytaps on any window or program.

The first step was easy and second can be done by putting it in autoexec.bat.
But How to Do the third step. ?

Can anyone Help??
are you using windows hook procedure for this??
which compiler are you using??give us more details!!

3>you can run it in the background but it wil be displayed in the processes list.
use windows hook procedures to get the key strokes.and to hide the process
2>u can also use registry to start a program as well as start up folderwhen system starts.
using multiple ways is always better than relying on single way.

atb
__________________
techtricks.co.in

portforwarding
xp-vista crossover connection
installing xp on vista notebooks
sreenidhi88 is offline  
Old 18-06-2008, 01:19 PM   #3 (permalink)
Wise Old Owl
 
hullap's Avatar
 
Join Date: Dec 2006
Location: delhi
Posts: 1,429
Default Re: Keylogger program.

isnt this illegal
reported
hullap is offline  
Old 18-06-2008, 03:02 PM   #4 (permalink)
Old is Gold
 
prem4u's Avatar
 
Join Date: Sep 2006
Posts: 84
Default Re: Keylogger program.

Quote:
Originally Posted by hullap View Post
isnt this illegal
reported

he is developing his own code...so why it is illegal....?
__________________
Ab kya likhe....??
prem4u is offline  
Old 18-06-2008, 03:13 PM   #5 (permalink)
Broken In
 
Roadripper's Avatar
 
Join Date: Mar 2008
Location: Mangalore/Manipal
Posts: 193
Default Re: Keylogger program.

Tahts gr8 man .. let us knw once ur done .. it shdnt get detected in the processes or in the add remove programs.....
Roadripper is offline  
Old 18-06-2008, 03:57 PM   #6 (permalink)
Broken In
 
pushkar's Avatar
 
Join Date: May 2006
Posts: 196
Default Re: Keylogger program.

Why should it be illegal? Keyloggers are used for constructive purposes also, like in offices.
pushkar is offline  
Old 18-06-2008, 06:14 PM   #7 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Keylogger program.

Keyloggers are not illegal. Learning to program one is probably the best way to learn windows hooking.

Now, you are way better off doing this stuff in windows c++. your "techniques" wont get you anywhere. If you dont know, learn it.

Quote:
1. Execute an endless loop which constantly recieves keytaps and saves them into a file.
This works, but there are better methods.
Quote:
2. Schedule it to start everytime system starts.
Okay, this is necessary, but you should hide it from task manager, etc.
Quote:
3. Make it run in the background and recieve kaytaps on any window or program.
Heh, you wont EVER get this done unless you learn c++. Enough said. There is something called GetAsyncKeyState which beginning keylogger programmers use.
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 19-06-2008, 12:44 AM   #8 (permalink)
Broken In
 
Join Date: Sep 2004
Location: Queen of the hills:Shimla
Posts: 160
Post Re: Keylogger program.

I am using Bloodshed Dev C++.I don't konw about the hook algorithm can You post some useful link and I will try to improvise.
anshul is offline  
Old 19-06-2008, 06:01 PM   #9 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Keylogger program.

google "keyboard hook"
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 08-03-2009, 11:17 AM   #10 (permalink)
Right Off the Assembly Line
 
raghavpande123's Avatar
 
Join Date: Jan 2009
Location: gurgaon
Posts: 16
Default Re: Keylogger program.

yes u can do 3 procedures and also GetAsyncKeyState can be used to trap keys (for beginners).
u can use windows.h file as header and then write down this code for hiding the window but task manager still shows it.
/*
HWND vanish;
AllocConsole();
vanish=FindWindowA("ConsoleWindowClass",'\0');
ShowWindow(vanish,0);
*/
this is the handle method.
__________________
MOTOROKR EM30 - IMPERFECTO simplified
PSP SLIM AND LITE 5.00M33
raghavpande123 is offline  
Old 08-03-2009, 12:12 PM   #11 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Keylogger program.

He needs kernelmode drivers for a good keylogger. BTW this is ten months old...
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 13-03-2009, 08:26 PM   #12 (permalink)
Broken In
 
Join Date: Sep 2004
Location: Queen of the hills:Shimla
Posts: 160
Smile Re: Keylogger program.

Dont worry friends.........I am still listening....and always open to suggestions......

Where can we get a offline copy of the entire MS API reference..........
Because I am trying my hands on disassembly nowadays..........
__________________
visit:
http://skiewpoint.blogspot.com

http://aestheticblasphemy.blogspot.com
anshul is offline  
Old 14-03-2009, 10:55 AM   #13 (permalink)
Right Off the Assembly Line
 
Join Date: Mar 2009
Posts: 2
Default Re: Keylogger program.

Did you check here?
http://msdn.microsoft.com/en-us/libr...49(VS.85).aspx
http://blogs.msdn.com/windowssdk/arc...betically.aspx
Rebecca Joiesh is offline  
Old 14-03-2009, 06:59 PM   #14 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Keylogger program.

@anshul

http://www.carabez.com/downloads/win32api_big.zip

Very famous... Win32 API Programmer's Reference Guide

I'm interested in disassembly as well I've done a bit of cracking, but moved on to game hacking - imho one of the best uses of disassembly
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 16-03-2009, 09:15 PM   #15 (permalink)
Broken In
 
Join Date: Sep 2004
Location: Queen of the hills:Shimla
Posts: 160
Smile Re: Keylogger program.

Well I also plan to learn the same thing someday............but would also want to learn it as a important factor in career.

So I would highly appreciate it if you could send me some useful links and resources about disassembly and cracking.
__________________
visit:
http://skiewpoint.blogspot.com

http://aestheticblasphemy.blogspot.com
anshul is offline  
Old 17-03-2009, 06:11 PM   #16 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Keylogger program.

^^
crackmes.de
tuts4you.com has lots of resources in disassembling and unpacking.
unpack.cn's english section.

extalia.com for game hacking
gamehacking.com
cheatengine.org/forum
__________________
If the Start Windows Restart when Windows starts check box is checked Windows Restart will start automatically every time Windows is started. - Actual excerpt from a windows program help file
dheeraj_kumar is offline  
Old 27-03-2009, 12:21 PM   #17 (permalink)
Right Off the Assembly Line
 
Join Date: Dec 2006
Posts: 9
Default Re: Keylogger program.

Quote:
3. Make it run in the background and recieve kaytaps on any window or program
You should know how to make a TSR (Terminate and stay resident).
grvpuri is offline  
Old 04-04-2009, 04:40 PM   #18 (permalink)
Right Off the Assembly Line
 
Join Date: Nov 2006
Posts: 48
Default Re: Keylogger program.

Long timeback it was written, but still it works
checkout this page
http://www.codeguru.com/cpp/w-p/syst...cle.php/c8709/
lilovirus is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keylogger ! rajkumar_personal QnA (read only) 32 05-04-2006 02:05 PM
Keylogger program futuristically_ancient QnA (read only) 11 01-06-2005 06:40 PM
new program in 'close program menu' list and more....... vishakadatta QnA (read only) 2 12-04-2005 11:33 PM
keylogger?????? arcticflare QnA (read only) 3 08-02-2005 02:54 PM
keylogger ishaan QnA (read only) 7 23-12-2004 02:18 PM

 
Latest Threads
- by Sujeet
- by clmlbx
- by Sujeet
- by icebags

Advertisement




All times are GMT +5.5. The time now is 11:03 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2