Skip to content

Remotely control a server via Telegram C2 bot. Also useful as a controlled reverse proxy with restricted commands to your home environment

License

Notifications You must be signed in to change notification settings

davincico/Telegram-C2-bot

Repository files navigation

Telegram C2 bot

Remotely control a server via Telegram C2 bot

Installation

  • Create a telegram bot

  • Create a .env file, set BOT_API_KEY to the bot's api key and telegram_user_id to your telegram chat id

  • Install the following dependencies

pip install -r requirements.txt

Running

  • Run the code on target (Windows or Unix)
python3 ./c2.py
  • On the 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

Screenshots

/start for hostname, whoami and ipconfig info

alt text

/services for running processes

alt text

/screenshot

alt text

/viewFile InsertFilePath

alt text

About

Remotely control a server via Telegram C2 bot. Also useful as a controlled reverse proxy with restricted commands to your home environment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages