Welcome to Keylogger.py, a simple yet powerful Python-based keylogger designed for educational and ethical hacking purposes. This tool captures keystrokes across macOS, logs them into a local file, and can optionally send real-time updates to a Discord webhook. It serves as a great learning tool for cybersecurity enthusiasts and professionals alike.
Note: Use this tool responsibly and only in environments where you have permission to do so.
- Cross-Platform: Works seamlessly on macOS.
- Real-Time Logging: Captures keystrokes and logs them instantly.
- Discord Integration: Sends logs to a Discord webhook for real-time monitoring.
- Lightweight: Minimal resource usage, making it efficient.
- Educational Tool: Ideal for learning about keylogging and ethical hacking practices.
To get started, clone the repository to your local machine:
git clone https://github.com/Prithivi-001/keylogger.py.git
cd keylogger.py
Ensure you have Python 3.x installed on your machine. You can download it from the official Python website.
Install the required packages using pip:
pip install -r requirements.txt
To run the keylogger, execute the following command:
python keylogger.py
The keylogger will start capturing keystrokes and logging them to a local file. If configured, it will also send logs to your specified Discord webhook.
Before running the keylogger, you may want to configure a few settings:
-
Set the Discord Webhook: Open the
config.py
file and add your Discord webhook URL.DISCORD_WEBHOOK_URL = "YOUR_DISCORD_WEBHOOK_URL"
-
Log File Path: You can also change the path where logs are saved by modifying the
LOG_FILE
variable inconfig.py
.LOG_FILE = "path/to/your/logfile.txt"
-
Running in Background: To run the keylogger in the background, consider using a process manager or running it in a terminal session that can be detached.
Contributions are welcome! If you have suggestions or improvements, please fork the repository and submit a pull request. Here’s how you can contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes.
- Commit and push your changes.
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any inquiries or feedback, feel free to reach out:
- Email: your.email@example.com
- Twitter: @your_twitter_handle
You can find the latest releases of Keylogger.py here. Download the latest version and execute it to get started.
This project covers various topics in the field of cybersecurity and ethical hacking, including:
- Cybersecurity
- Discord Webhook Integration
- Ethical Hacking Techniques
- Information Security (Infosec)
- Keylogging Practices
- macOS Development
- Malware Analysis
- Offensive Security Projects
- Python Programming
- Red Teaming
- Reverse Engineering
- Surveillance Techniques
- Thanks to the Python community for providing the libraries that make this project possible.
- Special thanks to ethical hackers and cybersecurity professionals who continue to inspire and educate.
For those interested in learning more about keyloggers and ethical hacking, here are some recommended resources:
-
Books:
- "The Web Application Hacker's Handbook" by Dafydd Stuttard and Marcus Pinto
- "Metasploit: The Penetration Tester's Guide" by David Kennedy et al.
-
Online Courses:
-
Communities:
Keylogger.py is a great tool for learning and understanding the principles of keylogging and ethical hacking. Remember to always use it responsibly and ethically. Happy coding!