Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Bot Hooker

Bot Hooker is script made by DevAyu-Codes that can snatch user inputs and bot outputs even when the bot's api is being used by any other service or code from private telegram chat, it is basically designed to capture images and videos but can be modified for anything.


Example:

Bot Chat Group Forward

Setup:

1. Cloning the repo and installing dependencies:

git clone https://github.com/DevAyu-Codes/BotHooker.git
sudo pacman -Syu cloudflared

python3 -m venv .venv
source .venv/bin/activate

pip install flask requests urllib3

2. Editing the script:

micro BotHooker/script/auto_proxy.py

add your bot api in BOT_TOKENS list and change -10012345678 with your actual group id. You can also change WORKERS_PER_BOT according to your pc specs and preference. Save with ctrl+x, y and enter.

Note that you need to add the bots to the group and make them admins, the group can be public or private.

3. Autostart on system boot:

micro /etc/systemd/system/tg_logger.service

and paste the code, change all username with your actual username:

[Unit]
Description=Telegram MITM Proxy Switchboard
# Wait until the internet is fully connected before starting
After=network-online.target
Wants=network-online.target

[Service]
User=USERNAME
WorkingDirectory=/home/ayuk/scripts
# The "-u" forces Python to print logs instantly to journalctl
ExecStart=/usr/bin/python3 -u /home/USERNAME/scripts/auto_proxy.py
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

4. Starting the service:

sudo systemctl daemon-reload
sudo systemctl enable tg_logger.service
sudo systemctl start tg_logger.service

Note:

This script is for education purpose only, I or nobody is responsible for stolen bot apis, data or misuse of service. Use at your own risk!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages