TGReaper is a powerful open-source CLI tool designed for cybersecurity professionals and researchers to hunt down, analyze, and monitor potentially malicious Telegram bots. It automates the process of infiltrating Telegram bots, capturing and forwarding their messages, and exporting findings for further analysis. TGReaper is intended for educational and research purposes only.
- Bot Token Validation: Quickly validate and analyze Telegram bot tokens.
- Infiltration: Automate the process of sending commands and capturing messages from Telegram bots.
- Message Forwarding: Forward all messages from a target chat to your own account for safe analysis.
- Export Data: Export captured messages and logs to files for further investigation.
- Interactive CLI: User-friendly interactive mode with animated banners, colored output, and menu-driven workflow.
- Session Management: Resume, stop, and clear operations as needed.
- Environment Variable Support: Securely manage your Telegram API credentials using a
.envfile.
TGReaper is intended for educational and security research purposes only.
- Use responsibly and only on systems you own or have explicit permission to test.
- The authors are not responsible for any misuse or legal consequences.
- Using this tool may violate Telegram's Terms of Service and could result in account bans.
- Python 3.7+
- Telegram account and API credentials (get them here)
git clone https://github.com/sumitshah00/tgreaper.git
cd tgreaperpip install -r requirements.txt --break-system-packages
- Go to https://my.telegram.org and log in.
- Click API Development Tools.
- Fill in:
- App title: e.g. TGReaper
- Short name: e.g. ghostdinit
- Click Create application to get your API ID and API Hash.
Create a .env file in your project root:
TELEGRAM_API_ID=your_api_id
TELEGRAM_API_HASH=your_api_hash
TELEGRAM_PHONE=+1234567890TELEGRAM_API_ID: Your Telegram API IDTELEGRAM_API_HASH: Your Telegram API HashTELEGRAM_PHONE: Your phone number (with country code)
python main.py --helppython main.py --versionpython main.py --interactiveOr simply:
python main.py- Start the tool:
python main.py
- Enter the malicious bot token and chat ID when prompted.
- Use the menu to:
- Start attack (validate and infiltrate bot)
- Forward all messages
- Stop/resume operations
- Export captured data
- Clear session logs
- View help
- Exit
$python main.py
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣤⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⠻⣥⠙⢦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡿⠀⡿⠻⣆⠙⠦⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⡄⠁⠀⠘⣆⡔⢶⣆⠉⢷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⡄⠀⠀⡿⢿⡀⠉⠀⠞⠹⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡿⡄⠀⡇⠘⣧⣀⣀⣀⠀⠻⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⠃⠁⢀⣠⠞⣹⢿⠻⡟⢿⣿⣯⢳⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⠃⠶⠒⠉⠁⣴⠇⢸⡇⡟⡷⢬⡙⠎⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⠇⢀⣠⣄⡀⠚⠁⠀⠈⠀⠀⣷⠀⠉⠛⠛⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⡼⣽⣿⣶⠋⢉⡿⠇⠀⠀⠀⠀⠀⣰⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢱⣿⣿⠇⠀⣠⣥⣤⡀⠀⠀⠀⢀⡟⣿⣿⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⣼⢿⣿⢀⣾⡟⠉⢹⡇⠀⠀⠀⢸⠁⡿⠙⣿⣷⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⢸⣇⣾⡟⠀⠸⡏⣄⡀⠀⠀⢹⢀⡇⢀⢘⢿⣮⡙⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⣿⣇⠀⡀⣧⠰⣿⣶⣄⠀⠀⠀⠘⣎⠳⣿⣿⣦⡀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⡿⣿⣆⠹⣿⡐⣾⣷⣹⣆⠀⠀⠀⠘⢷⣄⣻⣿⣿⣷⡄⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⢿⣿⣦⠽⣇⣹⣟⢿⠙⠁⠀⠀⠀⣤⠉⠻⣿⣿⣿⣿⣦⡀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠙⡟⠂⣿⢹⡿⣼⠇⠀⠀⣀⠀⣷⡀⠀⠈⠻⣿⣿⣿⣷⡀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⡆⢻⠀⠉⢸⡇⠈⣀⣠⣾⠇⠀⠻⣿⣦⣤⣴⣿⠿⣿⡿⣷⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⡇⢸⡀⠀⢸⠁⣰⠛⣽⡧⠖⠻⢿⡆⠈⠉⠉⠀⠀⢻⣷⠹⠇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⠘⡇⠀⢸⢰⡏⢰⡟⠀⣀⣀⡼⠃⠀⢀⡆⠀⠀⠘⣿⡆⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⣴⣿⣶⣷⣶⣾⣿⣧⣾⣤⣄⣀⣀⣤⣤⣶⡿⠀⠀⠀⢠⣿⡇⠀
⠀⠀⠀⠀⠀⠀⠀⣠⣴⣾⣿⣟⡛⠛⠛⠉⠉⠉⠉⢉⣭⣽⡿⠿⠿⠿⠛⠛⠛⠓⠲⠦⠄⣼⢻⡇⠀
⠀⠀⠀⠀⠀⠀⠘⢉⣼⣿⣿⠿⠛⠛⠁⠀⠀⣠⠖⠋⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⠁⣸⡇⠀
⠀⠀⠀⠀⠀⢀⣴⠿⠛⠁⢀⣀⣀⣀⣀⣀⣄⡀⠀⠀⠀⢦⣀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠇⣰⣿⠁⠀
⠀⠀⠀⢀⣴⣟⣥⣶⣾⣿⣿⣿⣿⣿⣿⣭⣤⣤⣤⣀⣀⡀⠈⠛⠶⢶⣶⣶⣶⣾⣿⣿⣿⠟⠁⠀⠀
⠀⢀⣴⡿⠟⠋⡽⠟⠉⠉⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠉⠙⠛⠛⠛⠿⠿⠿⠿⠟⠛⠉⠁⠀⠀⠀⠀
⠐⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
👻 Stealth, Intelligence, and Tracking 👻
💀 TGReaper 💀
👾 Version: 1.0.0 👾
💻 Author: Sumit Shah (aka Ghostdinit) 💻
🚀 Welcome to TGReaper Interactive Mode!
🎯 Enter malicious bot token:
🎯 Hunt Down Malicious Telegram Bots 🎯
═══════════════════════════════════════════════════════════════
🔧 TGReaper Menu
═══════════════════════════════════════════════════════════════
1. 🎯 Start Attack
2. 📨 Forward All Messages
3. ⏹️ Stop Operation
4. ▶️ Resume Operation
5. 📁 Export Captured Data
6. 🔄 Clear Session Logs
7. ❓ Help
8. 🚪 Exit
═══════════════════════════════════════════════════════════════
🎲 Select an option (1-8): 1
Starting attack process...
✅ Bot validated: @(botname)
Please enter the code you received: 12345 (please enter the code u recived through Telegram)
- Missing Credentials:
- Ensure your
.envfile is present and correctly filled. - Double-check your API ID, hash, and phone number.
- Ensure your
- Account Banned:
- Using this tool may violate Telegram's ToS. Use a disposable or research account.
- Dependencies Not Installed:
- Run
pip install -r requirements.txtagain.
- Run
- Errors with Telethon:
- Make sure your credentials are valid and you have internet access.
- Other Issues:
- Check for error messages in the terminal and consult the issues page.
- Fork the repository
- Create a new branch (
git checkout -b feature/your-feature) - Make your changes
- Commit and push (
git commit -am 'Add new feature' && git push origin feature/your-feature) - Open a pull request
All contributions, bug reports, and suggestions are welcome!
This project is licensed under the MIT License. See LICENSE for details.
- Author: sumit
- Original Concept: 0x6rss (Matkap)
- Libraries: Telethon, python-dotenv, requests
For questions, suggestions, or support, open an issue or contact the maintainer at Ghostdinit.

