Skip to content

DarioStar999/Discord-Remote-Execution-Keylogger-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Discord Remote Execution & Keylogger Bot (Educational Purpose Only)

This is a Python 🐍-based Discord bot that demonstrates remote system access, monitoring, and control capabilities. It can execute commands, log keystrokes, capture screenshots, and monitor system resources via Discord messages.

⚠️ CRITICAL LEGAL & ETHICAL WARNING

  • 📘 This project is created strictly for educational purposes and authorized security testing only.
  • 🔐 Using this software on systems you do not own or without explicit permission is illegal and a violation of privacy.
  • 🤝 This tool violates Discord's Terms of Service. Use responsibly and at your own risk.
  • 🚫 The developer assumes no responsibility for any misuse or damage caused by this software.
  • 🛡️ Only use in isolated environments like virtual machines that you fully control.

✨ Features

Feature Command Description
🔑 Keystroke Logging !getkey Logs all keyboard input to a file and sends it via Discord.
💻 Remote Code Execution !exc-<code> Executes arbitrary Python code on the target machine.
🖥️ System Command Execution !osExec-<command> Runs commands in the Windows command prompt.
📸 Multi-Monitor Screenshot !sc Captures and sends a screenshot of all monitors.
📊 System Information !sysInfo Retrieves detailed system and user information.
📈 Resource & Process Monitoring !getPcUsage Sends CPU/RAM/Disk usage and running process list.
💣 RAM Stress Test !exc-ramfucker-<bytes> Attempts to allocate specified RAM.
🛡️ Basic Anti-Debugger (Auto-start) Detects debuggers and attempts to interfere.
🔗 Auto-Start Persistence (main_autorun.py only) Copies itself to Windows Startup folder.

📁 Project Files

  • main.py - Standard version with all remote features.
  • main_autorun.py - Enhanced version that adds persistence by copying itself to Windows Startup folder on first run.

🚀 Installation & Setup

  1. Install Python 3.8+ on a Windows system.
  2. Create a Discord Bot at the Discord Developer Portal and enable MESSAGE CONTENT INTENT.
  3. Install required libraries:
    pip install discord.py pynput mss pillow psutil
  4. Add your bot token to the Python file:
    Find client.run('') and replace with client.run('YOUR_TOKEN_HERE')
  5. Run the bot:
    python main.py or python main_autorun.py

📝 Command Examples

  • !help - Shows all available commands
  • !exc-print("Hello World") - Executes Python code remotely
  • !exc-ramfucker-1073741824 - Attempts to allocate 1GB of RAM
  • !osExec-dir - Runs "dir" command in Windows CMD
  • !sc - Takes and sends a screenshot
  • !getPcUsage - Shows system resource usage

🔒 Important Security Notes

  • 🔒 All collected data (keystrokes, screenshots) is saved to C:\S2\ on the target machine.
  • ⚠️ The bot token provides full control over your Discord bot - keep it secret!
  • 🛡️ main_autorun.py will automatically install itself to run on system startup.
  • 📚 This project demonstrates concepts in remote access, system monitoring, and persistence mechanisms for educational purposes.

Disclaimer: This tool is for educational demonstration only. Always obtain explicit written permission before testing on any system. Unauthorized use may violate laws and platform terms of service.

About

This Python script demonstrates a Discord bot with remote code execution and keylogging features.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors