LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-18-2005, 07:54 PM   #1
MDBlueIce
Member
 
Registered: Aug 2004
Distribution: Suse Linux 9.1
Posts: 47

Rep: Reputation: 15
Summer Project: Create keylogger


As a summer project, I would like to write a keylogger in C for a *nix system. I have researched a little, and all the sources I can find indicate that such a task must involve the kernel. I have no knowledge of the kernel, and would like to know if anyone knows wether this can be done without touching the kernel.
 
Old 07-19-2005, 01:48 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
That's depends on what "*nix" stands for.
If it's Solaris 10+, it would be just a few lines of dtrace scripting.
All other *nix and *nux would certainly require a more intrusive and complicate work.
 
Old 07-19-2005, 06:24 AM   #3
MDBlueIce
Member
 
Registered: Aug 2004
Distribution: Suse Linux 9.1
Posts: 47

Original Poster
Rep: Reputation: 15
Dag it, I'm on Slackware and that's what I was planning to write it for. What a pain. I know this sounds very unhackerish, but it is hard for me to learn new things on my own (from laziness, lack of time, ineptness) so I probably won't get to pull this off.
 
Old 07-19-2005, 08:25 AM   #4
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Give it a try. I can understand where you come from, but if you're really scared of programming tough things you may not get anywhere.

Why not start with simple, but challenging programs before attempting a larger one?

That's what I do and that's how I learn new things.
 
Old 07-19-2005, 08:53 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Maybe you could try a X keylogger at a first step ?
(require use of the Xlib C library instead of the Kernel)
 
Old 07-19-2005, 04:19 PM   #6
lowpro2k3
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Slackware
Posts: 340

Rep: Reputation: 30
I dont see how this could be done without the kernel, especially if you want to keylog what root is typing. I imagine you would need to be very comfortable with C and learning new API's should be a routine activity. No offence but you might be a little over your head.
 
Old 07-19-2005, 04:32 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
So which keystrokes do you want to log? Local console? Local console+X? SSH-ed in users?
 
Old 07-20-2005, 08:08 AM   #8
alred
Member
 
Registered: Mar 2005
Location: singapore
Distribution: puppy and Ubuntu and ... erh ... redhat(sort of) :( ... + the venerable bsd and solaris ^_^
Posts: 658
Blog Entries: 8

Rep: Reputation: 31
maybe you can further built on this simpler X app ::
http://www.stllinux.org/meeting_note...0619/xkey.html

can only sniff keys from already opened x apps or console i guess ...


i'm not sure is this what you are looking for though ...
hope this helps.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Idea for GAIM add-on (maybe a Summer of Code Project) jwinter Linux - Software 5 06-26-2005 06:49 PM
eclipse + CDT : how can i create a project which includes multi main( ) tclwp Programming 4 02-11-2005 08:27 AM
create GNU make Makefile from visualstudio project andreyk Programming 0 02-02-2005 10:25 AM
CVS: How to create a new project? prell Programming 2 10-18-2004 11:54 PM
How should I create an install script for my project (SaraB) tristanbob Linux - Software 1 10-15-2003 11:20 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration