Skip to content

Tomiwa-Ot/telegram-c2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Telegram C2

Command and control a server via telegram bots.

Installation

  • Create a telegram bot

  • Edit main.py, set BOT_API_KEY to the bot's api key and telegram_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

Usage

  /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