joaovarelas / rev_shell_telegram

Rust program to execute commands remotely through Telegram Bot API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rev_shell_telegram

Rust program to execute commands remotely through Telegram Bot API.

Demo

Windows

Linux

Usage

  1. Install Rust: https://rustup.rs/

  2. Create a bot in Telegram: https://core.telegram.org/bots#how-do-i-create-a-bot

  3. Edit the following lines in src/main.rs and replace with your bot token and your userid:

static TOKEN: &str = "YOUR-BOT-TOKEN";
static BOT_ID: &str = "rust-bot-dev";
static PREFIX: &str = ".";
static MASTER: u64 = YOUR-TELEGRAM-USER-ID;
  1. Compile targeting Linux or Windows (compile.sh):
  • cargo rustc --release --target x86_64-unknown-linux-gnu

  • cargo rustc --release --target x86_64-pc-windows-gnu -- -C link-args=-mwindows

Dependencies

Disclaimer

For educational and ethical purposes. Expect bugs, crashes and ugly Rust code.

About

Rust program to execute commands remotely through Telegram Bot API.


Languages

Language:Rust 97.6%Language:Shell 2.4%