Skip to content

This tool assists you in identifying all paths (URLs) that start with a / from an online JavaScript file. It then converts these paths into complete (absolute) links and saves them in a text file named after the website's domain.

Notifications You must be signed in to change notification settings

RozeSec/ScriptSniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

ScriptSniffer

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

scriptsniffer

🚀 Features

  • 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 .txt file 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.

📦 Requirements

  • Python 3.6 or higher
  • requests library

⚙️ Installation

  1. Clone the repository:

    git clone https://github.com/YourUsername/scriptsniffer.git
    cd scriptsniffer
    

▶️ Usage

Run the script and provide the URL of the JavaScript file when prompted:

python3 scriptsniffer.py

Screenshot 2025-05-31 133812

Example: Enter the JavaScript file URL: https://example.com/script.js

About

This tool assists you in identifying all paths (URLs) that start with a / from an online JavaScript file. It then converts these paths into complete (absolute) links and saves them in a text file named after the website's domain.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages