Code Monkey home page Code Monkey logo

keylogger's Introduction

keyboard Event Logger for Windows

What is a Key Logger?

A keylogger is a type of software or hardware device that records every keystroke made on a computer keyboard. It is designed to run in the background of a computer system without being detected by the user, and it can capture all the data that is entered on the keyboard, including usernames, passwords, credit card numbers, and other sensitive information.

Why is it used?

Keyloggers can be used for both legitimate and illegitimate purposes. For example, some companies use keyloggers to monitor employee activity on company-owned computers, while hackers may use keyloggers to steal sensitive information for financial gain or other malicious purposes.

Requirements

  1. python3: - You should have python3 installed in your system. You can download it from the official website. (https://www.python.org/downloads/)

  2. keyboard module: - The keylogger detects keystrokes with the help of keyboard module. Use the command below to install the keyboard module: -

pip install keyboard

Usage

To use the program, simply run the keylogger.py file in Python.

python keylogger.py

In order to actually implement it, the first step will be to create an executable file. Below are the steps to convert your python file into a executable file with the help of pyinstaller. PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app without installing a Python interpreter or any modules.

Step 1: First install pyinstaller package with the help of command given below: -

pip install pyinstaller

Step 2: Create a .exe file with the help of pyinstaller: -

pyinstaller -F --noconsole keylogger.py

This command will create a standalone executable file from a Python script named name.py. For more information, visit https://pyinstaller.org/en/stable/usage.html#options

Limitations

  1. The log file is created only after the program execution is terminated.
  2. The log file is stored on the targets' local machine. So, in order to retrieve the log file, you should have phsyical access to the target machine.

Output

Upon starting the program, a "log.txt" file will be created. This text file will contain a log of all the keyboard events, including the time at which they were recorded and the key that was pressed or released. Here is an example of what "log.txt" looks like: -

My Image

Acknowledgements

  1. Keyboard module: https://github.com/boppreh/keyboard

  2. Time module: https://www.geeksforgeeks.org/python-time-module/

keylogger's People

Contributors

shaunak-natu avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.