A simple discord bot for remote pc control
This python script integrates with discord to manage multiple devices via a discord server and chat is used as if it were a command line
- Usable via Discord, so from any device
- The client is designed to be cross-platform
- Allows you to access the camera and keyboard to check if someone is using your machine
- Allows you to execute commands directly in the system terminal, whatever it is
- Allows you to send and receive files from the client
- Shows on-screen messages on the client
- Manages client files (delete, read, encrypt, and decrypt with passwords)
Installation is not very complex
-
Create a discord botdi and invite it to a server, if you don't know how to do it follow this guide: https://www.ionos.com/digitalguide/server/know-how/creating-discord-bot/
-
Create a channel named: new-remote. In this channel you will receive the IDs of new devices
-
Back on the discord developer portal in your bot section, go to the bot section and hit “Reset Token,” this will generate a token that you need to enter into the program, so copy it
-
Download the main.py file from this repository
-
Open it and go to the last line of code where it says “YOUR TOKEN” and enter the token you copied in step 3
-
Install all dependencies with this command
pip install tkinter pillow cryptography pyinput pygame pyautogui discord requests
pip install pillow cryptography pyinput pygame pyautogui discord requests
In linux you must install "Gnome-screenshot" and "tk" whit your package manager
-
Start the script, if all goes well you should see the device ID on the screen and should arrive on the discord channel “new-remote” the code
-
To communicate with that client, you will have to create a channel with the same name as the client ID
-
Try typing into the chat with the “ping” client, if it answers “Pong!” then it works!!!
Available commands: ls | show files in current directory
cd | change directory
cmd | execute command in console
ping | Pong!
file | File management
message | show message on screen
network | Commands on network
system | Operations on hardaware (like cam and keyboard)
To send a file upload it to the channel and it will be downloaded
Yes, you can turn the python script into an executable and run it on computers even without python!
WARNING: You must be on windows in order to create the executable, otherwise a non-windows file will be created
-
Open a terminal in the path of the file main.py
-
Make sure you have all dopendencies installed, this will only serve the compile computer, not on the final executor (see step 4)
-
Download the file “windows compiler.bat” into it and run it
-
The program will compile the program according to what you requested
-
Once finished you can find it in the “dist” folder
This program is made for the purpose of managing OWN devices and is useful for those who do not have a public IP address to connect, I take no responsibility in case the code is used maliciously, USE IT ONLY ON YOUR MACHINES! Controlling without consent computers that are not yours is a crime!