How to: Keylogger in Ubuntu

Logkeys is a gread program to record every keystroke.

To do so, enter in your terminal window:

sudo apt-get update
sudo apt-get install logkeys

You still need to download the right keymap for your keyboard under http://code.google.com/p/logkeys/wiki/Keymaps#Download
There is no US keyboard, as this is built into the program.

To run the keylogger, type

sudo logkeys –start –output=/home/user/Desktop/output.log –keymap=/home/user/Desktop/de.map

–start to start the program
–output=/   is the output file. This will be viewable with the administration password
–keymap   is the keymap file. If you have us keymap, simply type –us-keymap

That’s all, from now on, every keystroke will be recorded.

To stop, enter in the terminal:

sudo logkeys -k

This will stop the recording.
To view your log, simply type:

sudo gedit /home/user/Desktop/output.log

You always have to replace “user” by your name of the home folder.

 

The output will look something like this:

 

Logging started ...

2011-11-01 13:55:11+0100 > hello, how are you<LShft>?
2011-11-01 13:55:20+0100 > check this
2011-11-01 13:55:28+0100 > sudo k<BckSp>logkeys 

Logging stopped at 2011-11-01 13:55:44+0100
Advertisements

6 Responses to How to: Keylogger in Ubuntu

  1. […] How to: Keylogger in Ubuntu « Thoughtsdaily Bookmark It Hide Sites $$('div.d5117').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); […]

  2. James says:

    i did as you instructed but non of the commands like start etc work IAm using ubuntu 11.04 also a wireless logitech keyboard

  3. Leigh says:

    I don’t understand these instructions as I’m new to Ubuntu and find this far to complicated to understand. Could somebody possibly email me the instructions more simply please.

    Thanks,
    Leigh

  4. thoughtsdaily says:

    Hello @James @Leigh
    I updated the description,
    Please provide what exactly is not clear, I will then see what I can do.

    Greetings,
    Chris

    • Mudofar says:

      What commands should I run prior to :

      sudo apt-get update
      sudo apt-get install logkeys

      ?
      What should I update?

      • thoughtsdaily says:

        This is all you have to type in. sudo apt-get update refreshes the update list, so that you get the newest version of logkeys.
        You can also type sudo apt-get dist-upgrade.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: