A Python-based tool to test for open redirect vulnerabilities in web applications.
It checks for both server-side and JavaScript-based redirects using common parameters and payloads.
- ✅ Detects open redirects using common redirect parameters (
redirect,url,next, etc.). - ✅ Uses various payloads to identify potential vulnerabilities.
- ✅ Supports session-aware testing (cookies).
- ✅ Detects JavaScript-based redirects using Selenium.
- ✅ Randomized user-agents and request delays for stealth.
- Python 3.x
- Google Chrome (for Selenium headless testing)
- Chrome WebDriver
-
Clone the repository:
git clone https://github.com/DghostNinja/Snoop.git cd Snoop -
Install dependencies:
pip3 install -r requirements.txt
-
Ensure you have Google Chrome and ChromeDriver installed:
- Download Chrome
- Download ChromeDriver
- Or use
webdriver-manager:
pip3 install webdriver-manager
To run the script manually:
python3 snoop.pyTo run snoop from anywhere in the terminal, follow these steps:
1️⃣ Make the script executable
chmod +x snoop.py2️⃣ Move it to /usr/bin/
sudo mv snoop.py /usr/bin/snoopor create a symbolic link:
sudo ln -s "$(pwd)/snoop.py" /usr/bin/snoop3️⃣ Run from anywhere
Now, you can simply type:
snoopinstead of python3 snoop.py.
Modify the first line of snoop.py to specify the Python interpreter:
#!/usr/bin/env python3This ensures that it runs with Python 3 when executed.
Then, repeat Step 1 and Step 2, and now you can execute snoop globally.
___|
\___ \ __ \ _ \ _ \ __ \
| | | ( | ( | | |
_____/ _| _| \___/ \___/ .__/
_|
Open Redirect Tester by iPsalmy
Enter the target website URL: https://example.com
[>] Testing: https://example.com?redirect=http://evil.com
[!!] Possible Open Redirect! Status: 302, Location: http://evil.com
[*] Following redirect: http://evil.com
[+] Testing for JavaScript-based redirects...
[!!] JavaScript Redirect Detected: http://attacker.com
Link: https://github.com/DghostNinja/vulnerable-redirect-app
- ChromeDriver Errors: Ensure ChromeDriver is installed and matches your Chrome version.
- Permission Issues: Run with elevated permissions:
chmod +x snoop.py python3 snoop.py
- WebDriver Issues: If ChromeDriver is missing or outdated, install
webdriver-manager:pip3 install webdriver-manager
This tool is for educational and security testing purposes only.
Do not use it on systems without explicit permission.🚀