Automated Keylogger (Python)

Hello guys!

Today we will take a look at an automated standalone keylogger written in Python. The keylogger has many of the cool features shown a while back in the “Python Keylogger” post, with some new stuff added in for good measure.

The keylogger is rather simple and can be run from command line. For those who missed the last post, one of the features allows to take screenshots when the client browses specific websites… adding to that, we implement a function to send automated emails containing the logs and screenshots captured.

Let’s take a look at the requirements…

Programming Environment

The program is written in Python. If you don’t have it, go ahead and download it from their website. I’m on version 2.7.5 as of right now. I have also made a tutorial showing how to setup Python in case you need it. 😉

These are the modules we will need (required):

Once you have installed the modules, go ahead and download the files.

Download

The zip comes with the source code and an already compiled executable – which lacks some of the features, however. If you want all of them, watch the video below and modify the code – that way you also learn more about how it works! 🙂

Click here to download the keylogger: [ DOWNLOAD ]

Keylogger Features

Automated Screenshots – this feature allows taking screenshots of specific websites, folders or files. The way it works is by checking the titlebar of the active window from a list (that you can choose). So if we choose “Facebook” every time it finds that word it will start taking X screenshots in Y intervals.

Why is this useful? Well, it can be used in login websites where the victims have they’re username saved and type their password, or just for obtaining targeted information.

Automated Emails – there’s not much to say about this one, it’s very simple: the keylogger will send you daily emails containing the logs and screenshots captured.

Windows Startup

If you want the keylogger to execute at startup, there’s a few ways to do it.

One is to add a new service, like so (as administrator, obviously):

sc create servicename binpath= keylog.exe

Or just add a new registry key using “regedit”, also as administrator.

If you have any questions about it, just leave a comment below…

Check out the video in high quality!

Enjoy!

5 thoughts on “Automated Keylogger (Python)”

  1. let’s say i have installed python on my pc and created this keylogger script , and I’ve send this (key logger as startup) to a victim’s pc and he doesn’t installed python on his pc . my question is Iam still able to receive pictures and the key logger is work correctly?!

    1. Hey man!
      You have to compile the keylogger so that it becomes a executable file… I show how to do this using PyInstaller on my videos –
      python series. This way the computer will be simply executing a native file (.exe)! 😉

    1. So the script attempts to delete files from the LOG_TOSEND array variable.
      This means that the script needs to have write access on that specific directory (where the script is located).
      Let’s say the keylogger happens to be in C:\Windows and is executed by a user without admin access, you can see how the keylogger would return an error because of access denied right?

      In any case, I plan to remake (or I guess update?) this keylogger soon since it has been a few years hehe
      Stay tuned! 😉

Leave a Reply to Python Cancel reply

Your email address will not be published. Required fields are marked *