ScriptSniffer is a Python tool designed to extract all relative URLs (paths starting with /) from an online JavaScript file, convert them into absolute URLs, and save them into a text file named after the website's domain.
Contact the Developer
- 💻 Telegram: @er4vnn & @rozesec
- Extract Relative URLs: Identifies all paths starting with
/within a JavaScript file. - Convert to Absolute URLs: Transforms relative paths into complete URLs using the base domain.
- Automatic File Naming: Saves the extracted URLs into a
.txtfile named after the website's domain (e.g.,example.com.txt). - Simple Command-Line Interface: User-friendly interface requiring only the JavaScript file URL as input.
- Python 3.6 or higher
requestslibrary
-
Clone the repository:
git clone https://github.com/YourUsername/scriptsniffer.git cd scriptsniffer
Run the script and provide the URL of the JavaScript file when prompted:
python3 scriptsniffer.pyExample: Enter the JavaScript file URL: https://example.com/script.js