This Python project is designed to detect Canarytoken URLs in various file types, including .ini files. It scans files for specific Canarytoken patterns and alerts the user if any are found.
- Reads and scans files for embedded Canarytoken URLs.
- Uses regex to detect Canarytokens.
- Provides a simple command-line interface for easy usage.
- Python 3.x
- Clone the repository:
git clone https://github.com/your-repo/canary-token-detector.git cd canary-token-detector - Install required dependencies (if any):
pip install -r requirements.txt
Run the script with the file path as an argument:
python script.py <path_to_file>Example:
python script.py sample.inf- If a Canarytoken is found, the script displays:
[+] Detected Canarytokens URLs: \\username.computername.userdomain.INI.someid.canarytokens.com\resource.dll - If no Canarytoken is found:
[-] No Canarytokens URLs found.
This project is licensed under the MIT License.
Joseph KANKO