
Telegram経由でシステムを遠隔操作する
Telegramボットを介してサーバーをコマンド&コントロールします。
Telegramボットを作成する
main.pyを編集し、BOT_API_KEYにボットのAPIキーを、telegram_user_idに自分のTelegram IDを設定する
以下の依存関係をインストールする
pip install -r requirements.txt
デプロイを容易にするため、スタンドアロンバイナリにコンパイルする
pip install -U pyinstaller
pyinstaller main.py
ターゲットにデプロイする
Telegramボットを起動する
/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




