Command and control a server via telegram bots.
-
Create a telegram bot
-
Edit main.py, set
BOT_API_KEY
to the bot's api key andtelegram_user_id
to your telegram id -
Install the following dependencies
pip install -r requirements.txt
-
Compile to standalone binary for easier deployment
pip install -U pyinstaller pyinstaller main.py
-
Deploy to target
-
Start telegram bot
/start - Start telegram bot
/viewFile <path> - Display the contents of a file
/listDir <path> - List the files in a directory
/downloadFile <path> - Download file from server to telegram
/services - List running services
/screenshot - Take screenshot of desktop
/webcam - Take image if webcam is supported
/video <duration(sec)> - Record video from webcam