A tool for monitoring the certificate transparency logs.
Project description
Phisher
A rich‐powered CLI tool for monitoring Certificate Transparency (CT) logs and alerting on domains matching your keywords.
📖 Table of Contents
🔥 Features
- Real-time monitoring of CT logs for newly issued certificates
- Keyword matching: scan domains against CLI‐provided or file‐based keyword lists
- Rich CLI using rich & rich‐argparse for beautiful output
- Notifications via Telegram bot (chat ID + bot token)
- Flexible output: append matches to
.txtor.csv - Colorful ASCII banner with gradient styling
🚀 Installation
pip install phisher
Or clone and install from source:
git clone https://github.com/yourusername/phisher.git
cd phisher
pip install .
💻 Usage
Flag Arguments Description
-n, --notify CHAT_ID BOT_TOKEN Enable Telegram notifications (provide your chat ID and bot token).
-l, --log — Enable logging to file (defaults to domains.txt).
-k, --keywords KEY1 KEY2 … Space-separated list of keywords to match against domain names.
-kf, --keywords-file path/to/file.txt Path to a newline-separated file of keywords (default: keywords.txt).
-f, --format csv | txt Output format for matches: CSV or TXT (default: txt).
-o, --output-file path/to/output.txt File to append matching domain reports (default: domains.txt).
-h, --help — Show help message and exit.
🎯 Examples
Start Monitoring
phisher
Monitor with a keyword file
phisher --keywords-file my_keywords.txt --format csv --output-file alerts.csv
Monitor with Telegram notifications, --notify expects chat_id and telegram_bot_token
phisher -kf keywords.txt -n -1234567890123 123456789:ABCDEFghiJklMNopQRStuvWXyz
Enable file logging and provide inline keywords
phisher --log --keywords dhl reddit microsoft
⚙️ Configuration
If you have a long list of arguments, you can store them in a file called keywords.txt, with one keyword per line:
reddit
microsoft
dhl
office365
Alternatively, save the keywords in any other file and provide its path using the --output-file (-o) parameter.
Parameters needed to avoid rate limiting are defined in config.py. Feel free to adjust them if you find them too strict.
🔔 Notifications
To receive instant alerts via Telegram:
Create a Bot via BotFather and get your BOT_TOKEN.
Find your CHAT_ID (e.g., by messaging your bot and querying @userinfobot).
You can use this article to help you with this matter: https://andrewkushnerov.medium.com/how-to-send-notifications-to-telegram-with-python-9ea9b8657bfb
Run:
phisher --notify <CHAT_ID> <BOT_TOKEN> ...
📝 Logging & Output
TXT format (default):
Appends certificate details to domains.txt.
CSV format:
Outputs rows with columns like "Subject", "Issuer", "Serial No", "Version", "Not Before (UTC)", "Not After (UTC)".
Enable logging file creation with --log (otherwise, logging is disabled and only prints to console).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phisher_ctmonitor-0.1.0.tar.gz.
File metadata
- Download URL: phisher_ctmonitor-0.1.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0423bf2235cb8ccb076fd376d9a62857f9d621e619582c390db1f3b9144e1240
|
|
| MD5 |
5664fe679b013854fbb0a1bdb034aa32
|
|
| BLAKE2b-256 |
e79e913b9017710618174de235adfe881df4c3770b5c0485af687019c20d37c8
|
File details
Details for the file phisher_ctmonitor-0.1.0-py3-none-any.whl.
File metadata
- Download URL: phisher_ctmonitor-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc37d63bdcdadafd216f34058910b1908d8eddd1e989dacd5ce21623eb00eb66
|
|
| MD5 |
aa8f638e2e548c0bf05002e13bf3a0d0
|
|
| BLAKE2b-256 |
79c873f41a3203eadccbbe28d37d5bfe8c38dafc14fd3d4ef75324fac627e2b0
|