A Telegram bot that performs automated website scanning using Katana, httpx, and subzy tools to gather information and check for subdomain takeovers.
- URL validation and processing
- Automated scanning with Katana (crawling)
- Live URL checking with httpx
- Subdomain takeover detection with subzy
- Secure user authorization system
- Results delivered directly in Telegram
Before using this bot, you need to install the following tools:
-
Katana (Web crawling):
go install github.com/projectdiscovery/katana/cmd/katana@latest
-
httpx (HTTP toolkit):
go install github.com/projectdiscovery/httpx/cmd/httpx@latest
-
subzy (Subdomain takeover detection):
go install github.com/LukaSikic/subzy@latest
-
Python dependencies:
pip install python-telegram-bot
-
Clone the repository (if applicable) or create a new file with the bot code.
-
Create a users.txt file to store authorized Telegram user IDs (one per line):
touch users.txt
-
Edit the bot token in the script:
TOKEN = "YOUR_TELEGRAM_BOT_TOKEN"
-
Run the bot:
python3 bot.py
- Start the bot with
/startcommand - Send a valid URL (starting with http:// or https://)
- The bot will process the URL and send back the results
/start- Initialize the bot and check authorization
- Only users listed in
users.txtcan interact with the bot - Always validate URLs before processing
- The bot automatically cleans up temporary files after each scan
Make sure all required tools (katana, httpx, subzy) are installed and available in your system's PATH before running the bot.