This Python script captures keylogs and stores them locally, allowing you to send keylog reports via email and upload them to Google Cloud Storage.
This project implements a keylogger in Python that captures keystrokes and provides two primary methods of storing and sharing the collected data: sending keylog reports via email and uploading them to Google Cloud Storage.
- Captures and logs keystrokes.
- Saves keylog reports locally in text files.
- Sends keylog reports via Gmail API.
- Uploads keylog reports to Google Cloud Storage.
Before using this project, ensure you have the following prerequisites:
- Python 3.x installed on your system.
- Google Cloud project with a valid bucket for Cloud Storage integration.
- Gmail API credentials (credentials.json) for sending keylog reports via email.
-
Clone this repository to your local machine:
git clone https://github.com/Indrajith-S/KeyLogger-Project.git
-
Navigate to the project directory:
cd KeyLogger-Project
-
Install the required Python packages:
pip install -r requirements.txt
-
Set up your Google Cloud project:
- Create a Google Cloud project and enable Cloud Storage API.
- Create a Google Cloud Storage bucket and note down its name.
- Download the service account JSON key file (storage.json) and place it in the project directory.
- Set up Gmail API:
- Create credentials in the Google Cloud Console and download credentials.json.
- Save credentials.json in the project directory.
- Run the keylogger script:
python keylogger.py
- Press Enter to start capturing keylogs.
- Press Ctrl + Shift + Backspace to stop capturing.